KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

quiz-placeholder

Similar activities

Pemrograman Dasar

Pemrograman Dasar

10th Grade

10 Qs

Q2 M4 PRE-TEST

Q2 M4 PRE-TEST

10th Grade

10 Qs

Tes Perangkat Keras Komputer

Tes Perangkat Keras Komputer

10th Grade

10 Qs

Mecatrónica IOQ 3ro 2

Mecatrónica IOQ 3ro 2

8th - 10th Grade

10 Qs

menu dan ikon Word

menu dan ikon Word

10th Grade

11 Qs

HTML (3CS)

HTML (3CS)

10th - 11th Grade

10 Qs

Tin 6a4

Tin 6a4

1st - 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?