Python

Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

ÔN TẬP TIN 8 GIỮA KÌ 2

ÔN TẬP TIN 8 GIỮA KÌ 2

8th Grade

13 Qs

For loop

For loop

8th Grade

10 Qs

BTEC Theory quiz 1: Networks and Internet

BTEC Theory quiz 1: Networks and Internet

8th - 11th Grade

16 Qs

NOIR Data

NOIR Data

8th Grade

15 Qs

THE PHOTOSHOP WINDOW

THE PHOTOSHOP WINDOW

7th - 8th Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

topologies

topologies

7th - 8th Grade

13 Qs

แบบทดสอบสุดท้ายจากเกาะมรณะ

แบบทดสอบสุดท้ายจากเกาะมรณะ

8th Grade

10 Qs

Python

Python

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Felicia Westbrook

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the following code?

15

510

z = x + y5

error

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does an "if" statement in Python check for?

If the user input is correct

Whether a condition is true

The type of a variable

Whether two numbers are the same

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which keyword is used to check additional conditions after the "if" statement?

elseif

end

elif

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code?

 

age = 18

if age >= 18:

print("You are an adult.")

else:

print("You are not an adult.")

You are an adult.

You are not an adult.

The program will show an error.

No output.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What type of expression is used in conditional statements to evaluate whether a condition is true or false?

Integer

String

Boolean

Float

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt



This allows you to execute a block of code only if a specified condition is true. 

if

else

elif

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following code if sunny was entered

Take a brolly!

Have a great day

The code would not run

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?