Python Quiz: If Statement

Python Quiz: If Statement

7th Grade

15 Qs

quiz-placeholder

Similar activities

Chap 3.3 Ex 3-7 Practice Quiz

Chap 3.3 Ex 3-7 Practice Quiz

6th - 8th Grade

15 Qs

Understanding Character Relationships in 'Wonder'

Understanding Character Relationships in 'Wonder'

7th Grade

10 Qs

Training Trackers Lessons 1 & 2 Quiz

Training Trackers Lessons 1 & 2 Quiz

6th - 8th Grade

17 Qs

The Giver Vocabulary Chapters 1-6

The Giver Vocabulary Chapters 1-6

7th Grade

18 Qs

Ch. 1 Lesson 2: The Byzantine Empire Quiz

Ch. 1 Lesson 2: The Byzantine Empire Quiz

7th Grade

10 Qs

Mesopotamia Unit REVIEW

Mesopotamia Unit REVIEW

6th Grade - University

19 Qs

TinkerCAD Codeblocks Quiz makeup

TinkerCAD Codeblocks Quiz makeup

7th Grade

14 Qs

Conditional Statements

Conditional Statements

7th Grade

10 Qs

Python Quiz: If Statement

Python Quiz: If Statement

Assessment

Quiz

others

7th Grade

Medium

Created by

Kelzang Lethro

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary coding concept discussed in Lesson 7?

Variables

If statement

Functions

Loops

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to check if an obstacle is ice?

smash()

is_box()

is_ice()

is_fence()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if statement?

To execute code randomly

To execute code regardless of the condition

To execute code only if a condition is True

To execute code only if a condition is False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example given, what will be printed if x = 50?

50 is greater than 10

10 is less than 50

50 is less than 10

10 is greater than 50

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax of an if statement in Python?

if condition: #code to execute if the condition is true

if condition: //code to execute if the condition is true

if condition; #code to execute if the condition is true

if condition; //code to execute if the condition is true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the is_ice() method do?

Checks if an obstacle is box

Makes the dragon melt the ice obstacles

Checks if an obstacle is ice

Makes the dragon smash the box and fence obstacles

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the fire_at() method?

Makes the dragon smash the box and fence obstacles

Checks if an obstacle is box

Makes the dragon melt the ice obstacles

Checks if an obstacle is ice

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?