KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

quiz-placeholder

Similar activities

Exit Ticket 1/17

Exit Ticket 1/17

9th - 12th Grade

12 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

抄來的Python測驗

抄來的Python測驗

9th - 12th Grade

10 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

CodeTigers Python 101

CodeTigers Python 101

KG - Professional Development

10 Qs

Basic Python Coding

Basic Python Coding

6th - 12th Grade

9 Qs

Python for Beginners

Python for Beginners

6th - 12th Grade

9 Qs

Python Introduction Simple

Python Introduction Simple

6th - 12th Grade

9 Qs

KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Mr McCallion

Used 18+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator checks for equality in Python?

=

==

===

!=