
Python Input and Conditionals
Authored by Nicholas Marsh
Computers
12th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the input() function in Python?
To display output
To perform mathematical calculations
To allow user input
To import modules
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition)
if [condition]
if {condition}
if condition:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else statement in Python?
To terminate the execution of the program.
To specify a block of code to be executed if the condition in the if statement is false.
To define a new condition for the if statement.
To specify a block of code to be executed if the condition in the if statement is true.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these IS NOT a comparison operator in Python?
==
!=
>
?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '5 == 5'?
error
5
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '10 != 5'?
5
True
10
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '7 > 3'?
7
True
False
3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
17 questions
Email Lớp 6
Quiz
•
6th Grade - University
12 questions
website design elements
Quiz
•
12th Grade
20 questions
Computer parts
Quiz
•
1st - 12th Grade
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
11 questions
Packet Switching and Encryption
Quiz
•
10th - 12th Grade
11 questions
Arduino - Contador
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade