View as PDF

Saskatchewan Computer Science 20 · Unit A

Data Types and Control Structures — Practice Test

Saskatchewan Computer Science 20 • 10 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

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

Understand It with Pulse
2

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

Understand It with Pulse
3

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

Understand It with Pulse
4

A variable starts at 1. A loop adds 9 each time it runs, and it runs 5 times. The final value of the variable is ____

Understand It with Pulse
5

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

Understand It with Pulse
6

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

Understand It with Pulse
7

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

Understand It with Pulse
8

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

Understand It with Pulse
9

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

Understand It with Pulse
10

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

Understand It with Pulse