Font size
WorksheetsPseudocode and Error Tracing
Total questions: 26
Worksheet time: 24mins
A condition is
a statement that is either True or False
a string
an integer
a list
We need variables to:
store and manipulate data.
store data.
manipulate data.
make fun of students.
When a piece of code runs unintentionally forever it is known as
An infinite loop
A long loop
A broken loop
A for loop
Which are the lines that contains errors
3,4,6,7
5,6,7,9
5,6,8,9
2,3,4,9
IF statement is a ___________________________ statement?
Assignment
Sequence
Selection
Loop
Honestly , I don't know
Will the following loop run?
Yes
No
distanceToSchool = 10
Which part is the identifier?
distanceToSchool = 10
What is the value of the variable?
All done.
Inside the If.
Inside the if.
All done.
Inside the else.
All done.
Inside the if.
Inside the else.
All done.
A _________error occurs when program execution comes to an unexpected halt or ‘crash’ or it goes into an infinite loop and ‘freezes’.
logic
syntax
run-time
The procedure, FindRepeats, is written assuming there are 100 elements in
UserNameArray.
In the main program, the global array, UserNameArray, has been declared with only
50 elements.
State the type of error this will cause.
Logic Error
Run-time Error
Syntax Error
What does the code output?
0
1
2
3
1
2
3
0
1
2
What does the code output?
hi
bye
hi
bye
hi
bye
hi
bye
hi
hi
hi
bye
What does the code output?
3
6
7
4
What does the code output?
hi
hi
hi
hi
hi
hi
hi
hi
hi
hi
What does the code output?
3
4
5
1
2
3
3
4
5
6
3
4
4
What is the value of i after this loop runs?
i = 20
i = 19
i = 10
i = 0
What does this program output?
x is 0
x is 1
x is 3
x is 4
