wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8.4 Essential Knowledge Assessment

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following correctly stores user input in a variable?

a)

input("Name") = name

b)

name = input("Name")

c)

name == input("Name")

d)

input = name("Name")

2.

What is output in a program?

a)

Data displayed to the user

b)

Data stored in a file

c)

Data entered by the user

d)

A type of operator

3.

Sequence refers to:

a)

Instructions executed in order

b)

Instructions executed randomly

c)

Making decisions

d)

Repeating instructions

4.

What is the result of: print("Hello" + "World")

a)

Hello World

b)

HelloWorld

c)

Hello+World

d)

Error

5.

Which of these lines takes user input?

a)

x = input("Enter a number")

b)

print(x)

c)

x = 5

d)

int(x)

6.

What is a variable?

a)

A memory location storing data

b)

A loop

c)

A comparison operator

d)

An output device

7.

What happens if the program executes instructions in the wrong order?

a)

Nothing

b)

Program may behave incorrectly

c)

Program always crashes

d)

Python automatically fixes it

8.

Which line correctly stores a user’s favourite colour?

a)

colour = input("Enter colour")

b)

input("Enter colour") = colour

c)

colour == input("Enter colour")

d)

colour.input("Enter colour")

9.

Which of the following is not a data type in Python?

a)

int

b)

float

c)

number

d)

str

10.

Which operator checks equality?

a)

=

b)

==

c)

!=

d)

>

11.

Which of the following is an arithmetic operator?

a)

==

b)

>=

c)

+

d)

!=

12.

Which of the following is a comparison operator?

a)

*

b)

!=

c)

+

d)

/

13.

What does % do in Python?

a)

Adds numbers

b)

Finds remainder

c)

Divides numbers

d)

Multiplies numbers

14.

What does the assignment operator do?

a)

Compares values

b)

Stores a value in a variable

c)

Prints output

d)

Changes data type

15.

Which of these is a string?

a)

42

b)

"Python"

c)

3.14

d)

True

16.

What is casting?

a)

Printing output

b)

Converting one data type to another

c)

Storing variables

d)

Comparing numbers

17.

What is the output?

a)

5

b)

23

c)

Error

d)

6

18.

Which library is used for drawing graphics in Python?

a)

pygame

b)

turtle

c)

math

d)

random