wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Year 9 Programming Constructs

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following data types is used to represent text in a program?

a)

Integer

b)

Float

c)

Character

d)

Boolean

2.

Which of the following data types is used to represent whole numbers in a program?

a)

Integer

b)

Float

c)

Character

d)

Boolean

3.

Which of the following data types is used to represent decimal numbers in a program?

a)

Integer

b)

Float

c)

Character

d)

Boolean

4.

Which of the following data types will return a true or false value?

a)

Integer

b)

Float

c)

Character

d)

Boolean

5.

Which of the following is the correct term for an IF statement

a)

Iteration

b)

Sequence

c)

Branching Point

d)

Selection Statement

6.

Using the image above what is the term used for the code on the first line?

a)

Function

b)

Comment

c)

Procedure

d)

Doc String

7.

How many items are in the Array on line 4?

a)

1

b)

2

c)

3

d)

4

8.

How many stars will be printed using the code on line 3?

a)

10

b)

20

c)

30

d)

40

9.

How many times will the Iteration loop if the user does not enter a 1,2 or 3?

a)

Forever

b)

Once

c)

10 times

d)

It wont work

10.

How many lines will the code for the first choice variable create?

a)

1

b)

2

c)

3

d)

4