KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

quiz-placeholder

Similar activities

Word basics

Word basics

8th - 12th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Do you know alot about Roblox?

Do you know alot about Roblox?

2nd Grade - University

10 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

Циклы

Циклы

10th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Quiz 3-  Life Cycle of Program

Quiz 3- Life Cycle of Program

10th Grade

10 Qs

KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Mr McCallion

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to print a message in Python?

print message "Hello World"

print("Hello World")

echo "Hello World"

printf("Hello World")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you read a user's input and store it in a variable named 'name'?

name = input("Enter your name: ")

input("Enter your name: ") -> name

name <- input("Enter your name: ")

get("Enter your name: ") as name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable assignment in Python?

5 = x

x = 5

int x = 5

var x = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the code print?

Smaller

Greater

Error

Nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, 'elif' is short for:

else if

else information

either if

else in function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will code output?

Adult

Child

Teenager

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'input()' function in Python do?

Outputs data to the screen

Reads text from a file

Takes user input

Calculates numeric input

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?