Python Week 3 Homework - Conditional Statements

Python Week 3 Homework - Conditional Statements

8th Grade

11 Qs

quiz-placeholder

Similar activities

Computer Hardware and Operating Systems

Computer Hardware and Operating Systems

6th - 8th Grade

10 Qs

Term 3 Quiz 1 Python

Term 3 Quiz 1 Python

8th Grade

15 Qs

Python Projects Quiz

Python Projects Quiz

6th Grade - University

11 Qs

S3 Databases Knowledge Check

S3 Databases Knowledge Check

2nd - 9th Grade

15 Qs

Small Basic Week 6 Pre-Quiz (Mod 2.1)

Small Basic Week 6 Pre-Quiz (Mod 2.1)

7th - 8th Grade

13 Qs

linux user and group dfn30053

linux user and group dfn30053

1st Grade - University

10 Qs

Y8 Flow Diagrams

Y8 Flow Diagrams

8th Grade

10 Qs

Client/Server side

Client/Server side

7th - 12th Grade

10 Qs

Python Week 3 Homework - Conditional Statements

Python Week 3 Homework - Conditional Statements

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Bayden Schellein

Used 11+ times

FREE Resource

11 questions

Show all answers

1.

MATCH QUESTION

1 min • 1 pt

Match the following

Else Statment

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

ELIF Statements

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

If Statement

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

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?