Review Game Zone
Games
Test
Preview
Back
Match it!
Match it! Select the correct answer from the pull down...Good luck!
Which of the following definitions describes a 'block' of code?
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
What type of value will the input function return to you?
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
An error that will not crash your program, but produces unintended results is...
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
Which of the following is an assignment operator?
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
What will the following code display (assume proper tabbing)? count = 0 \ while count != 10: \ print (count,end='') \ count += 2
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
A type of immutable sequence that can contain elements of any type (uses parentheses).
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
What is a sequence of characters called?
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
When writing a menu-based program, the menu structure should be...
String
=
One or more consecutive lines of code indented (logically form a unit)
Nested if-elif-else block inside a while loop
Logic error
Tuple
String
0 2 4 6 8 10
Check it!