View as PDF

Saskatchewan Computer Science 20 · Final Exam

Final Exam — Practice Test

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

An if statement runs its code

Understand It with Pulse
2

The first index of an array is

Understand It with Pulse
3

A strong password should be

Understand It with Pulse
4

A syntax error is caused by

Understand It with Pulse
5

A whole number data type is called

Understand It with Pulse
6

A value passed into a function is called

Understand It with Pulse
7

Encryption protects data by

Understand It with Pulse
8

A logic error is hardest to find because the program

Understand It with Pulse
9

A boolean variable can hold

Understand It with Pulse
10

The graph shows values increasing with index. The pattern is

Diagram for Question 10
Understand It with Pulse
11

A computer that provides data or services to other computers is called

Understand It with Pulse
12

An error where code runs but gives the wrong result is called

Understand It with Pulse
13

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 ____

Understand It with Pulse
14

An array holds the values [10, 13, 16, 19, 22, 25, 28]. The value at index 4 is ____

Understand It with Pulse
15

A computer or program that requests data or services is called

Understand It with Pulse
16

An error that happens while a program is running is called

Understand It with Pulse
17

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 ____

Understand It with Pulse
18

A function that returns the larger of two numbers is called with 7 and 3. The value returned is

Understand It with Pulse
19

Copyright means a creator has

Understand It with Pulse
20

Top down design starts by

Understand It with Pulse
21

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 ____

Understand It with Pulse
22

A function with no return value is best described as a

Understand It with Pulse
23

A server in a network

Understand It with Pulse
24

A comment in code is

Understand It with Pulse
25

Which is a valid use of a loop

Understand It with Pulse
26

The part of a program where a variable can be used is called

Understand It with Pulse
27

Three bytes of computer memory hold this many bits

Understand It with Pulse
28

The binary number 1010 written in decimal is

Understand It with Pulse
29

In a loop that runs while a condition is true, the condition is checked

Understand It with Pulse
30

A program calls a function to calculate an area three times with different inputs. The main advantage of using the function is that the code is

Understand It with Pulse
31

A file of 75 bytes contains this many bits ____

Understand It with Pulse
32

The decimal number 27 written in binary is ____

Understand It with Pulse
33

Data entered into a program by a user is called

Understand It with Pulse
34

Running a function by using its name is called

Understand It with Pulse
35

A file of 20 bytes contains this many bits ____

Understand It with Pulse
36

The decimal number 19 written in binary is ____

Understand It with Pulse
37

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
38

An array holds the values [10, 13, 16, 19, 22, 25]. The value at index 1 is ____

Understand It with Pulse
39

A file of 30 bytes contains this many bits ____

Understand It with Pulse
40

The decimal number 29 written in binary is ____

Understand It with Pulse
41

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
42

An array holds the values [10, 13, 16, 19, 22, 25, 28, 31, 34]. The value at index 8 is ____

Understand It with Pulse
43

A file of 5 bytes contains this many bits ____

Understand It with Pulse
44

The decimal number 11 written in binary is ____

Understand It with Pulse
45

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
46

An array holds the values [10, 13, 16, 19, 22, 25]. The value at index 3 is ____

Understand It with Pulse
47

A file of 65 bytes contains this many bits ____

Understand It with Pulse
48

The decimal number 26 written in binary is ____

Understand It with Pulse
49

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
50

An array holds the values [10, 13, 16, 19, 22, 25, 28, 31, 34]. The value at index 5 is ____

Understand It with Pulse