1. Python Basics1. Python Basics\Module 1 Quiz

Module 1 Quiz

 

1. What is the output of this code? 

           

            print "I have", 5, "cats." 

 

2. The Python ______ is a set of rules for writing code, while the Python ______ is a program which reads code and executes it.

 

3. Which if statement is correct?

 

            a) if num_cats is 5: 

           

            b) if num_cats == 5

           

            c) if volume == 7.3:

 

            d) if volume ! 7.3:

 

4. Is cat_on_a_hot_tin_roof an acceptable variable name?

 

5. Is 7_cities_of_gold an acceptable variable name?

 

 

Module 1 Quiz Answers

 

 


 

Top of Page