Practice · All units

Quiz

Randomized Python questions sampled across all five units

Practice · Randomized Python quiz

A balanced check across the whole course

Each attempt draws two questions at random from each unit’s question pool. That samples all five units without showing the entire bank at once. Submit to see your score, unit breakdown, and explanations.

50

questions in the pool

10

questions per attempt

2

from each unit

Attempts: 0Best: 0/10Last: 0/10
Unit 1· VariablesQuestion 1 of 10

1. What does the assignment marks = 85 do?

Unit 1· TypesQuestion 2 of 10

2. What type of value does input() return?

Unit 2· PrecedenceQuestion 3 of 10

3. What is 3 + 2 * 4?

Unit 2· ArithmeticQuestion 4 of 10

4. What is 17 % 5?

Unit 3· ListsQuestion 5 of 10

5. Which adds 88 to the end of marks?

Unit 3· IndexingQuestion 6 of 10

6. What is colors[0] for ['red', 'blue']?

Unit 4· FunctionsQuestion 7 of 10

7. What is returned if a function ends without return?

Unit 4· ParametersQuestion 8 of 10

8. In def greet(name):, what is name?

Unit 5· ModulesQuestion 9 of 10

9. After import math, how do you call square root?

Unit 5· ImportsQuestion 10 of 10

10. After from math import sqrt, how do you call it?

Attempt count and best/last scores are saved in this browser only. This formative quiz checks understanding; it is not a substitute for writing and running complete programs.