Docsity

Practice Problems for Quiz 1 - Introduction to Computer Programming | CSC 1310, Quizzes of Computer Science

Partial preview of the text

Download Practice Problems for Quiz 1 - Introduction to Computer Programming | CSC 1310 and more Quizzes Computer Science in PDF only on Docsity!

Practice problems for Quiz 1

Show the end results of the code.

  1. a= b= a>b

  2. round(2.71828, 1)

  3. print 'sam"s' For question 4 to 9, a = 'Please prepare for the final exam'

  4. a[5]

  5. a[10:]

  6. a[:10]

  7. a[15:-5]

  8. a[7:14]+a[15:-5]

  9. a.replace( 'e', 'ii' )

  10. "999" + 1

  11. 35 % 5

  12. "Pi =" + str(3.1415)