Search Header Logo

L3 Python Conditionals Quiz

Authored by Ellen Foley

Computers

11th Grade

Used 30+ times

L3 Python Conditionals Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?

:

;

.

{

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?