Python Week 3 Homework - Conditional Statements

Python Week 3 Homework - Conditional Statements

8th Grade

11 Qs

quiz-placeholder

Similar activities

Input and Output Devices

Input and Output Devices

8th - 11th Grade

16 Qs

Coding Vocabulary Words

Coding Vocabulary Words

8th Grade

12 Qs

Python Projects Quiz

Python Projects Quiz

6th Grade - University

11 Qs

input and output devices

input and output devices

5th - 9th Grade

15 Qs

iGCSE ICT: Chapter 1

iGCSE ICT: Chapter 1

KG - University

12 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Term 3 Quiz 1 Python

Term 3 Quiz 1 Python

8th Grade

15 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

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.

ELIF Statements

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

Else Statment

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

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?