wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AC1_7Programming and Variable Quiz

Total questions: 1

Worksheet time: 6mins

Name
Class
Date
1-8.
1.

What is a variable in programming?

a)

A type of data used to store information

b)

A placeholder in a device's memory that stores a value

c)

A form of conditional statement

d)

A type of algorithm

2.

Which data type can be used to store text in programming?

a)

Integer

b)

String

c)

Float

d)

Boolean

3.

What is the value of x after the third assignment statement x = x + 2 in the code tracing example?

a)

2

b)

5

c)

13

d)

12

4.

In the flowchart example, what is the value of y after the third assignment statement y = x * 2?

a)

15

b)

25

c)

10

d)

20

5.

In the conditional statement example, what is the fall weather set to when the temperature is 65 degrees?

a)

Warm

b)

Hot

c)

Cold

d)

Mild

6.

What type of data type is used to store whether a condition is true or false in programming?

a)

Float

b)

Integer

c)

Boolean

d)

String

7.

What is the purpose of a trace table in programming?

a)

To initialize and update variables

b)

To store values about a component

c)

To trace an algorithm step by step

d)

To track the time left and the score in a game

8.

What is the value of y after the second assignment statement y = 5 in the code tracing example?

a)

15

b)

10

c)

20

d)

5