Beruflich Dokumente
Kultur Dokumente
COMP STUD
PAPER II
Instructions:
1. Read carefully the instructions on the Answer Sheet and insert the information required (including the
Subject Code) in the spaces provided.
2. When told to open this book, you should check that all questions are there. Look for the words ‘END OF
PAPER’ after the last question.
4. ANSWER ALL QUESTIONS. You should mark all your answers on the Answer Sheet.
5. You should mark only ONE answer for each question. If you mark more than one answer, you will
receive NO MARKS for that question.
1. Which of the following is not a good reason to use robotics in the manufacturing industry?
A. optical fiber
B. microwave
C. coaxial cable
D. twisted pairs
4. Which of the following statements describes an advantage of having variable-length records in a data file?
5. X is a data communication network connecting computers and peripherals within a building , while Y is a data
communication network covering a relatively large geographical area.
X Y
A. LAN WAN
B. WAN Internet
C. Internet LAN
D. WAN LAN
6. Which of the following fields in a student report system cannot be validated by range check?
A. age
B. student name
C. conduct grade
D. examination score
A B C D
1 Chinese English Mathematics
2 Ann 78 72 84
3 David 66 86 98
4 John 89 54 60
5
If cell B5 stores the formula MAX(B2:B4) and this formula is then copied to D5, what will be the result of cell D5?
A. 60
B. 66
C. 89
D. 98
10. Which of the following drawing tool functions can be used to modify Diagram A to Diagram B?
Diagram A Diagram B
A. rotate
B. flip vertical
C. cut
D. flip horizontal
11. Which of the following software packages is the best option for maintaining the inventory of a department store?
A. spreadsheet package
B. word processing package
C. database management system
D. graphics package
12. Which of the following actions must be done before sending an electronic mail?
13. With a graphical user interface, which of the following can be represented by an icon?
14. Peter uses three functions of a word processing package to edit the document below.
A. line spacing
B. font type
C. justification
D. underline
16. Which of the following are the correct ways to search for information by using search engines?
(1) Try different search engines until the required information is found.
(2) Enter keyword(s) to search.
(3) Select directory(ies) provided by the search engine to search.
A. (1) and (3) only
B. (1) and (2) only
C. (2) and (3) only
D. (1), (2) and (3)
17. Which of the following electronic communication cannot transfer audio messages?
A. electronic mail
B. teleconferencing
C. fax
D. video on demand
A. text
B. database
C. graphic
D. program
21. Which of the following factors is most closely related to the processing speed of a computer?
A. modem
B. floppy disk drive
C. scanner driver
D. printer
23. Roughly speaking, there are 10,000 frequently used Chinese characters and 30,000 non-frequently used Chinese characters.
What is the least number of bits required to represent a Chinese character?
A. 13
B. 14
C. 15
D. 16
24. Mr. Wong wants to make a full backup of a file server daily. Which of the following storage media should he use?
A. floppy disk
B. compact disc recordable (CDR)
C. hard copy
D. magnetic tape
25. Which of the following statements about compact disc rewritable (CDRW) is/are correct?
Which of the following devices can be used to input the data in the figure above?
27. If integers are represented in 2’s complement form in 10-bit binary codes, which of the following operations will cause
overflow error?
A. 400 + 112
B. -400 + 112
C. 400 – 112
D. -400 – 112
28. Which of the following is the sequence of actions taking place when an instruction is executed by a CPU?
A. current instruction
B. next instruction
C. address of the current instruction
D. address of the next instruction
(1) Pascal
(2) Assembly language
(3) COBOL
(4) Machine language
A. (1) and (2) only
B. (1) and (3) only
C. (2) and (4) only
D. (3) and (4) only
31. Which of the following is not an advantage of using modular approach in writing programs?
32. Which of the following tasks is not usually performed by a point-of-sale terminal?
33. Floating-point representation is usually used instead of fixed-point representation in the representation of numerical data in
computers because of .
34. Which of the following registers are closely related to the main memory?
(1) IR
(2) MAR
(3) ACC
(4) MDR
A. (1) and (3) only
B. (2) and (4) only
C. (1), (2) and (3) only
D. (2), (3) and (4) only
35. The diagram below shows the relationship between end users and a computer.
end users
X
Y
Z
Which should be X, Y and Z?
X Y Z
A. application software operating system hardware
B. application software hardware operating system
C. operating system hardware application software
D. operating system application software operating system
A. UNIX
B. LINUX
C. JAVA
D. DOS
38. During compilation, Programming Language A will be compiled into Programming Language B.
Programming
compilation Programming
Language A Language B
40. If a teacher wants to enter examination marks of students from a score document into a computer, which of the following
statements about data verification is not correct?
A. The teacher types the marks twice to check if there is any difference or not.
B. The teacher types the marks once and another teacher repeats the task to check if there is any difference or not.
C. The teacher types the marks once and checks the printout against the marks displayed on the screen.
D. The teacher types the marks once and checks the printout against the source document.
a = (int) sqrt(1227.0);
b = 34 / 7;
c = a % b * 2;
printf("%d\n", c);
}
A. 2
B. 4
C. 6
D. 8
a[0] = 1;
for ( i = 1; i < 15; i++ )
a[i] = a[i - 1] + (i + 1) * (i + 1);
printf("%d\n", a[3]);
}
A. 10
B. 14
C. 30
D. 55
A. 7
B. 9
C. 14
D. 32
x = 'K';
switch ( x / 10 )
{
case 6:
y = x + 2;
break;
case 7:
y = x + 3;
break;
case 8:
y = x + 1;
break;
case 9:
y = x - 3;
break;
}
printf("%c\n", y);
}
A. N
B. M
C. L
D. J
x = 0;
y = 3;
while ( x < 4 )
if ( y > 0 )
{
y = y - 1;
x = x + 2;
}
printf("%d\n", x + y);
}
A. 3
B. 4
C. 5
D. 6
int main()
{
int x, y;
x = 4;
y = 5;
cal(&x, y);
printf("%d%d\n", x, y);
}
A. 71245
B. 71275
C. 7945
D. 712712
A. abc
B. cde
C. abcde
D. cdefg
m = 10;
n = 4;
k = m + 1;
do
{
m = 2 * n - 1;
n = n - 1;
k = m;
} while ( !(m == 0 || n == 0) );
printf("%d%d%d\n", k, m, n);
}
A. 011
B. 101
C. 110
D. 001
x = 3;
y = 7;
z = y - x;
if ( z <= 4 && x > 3 )
printf("%d%d%d\n", x, y, z);
else
printf("%d%d%d\n", z, y, x);
}
A. 347
B. 374
C. 447
D. 473
A. 10
B. 11
C. 12
D. 21
#include, +, -, *, /, ++, --, +=, -=, *=, /=, %=, ==, %, >, <, =, >=, <=, !=, &&, ||, !, sqrt, rand, abs, strcat, strncat, strlen,
atoi, strcpy, strncpy, const, void, return, int, float, char, \0, strcmp, strncmp, true, false, FILE, main, /*…*/, if…else, for,
while, do…while, switch…case…break, break, continue, scanf, printf (%d, %f, %c, %s), \n, \t, fopen, getc, fgets, putc,
fputs, EOF, fclose
Note: Figures in brackets indicate the percentage of candidates choosing the correct answers.