L3 Python Conditionals Quiz

L3 Python Conditionals Quiz

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Ellen Foley

Used 30+ times

FREE Resource

Student preview

quiz-placeholder

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?

motors.enable(False)

motors.enable(True)

Motors.run(Left,50)

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

print

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?