Professional Documents
Culture Documents
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.
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
A. 21points
B. random
C. Wong_Hoi_Lee
D. tic-tac-toe
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
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 -