
Python conditional statements
Authored by Robotic Schools
Computers
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The second part of if, that is executed when the condition is false
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following lines of code print?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is syntax?
a catch-all for every other situation besides true.
pieces of code that direct the program to run in different ways depending on what else is happening.
a set of rules for how a language is written.
English, Chinese, or Spanish.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which symbol means "not equal to"?
==
<=
>=
!=
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to test more than one condition (chained condition), what do you use after if statement?
elif
else
ifif
else if
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the provided code, what is the final output?
"Fred"
15
25
35
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to write a nested if statement?
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?