ut ict 13_14_answer
Post on 12-Jul-2015
568 Views
Preview:
TRANSCRIPT
2013 – 2014 S3 ICT Uniform Test MARKING SCHEME
Q1.
a. 5
b. 7
c. 4
d. 5
e. 0
f. 5
(1 each, total 6)
********************************************************************
Q3. a) writeln( ‘r =’ , r : 0 : 2 );
writeln( ‘ r – 1 = ‘ , r – 1 : 0: 1 ); (3)
b) for i := 1 to 8 do
writeln( ’tkpss’ ) (3)
c) for i := 1 to 5 do
writeln( x : 0 : 3 ); (4)
Q4. a. readln(x) ;
writeln( ’Root of ‘, x, ‘ = ‘, sqrt(x):0:2 ); (3)
b. randomize ;
writeln( ’from 0 to 8’ );
writeln( ’random number is ‘, random(9) ); (4)
c. write(‘input x ‘) ;
readln(x) ;
for i := 1 to x do
write( ’@’ ); (4)
d. write(‘input y : ‘) ;
readln(y) ;
for i := 1 to (y div 2) do
write( ’@’ ); (4)
Q5. var x, y, w, d : integer;
begin
write(’input no. Of days : ’); readln(x); (1)
y := y div 365; (2)
w := (x mod 365) div 7; (2)
d := (x mod 365) mod 7; (2)
writeln(y, ’ years’);
writeln(w, ‘ weeks’); (1)
writeln(d, ‘ days’)
end. (TOTAL 8)
Q6. var x : integer;
begin
write(’input x : ’); readln(x); (1)
if x <= 0
then writeln(‘Please bigger than 0’) (2)
else if x mod 2 = 1
then writeln(x, ‘ is an ODD number.’) (2)
else writeln(x, ‘ is an EVEN number.’) (2)
end. (nested if 3)
(10)
Q7. a. 2, The name is Monochrome (2, 2)
b. MPG-1 and MPG-4 (2, 2)
c. higher � frame rate or resolution,
use another compression method such as MPG-4 (any two, 2 each)
d. larger file size (2)
[Output Q2a]
x = 350
2*x=700
(3)
[Output Q2b]
□□□□4
(3)
[Output Q2c]
heha
heha
heha
heha
heha
heha
heha (2)
[Output Q2d]
□□□wewa
□□□wewa
□□□wewa
□□□wewa
(2)
top related