Python

Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

Robotic /coding exam

Robotic /coding exam

6th - 8th Grade

16 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Micro:bit assessment 1

Micro:bit assessment 1

7th - 8th Grade

10 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Basic Docs

Basic Docs

8th - 9th Grade

17 Qs

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

File Management 3 Quiz

File Management 3 Quiz

8th Grade

10 Qs

Python

Python

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Felicia Westbrook

Used 16+ 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?