CS21: Quiz 1 Topics

 

You should be able to define the following terms:

You should be able to use the following Python concepts:

Practice problems

  1. Programming exercise 1 on page 22 of Zelle
  2. True/False questions starting on page 46 of Zelle
  3. Problem 4 on page 48 of Zelle
  4. Problem 8 on page 49 of Zelle
  5. Write a for loop that prints your name 10 times.
  6. Write a for loop that prints the numbers from 1 to 5.
  7. What is the value and type for each of the following expressions? Try them in python to check your answers.
    • 2 + 5
    • 2.0 + 5
    • 5/2
    • 5/2.0
    • 5 % 10
    • range(1,5)
    • range(10,1,-1)
    • range(3)
    • 5 - 2 * 3