KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

quiz-placeholder

Similar activities

Fundamentals of Python

Fundamentals of Python

9th - 12th Grade

13 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Python Basics: Operators and Variables

Python Basics: Operators and Variables

10th Grade

10 Qs

Kiểm tra bài cũ lớp 10

Kiểm tra bài cũ lớp 10

9th - 12th Grade

11 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Python - Week 1

Python - Week 1

8th - 10th Grade

10 Qs

Quiz Week 6

Quiz Week 6

10th Grade

10 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?

=

==

===

!=