S.3 Computer Literacy (2013-14)
First Test
Question-Answer Book
Date: 28 October 2013
Time: 8:40-9:20 (40 min)
Instruction:
1. The full mark for this paper is 100.
2. Attempt ALL questions.
3. Write down ALL the answers in this
Question-Answer Book.
4. The Question-Answer Book consists of 15 pages.
Name:
Solution
Class:
Class Number:
Mark:
Section
Marks
Full
A
30
B
6
C
10
D
9
E
8
F
8
G
10
H
8
I
6
J
5
Section A: Multiple Choice Questions (30 marks, 2@)
Put a “” in the box of the most suitable answer.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A
B
C
D
1. Which of the following returns the value FALSE? [B]
A. TRUE OR FALSE
B. TRUE AND FALSE
C. Not(FALSE)
D. TRUE AND TRUE
2. Study the following program: [B]
Dim i As Integer
For i = 10 To 40 Step 3 Console.WriteLine(i)
Next i
How many numbers are outputted?
A. 10
B. 11
C. 12
D. 13
3. Which of the following operators is evaluated last? [C]
A. -
B. /
C. and
D. mod
4. Which of the following statement is TRUE? [D]
A. "strawberry" < "melon"
B. "123BOY" > "123" & "boy"
C. "tanghin" = "Tang" + "Hin"
D. "Sheung Shui" > "Fanling"
5. Which of the following is NOT an operator in Visual Basic? [C]
A. And
B. Mod
C. Exit
D. Not
6. What is the result of the following expression? [C]
Mid("visual", InStr("basic", "ic"), Len("ic"))
A. vi
B. su
C. ua
D. ic
7. What is the range of random numbers produced for the expression
Int(Rnd() * 10 + 3)? [A]
A. 3 to 12
B. 4 to 12
C. 4 to 13
D. 5 to 13
8. Which of the following can always produce a number from 0 to 7? ( n is an integer )[D]
A. 2 + n mod 8
B. (n+2) mod 9
C. n mod 9
D. (n+2) mod 8
9. What will be the result shown in the list box with the code as follows: [D]
For i As Integer = 2 To 4 ListBox1.Items.Add(2 ^ i)
Next
A. 2
3
4
B. 4
5
6
C. 4
9
16
D. 4
8
16
10. Study the following program: [D]
Console.Write("a" &