wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Python

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.

42 is an example of what data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

2.

'42' is an example of what data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

3.

4.2 is an example of what data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

4.

False is an example of what data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

5.

"True" is an example of what data type?

a)

Integer

b)

String

c)

Float

d)

Boolean

6.

The term which describes identifying errors in a programme and fixing them

a)

Syntax

b)

Syntax error

c)

Logic error

d)

bug

e)

debug

7.

The term which describes errors in a programme

a)

Syntax

b)

Syntax error

c)

Logic error

d)

bug

e)

debug

8.

The term which describes errors in a programme which are due to programmers making typing mistakes or spelling mistakes

a)

Syntax

b)

Syntax error

c)

Logic error

d)

bug

e)

debug

9.

The term which describes errors in a programme which are due to the programmers algorithm and calculations being wrong

a)

Syntax

b)

Syntax error

c)

Logic error

d)

bug

e)

debug

10.

The term which describes the rules that govern a computer language, how it is structured and written.

a)

Syntax

b)

Syntax error

c)

Logic error

d)

bug

e)

debug

11.

How many bugs are there in this programme?

a)

None

b)

1

c)

2

d)

3

e)

4

12.

In Python, a programmer can leave comments in his code by using a (a)   sign

13.

Comments are easy to spot in Python because the Python editor changes the text colour to (a)  

14.

(a)   enable programmers to leave notes and instructions which explain their algorithms and programmes. This helps other programmers understand how the code is intended to work.

15.

A step by step set of instructions used to solve a problem

a)

Algorithm

b)

Function

c)

Variable

d)

Concatenate

16.

A mini programme used inside a larger programme

a)

Algorithm

b)

Function

c)

Variable

d)

Concatenate

17.

The process of linking one thing to another

a)

Algorithm

b)

Function

c)

Variable

d)

Concatenate

18.

An element of a programme which stores a value that can change as the programme is run

a)

Algorithm

b)

Function

c)

Variable

d)

Concatenate

19.

If you run the following line of code what will be the output?

print(4**2)

(a)  

20.

What is the output of this programme?

(a)