Font size
WorksheetsAC1_7Programming and Variable Quiz
Total questions: 1
Worksheet time: 6mins
What is a variable in programming?
A type of data used to store information
A placeholder in a device's memory that stores a value
A form of conditional statement
A type of algorithm
Which data type can be used to store text in programming?
Integer
String
Float
Boolean
What is the value of x after the third assignment statement x = x + 2 in the code tracing example?
2
5
13
12
In the flowchart example, what is the value of y after the third assignment statement y = x * 2?
15
25
10
20
In the conditional statement example, what is the fall weather set to when the temperature is 65 degrees?
Warm
Hot
Cold
Mild
What type of data type is used to store whether a condition is true or false in programming?
Float
Integer
Boolean
String
What is the purpose of a trace table in programming?
To initialize and update variables
To store values about a component
To trace an algorithm step by step
To track the time left and the score in a game
What is the value of y after the second assignment statement y = 5 in the code tracing example?
15
10
20
5
