Python Practice Test – 1

1. 
Python Practice Tests
What keyword begins a conditional statement in Python?

2. 
Python Practice Tests
What is the correct way to create a dictionary?

3. 
Python Practice Tests
Which method removes an item by its index from a list?

4. 
Python Practice Tests
Which of these data types can be changed after creation?

5. 
Python Practice Tests
How do you exit a loop in Python?

6. 
Python Practice Tests
Which of the following is the correct syntax for defining a function in Python?

7. 
Python Practice Tests
Which construct is used for handling exceptions?

8. 
Python Practice Tests
How do you define a function that can take any number of arguments?

9. 
Python Practice Tests
Which symbol is used for comments in Python code?

10. 
Python Practice Tests
How can you include a module in your Python script?