View as PDF

Saskatchewan Computer Science 20 · Unit A

Data Types and Control Structures — Practice Test

Saskatchewan Computer Science 20 • 5 questions

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.

1

Four red and white cans of soup in a row on a white counter. A loop starts a counter at 3 and adds 2 each time while the counter is less than 11. The number of times the loop runs is ____

Four red and white cans of soup in a row on a white counter
Understand It with Pulse
2

Data entered into a program by a user is called

Understand It with Pulse
3

A variable starts at 100. A loop adds 10 each time it runs, and it runs 3 times. The final value of the variable is ____

Understand It with Pulse
4

A loop starts a counter at 0 and adds 4 each time while the counter is less than 20. The number of times the loop runs is ____

Understand It with Pulse
5

A variable starts at 7. A loop adds 3 each time it runs, and it runs 6 times. The final value of the variable is ____

Understand It with Pulse