Free Exam: Form 4 IT - Term 2 Assessment 4
Number of Questions in Test: 30
Number of Questions in Preview: 5
Register to view all questions.
Note: Answers are not shown below but will be copied with this test.
Copy this test to my quiz maker account
Register with ClassMarker to copy free tests to give to your Test takers.
Register nowQuestion 1
Given the following algorithm
j = 10
k = j
j = j + k
k = j - 3
display k
the value displayed for k is
j = 10
k = j
j = j + k
k = j - 3
display k
the value displayed for k is
Type: | Multiple choice |
Points: | 1 |
Randomize answers: | Yes |
Question 2
The following variables s, t and u have been assigned the values shown.
s = 3
t = 8
u = 9
Which of the following statements evaluates to true?
s = 3
t = 8
u = 9
Which of the following statements evaluates to true?
Type: | Multiple choice |
Points: | 1 |
Randomize answers: | Yes |
Question 3
What results will be yeilded at the end of the algorithm. If X=6 and Y=1.
Read X, Y
Y=X
Z=X+Y
X=Z/2
Print X, Y, Z
Read X, Y
Y=X
Z=X+Y
X=Z/2
Print X, Y, Z
Type: | Multiple choice |
Points: | 1 |
Randomize answers: | Yes |
Question 4
a = 6
b = a
c = a + b
a = c - 3
display a
The value displayed for a is
b = a
c = a + b
a = c - 3
display a
The value displayed for a is
Type: | Multiple choice |
Points: | 1 |
Randomize answers: | Yes |
Question 5
begin
read (A,B)
sum := A + B;
writeln (A, B);
writeln (sum);
end.
How many variables are in the program?
read (A,B)
sum := A + B;
writeln (A, B);
writeln (sum);
end.
How many variables are in the program?
Type: | Multiple choice |
Points: | 1 |
Randomize answers: | Yes |