Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Entry Level - Programming Techniques

Total questions: 18

Worksheet time: 11mins

Name
Class
Date
1.

Name the data type for: 8

a)

Integer

b)

String

c)

Boolean

d)

Float/Real Number

2.

Name the data type for: Bob

a)

Integer

b)

String

c)

Boolean

d)

Float/Real Number

3.

Name the data type for: True or False, Yes or No, 1 or 0

a)

Integer

b)

String

c)

Boolean

d)

Float/Real Number

4.

Name the data type for: 3.142

a)

Integer

b)

String

c)

Boolean

d)

Float/Real Number

5.

name and age are examples of what?

a)

Selection

b)

Iteration

c)

Variables

d)

Inputs

6.

There is a logic error in this code what needs to happen?

a)

Start the counter at 1 not 0

b)

Move line 5 above line 4

c)

Move line 5 below line 7 and inside the loop

d)

Change the WHILE loop to a FOR loop

7.

What will be output if I input the number 8 into this program when it runs?

a)

Error

b)

You need to drink more water

c)

Not bad but you could try to drink a little more water

d)

Well done you are drinking enough water

8.

What will be output if I input the number 7 into this program when it runs?

a)

Error

b)

You need to drink more water

c)

Not bad but you could try to drink a little more water

d)

Well done you are drinking enough water

9.

What will be output if I input "four" into this program when it runs?

a)

Error

b)

You need to drink more water

c)

Not bad but you could try to drink a little more water

d)

Well done you are drinking enough water

10.

This code is an example of ...

a)

Selection

b)

Iteration

c)

Variables

d)

Inputs

11.

This code is an example of ...

a)

Selection

b)

Iteration

c)

Variables

d)

Inputs

12.

What will be output if you input 15 and Yes into this program when it runs?

a)

Error

b)

You can enter spooky film club

c)

You must go to cartoon club instead

d)

You can't enter spooky film club

13.

What will be output if you input 10 and Yes into this program when it runs?

a)

Error

b)

You can enter cartoon club

c)

Sorry year 7-9 or cartoon lovers only

d)

You can't enter cartoon club

14.

Identify the two variables in this program?

a)

year

b)

if

c)

else

d)

cartoon

15.

Name the data type for: ["Bob","Sue","Steve","Jill"]

a)

List

b)

String

c)

Boolean

d)

Float/Real Number

16.

What can coders use to make their code easier to understand for others?

a)

Selection

b)

Boolean

c)

Iteration

d)

Comments

17.

Select two types of iteration

a)

for

b)

while

c)

if

d)

else

18.

select the two coding commands used in selection

a)

while

b)

if

c)

else

d)

for