Which assignment creates a variable named score holding 10?
Select an option, then click Submit answer.
- ○ The statement score := 10:
- ○ The statement score = 10
- ○ The statement score == 10
- ○ The statement 10 = score
Loading demo links...
Showing 1–12 of 12 questions
Which assignment creates a variable named score holding 10?
Select an option, then click Submit answer.
How many times does 'for i in range(3): print(i)' print?
Select an option, then click Submit answer.
What is the effect of the raise statement in code?
Select an option, then click Submit answer.
CORRECT TEXT
A collection that cannot be changed after creation is called ______.
Answer is in the explanation below.
What is a syntax error in a Python program?
Select an option, then click Submit answer.
What does the break statement do inside a loop?
Select an option, then click Submit answer.
Which two are valid string operations? (Choose two.)
Select all that apply, then click Submit answer.
What is recursion in the context of Python functions?
Select an option, then click Submit answer.
Which two comparisons evaluate as true? (Choose two.)
Select all that apply, then click Submit answer.
Which two are valid Python variable names? (Choose two.)
Select all that apply, then click Submit answer.
DRAG DROP
Match each operator to its operation.
Items to match: // operator, % operator, ** operator, == operator.

Answer is in the explanation below.
DRAG DROP
Match each loop element to its role.
Items to match: for loop, while loop, break statement, continue statement.

Answer is in the explanation below.