A named place in memory that stores a value is called
Saskatchewan Computer Science 20 · Unit A
Data Types and Control Structures — Practice Test
This practice test was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.
Which data type best stores a whole number count
A variable starts at 0. A loop adds 3 each time it runs, and it runs 5 times. The final value of the variable is ____
The graph shows a loop variable over iterations. The value at iteration 3 is ____
A whole number data type is called
A boolean variable can hold
A variable starts at 10. A loop adds 2 each time it runs, and it runs 4 times. The final value of the variable is ____
The graph shows a variable increasing by the same amount each iteration. The increase per iteration is
A sequence of characters used as text is called
An if statement runs its code
A variable starts at 5. A loop adds 5 each time it runs, and it runs 3 times. The final value of the variable is ____
A data type with only true and false values is called
A while loop stops when its condition becomes
A loop starts a counter at 0 and adds 2 each time while the counter is less than 10. The number of times the loop runs is ____
Code that repeats while a condition is true is called
Which is a valid use of a loop
A loop starts a counter at 1 and adds 3 each time while the counter is less than 13. The number of times the loop runs is ____
A test that is true or false and controls what code runs is called
A string is best described as
A variable that can hold whole numbers only is of type
Code that runs only when a condition is true is called
A loop starts a counter at 0 and adds 5 each time while the counter is less than 25. The number of times the loop runs is ____
A program needs to keep asking for a password until the user enters the correct one. Which loop is the natural choice?
A while loop runs 5 times and then stops. How many times was its condition checked?
A loop that runs a set number of times is called
Your score: 0 / 25