Python

Python

8th Grade

12 Qs

quiz-placeholder

Similar activities

A2 Computing SQL

A2 Computing SQL

8th Grade

17 Qs

Roblox! (Royale High

Roblox! (Royale High

2nd - 12th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

Microbit Features Activity

Microbit Features Activity

6th - 8th Grade

9 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 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

Create a free account and access millions of resources

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?

Discover more resources for Computers