Become a Python Developer

1. Every function must include an output value. True or False

FALSE

2. Suppose you create a list object in Python that contains three string values: "Larry" "Curly" and "Moe". What is "Curly" an example of?
- a variable
- a wise guy
- an immutable object
- an mutable object

an immutable object

3. What happens if you call a get method on an empty queue?
- the program will keep running indefinitely
- the queue will be deleted
- an empty data object is returned
- the program will be blocked and will stop executing

the program will keep running indefinitely

4. Python doesn't natively include a switch structure like Java or C, so how can you emulate switch-like behavior?
- use a dictionary
- use a list
- clap your hands twice
- use a set

use a dictionary

5.If your While loop is running as a polling routine, what a good way to keep it from consuming too many CPU cycles?
- add a polling error condition
- add a break statement
- implement a time.sleep function
- change to a For loop

implement a time.sleep function