NEW
Font size
WorksheetsCSP 1.1.5-1.1.6 Variable Roles
Total questions: 35
Worksheet time: 18mins
Which variable role involves assigning a value once.
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role involves having unpredictable values?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role involves keeping a running total?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role involves keeping a running list?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role might be best to use for keeping score?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role might be best to use for creating a shopping list?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role might be best to use for updating us on the color of a person's shirt throughout the year?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role might be best to use for listing the color of a person's shirt throughout the year?
Fixed
Most recent
Accumulator
Aggregator
One-way flag
Which variable role does varF have?
Accumulator
Aggregator
Most Recent
Fixed
What happens when the sprite is clicked?
The value of mouse x is placed in a list.
The value of mouse x is added to the value of varF
varF is initialized to the value 0.
The value of mouse x is multiplied by the value of varF.
What happens when the green flag is clicked?
The value of mouse x is placed in a list.
The value of mouse x is added to the value of varF
varF is initialized to the value 0.
varF is assigned the value of mouse x.
Which variable role does VarE have?
Aggregator
Most Recent
Accumulator
Fixed
What happens when the green flag is clicked?
Items in the list named VarE are removed.
VarE is initialized to 0.
VarE has its value set to x position
Items in the list named VarE has the value of x position inserted.
Which variable role involves a predetermined sequence of values?
Stepper
Best-So-Far
Walker
One-Way-Flag
Which variable role will take on the values of elements of an iterator
Stepper
Best-So-Far
Walker
One-Way-Flag
Which variable role involves holding the record?
Stepper
Best-So-Far
Walker
One-Way-Flag
Which variable role involves determining whether a condition is met?
Stepper
Best-So-Far
Walker
One-Way-Flag
A variable that has the role of one-way-flag will
have a value of true or false
have an integer value
have a list of elements
have sequential values
A variable that has the variable role of walker will...
have the value of each element in a list.
have the value of true or flase
be a list of elements
have integer values
A variable that has the variable role of stepper is...
usually used to count
a list of elements
true or false
usually to keep track of the best score (record)
