Python Conditionals Worksheet

Python Conditionals Worksheet

7th Grade

41 Qs

quiz-placeholder

Similar activities

Year 7 end of year revision

Year 7 end of year revision

7th Grade

37 Qs

AI Captain (artificial intelligence)

AI Captain (artificial intelligence)

6th - 12th Grade

37 Qs

Final Revision G7_2T

Final Revision G7_2T

7th Grade

44 Qs

7th_Python_Quiz

7th_Python_Quiz

7th Grade

39 Qs

Year 7 CAT

Year 7 CAT

7th Grade

40 Qs

Number system and Python Class 7

Number system and Python Class 7

7th Grade

37 Qs

Python L1 Concepts

Python L1 Concepts

1st - 12th Grade

40 Qs

Digital Technology Quiz

Digital Technology Quiz

7th - 8th Grade

40 Qs

Python Conditionals Worksheet

Python Conditionals Worksheet

Assessment

Quiz

Computers

7th Grade

Easy

Created by

Julia Maurer

Used 1+ times

FREE Resource

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the main conditional statements used in Python?

if, elif, and else

switch, case, and default

when, then, and otherwise

for, while, and do-while

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comparison operators in conditional statements?

To evaluate conditions using operators like >, <, and ==.

To perform arithmetic calculations in code.

To define variables in a program.

To print output to the console.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be considered when handling conditional statements for a number’s value?

All possible cases: positive, negative, and zero.

Only the positive case.

Only the negative case.

Only the zero case.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is indentation important in Python conditionals?

It defines the scope of code blocks under conditionals.

It makes the code run faster.

It is only for visual appeal.

It is required only for comments.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What role does else play in conditional statements?

It acts as a catch-all for unexpected inputs.

It always executes before the if block.

It is used to repeat a block of code.

It defines a new variable.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the and operator in conditions?

To combine two conditions, such as checking an age range.

To end a program.

To repeat a block of code.

To assign a value to a variable.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the modulo operator (%) check for in conditions?

It checks for divisibility, such as x % 2 == 0.

It checks for equality between two numbers.

It checks for the largest value in a set.

It checks for the presence of a decimal value.

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?