Python Programming Intermediate Quiz 2

Select your answers and check your results. Use Reset to start again.
Practice Pronunciation (Merriam-Webster)
Navigation
Intermediate Quiz 2
1. How do you get a substring from index 2 to 5 of string s?
2. Which method returns the index of the first occurrence of "a" in string s?
3. How do you copy a list a to a new list b?
4. What does the "pass" statement do?
5. Which operator is used for logical "and"?
6. How do you import only the sqrt function from the math module?
7. What is a lambda function?
8. How do you open a file named "data.txt" for reading?
9. Which method returns the number of times "a" appears in string s?
10. What is the output of list(range(2, 7))?
Previous Next
Other
Timer
00:00

Vocabulary Quiz
Score: 0

Spin the Wheel
Promo's

Explore More