L3 Python Conditionals Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Ellen Foley
Used 30+ times
FREE Resource
Student preview

30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In order for your motors to move, what command do you have to give?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your Python code can control how much electric power is delivered to each motor, over a full range. What does the following command do?
+100
full speed forward
full speed reverse
Turns the motor on
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements about the "==" and "=" symbols are true?
Use == to test for equality; use = to assign a value to a variable
== is more likely to produce "True" answers while = is more likely to produce "False" answers
== is used in if statements while = is used only in else statements
== and = can be used interchangeably; they mean the same thing
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you want to test more than one condition, what do you use after an if statement?
elif
ifif
else if
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What Python command is used to mean "all other conditions"?
if
else
for
input
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is a data type that can only be true or false?
int
string
boolean
float
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which character must be at the end of the if statement line?
:
;
.
{
Create a free account and access millions of resources
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade