Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In computer Science what is Python?

a)

A programming language

b)

A word document

c)

A name of an animal

d)

A name of a vehicle

2.

What is the purpose of a string?

a)

To store assignments

b)

To store images

c)

to store human-readable text, like words and sentences.

d)

To store variables

3.

What is a syntax error?

a)

A syntax error occurs when you are saving a document?

b)

A syntax error occurs when a programmer enters the code correctly

c)

A syntax error occurs when a programmer writes an incorrect line of code.

4.

What is a variable?

a)

A name of a file

b)

A location in memory to store data

c)

A folder to store data

5.

What is the purpose of the print function?

a)

The print function allows you to delete text

b)

The print function displays messages on the screen.

c)

The print function allows you to save a document

d)

The print function displays images on the screen

6.

What is the name of the variable in this example: name=input("what is your name")

a)

Name

b)

input

c)

name

d)

What is your name

7.

19.5 is an example of which data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

8.

'I love Computer Science' is an example of which data type?

a)

Bolean

b)

Number

c)

Integer

d)

String

9.

786 is an example of which data type?

a)

Integer

b)

Boolean

c)

Float

d)

String

10.

'Paris is the capital of France' True or Fales? This is an example of which data type?

a)

Integer

b)

String

c)

Float

d)

Boolean