Search Header Logo

Python Week 3 Homework - Conditional Statements

Authored by Bayden Schellein

Computers

8th Grade

Used 11+ times

Python Week 3 Homework - Conditional Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MATCH QUESTION

1 min • 1 pt

Match the following

ELIF Statements

These statements are used to check multiple conditions only if the given condition is false.

If Statement

This statement checks for a given condition, if the condition is true, then the action will be performed otherwise not.

Else Statment

If the condition is true then the action right after the condition is performed. And if the condition is false then another action is performed.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

The statement A OR B implies that A and B are:

Booleans
Integers
Strings
Constants

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program converts a binary number to its decimal equivalent. Locate the line of code that contains a condition (a logical expression)

1

4

5

8

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which ARE not allowed for variables naming? (Choose 2!)

Lowercase

Uppercase

Starts with numbers

Have space in between

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Python command is used to mean "all other conditions"?

if

else

for

input

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this condition?

You have blue eyes

blue

green

You do not have Blue eyes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a data type in Python?

integer

boolean

Word

float

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?