You are on page 1of 4

P.

1
S3 2018-19 Uniform Test – Technology - Question
SHATIN TSUNG TSIN SECONDARY SCHOOL
2018-19 S.3 UNIFORM TEST
TECHNOLOGY
Full mark: 60 Date: -3-2019
Time allowed: 45 mins
Instructions
1. There are TWO sections in this paper. Answer ALL questions in each section.
2. Answer ALL questions on the answer sheets provided.
3. The diagrams in this paper (if any) are NOT necessarily drawn to scale.
4. Calculator is not allowed.

Section A: Multiple Choice (20 marks)


There are 10 multiple-choice questions in this section. Answer ALL questions.
Mark the answer on the Multiple Choice Answer Sheet. Two or more answers will score No Mark.

1. What is the output after the execution of the following program segment?

for i:= –1 to 1 do
for j:= 1 to 2 do
write(i,j);

A. -11-121112
B. 1-12-11-2-1121
C. -11-1201021112
D. 1-110112-12021

2. What is the final value of n after executing the following program statement?

n:=0;
for i:= 1 to 5 do
n:=n+1;

A. 0
B. 5
C. 10
D. 15

- to be continued -
P.2
S3 2018-19 Uniform Test – Technology - Question
3. What is the output after execution of the following program segment? (b represents a space)

for i:=3 to 1 do
write(‘*’:i);

A. bb*
B. bb*b**
C. ***
D. No Output

4. How many times will the string ‘UT’ be printed by the following program statements?
i:=0;
while i >5 do begin
writeln(‘UT’);
i:=i + 1;
end;

A. 0
B. 9
C. 10
D. Infinite number

5. Which of the following can be used as an identifier in Pascal?

A. 21points
B. random
C. Wong_Hoi_Lee
D. tic-tac-toe

6. What is the return value of the following compound Boolean expression?

not (3=3) or not (3>3) or True and False

A True
B False
C. Unknown
D. Error will occur

- to be continued -
P.3
S3 2018-19 Uniform Test – Technology - Question
7. What is the value stored in variable G after the following statements have been executed?

Mark := 75;
If Mark >= 75 then G := ‘A’;
If Mark >= 50 then G := ‘B’ else G := ‘C’;

A. „A‟
B. „B‟
C. „C‟
D. None of the above

8. Consider the following program segment containing a repeat loop:


...
n:=0;
repeat
writeln(‘*’);
until n = 10;
...

How many * will be displayed on screen?


A. 0
B. 10
C. 11
D. Infinity

9. If a is input as 1, what will be the output for the following program segment?

readln(a);
case a of
2, 4, 6, 8 : writeln(‘Even’);
3, 5, 7, 9 : writeln(‘Odd’);
end;

A. No output
B. Even
C. Odd
D. 1

- to be continued -
P.4
S3 2018-19 Uniform Test – Technology - Question
10. Which of the following commands can be replaced by “case … of …” statements.

A Repeat … until
B If … then …
C. For … to … do…
D. While … do …

End of Section A
Refer to the Question and Answer Book for Section B

- to be continued -

You might also like