3. 2. 小強利用一文字處理器打入下列段落:
Department of Computer Engineering
1. Mr Lee and John are working in a 2. Mr Lee and John both
University. Mr Lee is a professor while specialize in computer
John is a research assistant. They have organization, especially CPU
been working together for more than design.
two years.
(a) 除了邊界和字型外,他可能使用了不同的格式化功能,試寫出四種。
(2 分)
(b) 小強打入另一段落,其中一句如下所示:
‘His friend told John that this was his thesis.’
他想利用文字處理器內的尋找及取代功能,將整個段落內所有英文詞彙“his”修改為
“her”。
(i) 他是否可以用尋找“is”,而取代它為“er”的方法作修改嗎?試加說明。
(ii) 試描述他如何利用尋找及取代功能,以便有效和快速地作出這項修改。
(3 分)
1112 S.7 CA MOCK EXAM P.3
4. (c) 在小強所打的段落中,其中一部分描述 John Lee 和 John Woo 兩位人士,內容如下:
Mr Lee and John are working in ABC University. Mr Lee is a professor
while John is a research assistant. They have been working together for
more than two years.
現在小強希望在段落裏作出一些修改:
將‘Mr Lee’修改為‘John Lee’
將‘John’修改為‘John Woo’
試簡略描述小強如何只利用尋找及取代功能,便可做到這些修改。
(2 分)
3. 佩珊和志偉在討論將電腦升級和備份的最佳方法。
(a) 若要增加記憶體來改善處理能力,佩珊提議的優先次序如下:
快取記憶體 > RAM > ROM 硬碟
而志偉提議的優先次序如下:
RAM > 硬碟 > 快取記憶體 > ROM
你會選擇哪一項提議?試舉出兩個理由。
(2 分)
1112 S.7 CA MOCK EXAM P.4
16. 9. 某訓練營的參加者需加入 A、B、C 或 D 其中一個工作坊,以提升技能。現有兩個收集他們選
擇的方法。
方法 1:以網頁輸入表格進行網上登記。
方法 2:下載紙張表格,並以郵政郵件登記。
(a) 哪個方法對訓練營主辦者為佳?試寫出兩個理由。
(2 分)
下列工作表儲存了各參加者的選擇。
A B C D E F G H I
1 姓氏 性別 第一選 第二選 第三選 隨機整 真確 優先權 分配的
擇 擇 擇 數 數值 工作坊
2 陳 M A B C 124 1 32 A
3 李 F B C D 653 1 193 D
4 張 F C A B 236 1 74 C
5 黃 M C A D 751 1 247 D
… … … … … … … … … …
300 何 F B A C 423 1 145 B
301 互不相
同?
302 工作坊 A B C D TRUE
303 限額 70 100 50 60
304 第一選 83 130 62 60 額滿的 ABC
擇數目 工作坊
主辦者利用內置函數 RAND()向每名參加者分配一個介乎 1 至 999 的隨機整數,包括首尾兩
數。已知 RAND()會返回一個實數,其值大過或等於 0,但小於 1。即 0 RAND() < 1。
1112 S.7 CA MOCK EXAM P.16
20. Reserved Words and Functions
Database (SQL commands - Based on SQL-92 Standard)
Type Commands/constants/functions
Constants FALSE, TRUE
Operators +, , *, /, >, <, =, >=, <=, <>, %, _, ', AND, NOT, OR
SQL ABSOLUTE (ABS), AVG, INT, MAX, MIN, SUM, COUNT
ASC, AT, CHAR (CHR), CHAR_LENGTH (LEN), LOWER, TRIM, SPACE,
SUBSTRING (SUBSTR/MID), UPPER, VALUE (VAL)
DATE, DAY, MONTH, YEAR
ADD, ALL, ALTER, ANY, AS, ASC, BETWEEN, BY, CREATE, DELETE, DESC,
DISTINCT, DROP, EXISTS, FROM, GROUP, HAVING, IN, INDEX, INNER JOIN,
INSERT, INTEGER, INTERSECT, INTO, LEFT [OUTER] JOIN, LIKE, MINUS, NULL,
RIGHT [OUTER] JOIN, FULL [OUTER] JOIN, ON, ORDER, SELECT, SET, TABLE,
TO, UNION, UNIQUE, UPDATE, VALUES, VIEW, WHERE
Electronic Spreadsheet
Type Commands/constants/functions
Constants FALSE, TRUE
Operators +, , *, /, >, <, =, >=, <=, <>
Functions ABS, INT, MOD, QUOTIENT, RAND, ROUND, ROUNDUP, ROUNDDOWN, SQRT,
TRUNC, AND, NOT, OR
CHAR, CODE, CONCATENATE, EXACT, ISBLANK, LEFT, LEN, LOWER, MID,
PROPER, RIGHT, TEXT, TRIM, UPPER, VALUE
AVERAGE, COUNT, COUNTA, COUNTBLANK, COUNTIF, LARGE, MAX, MIN,
RANK, SMALL, SUM, SUMIF, SUMPRODUCT, SUMSQ, FREQUENCY
DATE,NOW
FIND, HLOOKUP, VLOOKUP, LOOKUP, SEARCH, CHOOSE
IF
Symbols Used in Entity-Relationship Diagrams
Meaning Symbol Meaning Symbol
Entity One-to-One Relationship
Entity 1 1
Relationship
Attribute One-to-Many Relationship 1 M
Attribute Relationship
Key Many-to-Many Relationship M M
Attribute Relationship
Attribute
Relationship Participation constraints:
Relationship Use │ on Mandatory side Relationship
Use ○ on Optional side
1112 S.7 CA MOCK EXAM P.20
21. Section A (40 Marks)
Answer ALL questions in this section. Write your answers in the space provided in this
question-answer book.
1. Paul uses graphics software to create a picture on the screen of his visual display unit (VDU) as
shown in Figure l.
Figure 1 Figure 2 Figure 3
(a) Which display setting can be adjusted to produce the output shown in Figure 2?
(1 mark)
Cindy, Paul’s friend, uses the software to edit the picture in Figure 1 and produces the output shown
in Figure 3.
(b) (i) What has Cindy done to the picture to produce the output?
(ii) She finds that it is better to convert the format of the picture from bit-mapped graphics into
vector graphics. Give two potential advantages of doing this.
(4 marks)
(c) Cindy uploads both the pictures in Figure 1 and Figure 3 onto her web site. Will she violate
copyright law? Explain briefly.
(2 marks)
1112 S.7 CA MOCK EXAM P.21
22. 2. Alan types in the following passage using a word processor:
Department of Computer Engineering
1. Mr Lee and John are working in a 2. Mr Lee and John both
University. Mr Lee is a professor while specialize in computer
John is a research assistant. They have organization, especially CPU
been working together for more than design.
two years.
(a) Other than margin and font, give four different formatting features that he may use.
(2 marks)
(b) Alan types another passage and one of the sentences is shown below:
‘His friend told John that this was his thesis.’
He wants to use the search and replace function in the word processor to change all the words
‘his’ into ‘her’ in the whole passage.
(i) Can he make the change by searching ‘is’ and replacing it with ‘er’? Justify your answer.
(ii) Describe how he can use the search and replace function to make the change effectively
and efficiently.
(3 marks)
1112 S.7 CA MOCK EXAM P.22
23. (c) Part of Alan’s passage describing John Lee and John Woo is shown in the following box:
Mr Lee and John are working in ABC University. Mr Lee is a professor
while John is a research assistant. They have been working together for
more than two years.
Now Alan wants to make some changes in the passage:
Change ‘Mr Lee’ into ‘John Lee’
Change ‘John’ into ‘John Woo’
Describe briefly how Alan can do it by only using the search and replace function.
(2 marks)
3. Jane and Tom discuss the best ways to upgrade and back up their computers.
(a) To increase the memory size in order to speed up processing capacity, Jane suggests that the
priority should be
Cache Memory > RAM > ROM > Hard Disk
while Tom suggests
RAM > Hard Disk > Cache Memory > ROM
Which suggestion do you prefer? Give two reasons.
(2 marks)
1112 S.7 CA MOCK EXAM P.23
24. (b) To select storage media for the data backup, Jane suggests that the priority should be
DVD-R > Memory Card > External Hard Disk > CD-R
while Tom suggests
External Hard Disk > Memory Card > CD-R > DVD-R
Which suggestion do you prefer? Give two reasons.
(2 marks)
4. The interconnection of computers in a fast food shop is shown in the following simple diagram.
Customers order food at the cashier. Tickets and their duplicates are printed at the same time. The
customers can then collect the food at different sections of the food counter by presenting the tickets.
Database Server
Connect Box A
Printer
Printer
Kitchen
Cashier Food Counter
1112 S.7 CA MOCK EXAM P.24
25. (a) For the networking setup drawn in the diagram, give two kinds of networking devices that you
may use in Connect Box A. Also, other than cost, state one difference between them.
(3 marks)
(b) Printers are attached to the cashiers for printing tickets. What kind of printer should be used?
Justify your answer.
(2 marks)
(c) The cook in the kitchen enters some data occasionally. Other than a keyboard and a mouse,
suggest a better input device for the cook. Justify your answer.
(2 marks)
(d) Will packaged software or custom-made software be more suitable for this fast food shop? Give
one advantage and one disadvantage of your choice.
(3 marks)
1112 S.7 CA MOCK EXAM P.25
26. 5. Peter registers for a free account on a web site, as shown below:
Login name (email address):
(a) (i) What is the benefit of using an email address as login name?
(ii) Peter wants to use either wrgkeran or ae5Rln as his password. Which one should he
use in terms of security? Justify your answer.
(3 marks)
In order to complete the registration of the free account, Peter needs to input certain characters based
on the following image.
Input verification code:
(b) (i) What is the purpose of this input?
(ii) Why there is a line on the background of the characters?
(2 marks)
1112 S.7 CA MOCK EXAM P.26
27. (c) Finally, Peter has to click the ‘I agree’ button in a dialog box to complete the registration. A
sentence in the dialog box is
“By clicking the ‘I agree’ button below, you agree to the terms of the agreement.”
What terms of the agreement for the free web account might Peter need to agree to? Give two
examples.
(2 marks)
6. Ms Chu uses database table to record student participation in school activities in the school year
2011-2012. Each activity is held only once a year. There are two possible database designs for
storing the information, as follows:
Field Name Description
ActCode Unique code of activity
ActName Name of activity
StuID Identify code of students who participates in the activity
StuName Student’s name
TelNo Student’s telephone number
Organizer Indicates whether student is an organizer of the activity
(a) A key of a table should be composed of a minimum number of field(s) . State the key of the
table.
(2 marks)
(b) Is this design in Second Normal Form (2NF)? Explain your answer by considering the
dependency of non-key fields and key fields.
(3 marks)
1112 S.7 CA MOCK EXAM P.27
28. Section B (60 Marks)
Answer ALL questions in this section. Write your answers in the space provided in this
question-answer book.
7. A company provides web page design and web hosting services and its office is located on two
different floors of a commercial building. Its network infrastructure is shown below:
Boss Peter
Level 2
Hub
Hub Web Server Internet
…
Device B John Mary
Level 2
…
Hub
Device A
Hub
File Server
The web server stores the web pages produced by the company for their customers. The file server
supports the daily business needs.
(a) (i) What is Device A? Justify your answer.
(ii) Suggest two types of network devices that can be used for Device B. Explain briefly their
difference, in terms of the performance in this network.
(4 marks)
1112 S.7 CA MOCK EXAM P.28
29. (b) Peter, the IT manager of the company, is going to choose operating systems for the network.
(i) Give two essential functions that the operating systems should include.
(ii) Peter would like to choose an operating system which will be bundled with some utility
programs. Give three different types of utility programs.
(iii) The web server constantly needs to retrieve information from the database in the file server.
Can the web server and the file server run on different operating system? Justtify your
answer.
(6 marks)
1112 S.7 CA MOCK EXAM P.29
30. (c) Peter decides to
(1) add a device for better network security, and
(2) replace certain devices for better network traffic arrangement.
However, his boss wants to keep and use the current network cabling and he does not want to
move any user or workstation. Draw a simple diagram of the new network infrastructure for
Peter.
(3 marks)
Dr. Tong, one of the customers of the company, is a famous scientist who specializes in the Solar
System.
Dr. Tong discovered a new star, which was named ‘4505 Toutatis’. The company added the
following statement onto the bottom of his home page for him:
“ ‘4505 Toutatis’ is a new discovery...”
(d) A few days later, Alice, a student, enters the keyword, ‘Toutatis’, to search for materials for her
homework through a popular search engine. Will she find Dr. Tong’s home page? Justify your
answer.
(1 marks)
1112 S.7 CA MOCK EXAM P.30
31. (e) Several weeks later, Dr. Tong finds that there is no significant increase in visits to his
homepage.
(i) Suggest two different types of method that can improve the chances of Dr. Tong’s home
page being visited.
(ii) Dr. Tong also finds that certain search engines put the link to his home page at the top of
the search result, while some others put it at the bottom. Explain briefly.
(4 marks)
(f) Although Dr. Tong can set up a web server at home, he prefers to pay for web hosting services.
Give two reasons to support Dr. Tong’s decision.
(2 marks)
1112 S.7 CA MOCK EXAM P.31
32. [2008 Q8]
8. A trading company uses the following two database tables to store information about employees and
departments.
EMP
Field Name Type Width Description Example
EMPID Character 5 Identity code of the employee E0001
Name Character 30 Employee’s name Chris Chan
SALARY Numeric 5 Employee’s monthly salary 18000
LDATE Date 8 Departure date that the employee left the (NULL)
company
DEPTID Character 4 Identity code of the department of the D001
employee
MANID Character 4 Identity code of the manager of the E1000
employee
EMP stores information on all employees of the company including those who have resigned. LDATE
will be null for existing employees; MANID will be null for managers. EMPID is the key field of this
table.
DEPT
Field Name Type Width Description Example
DEPTID Character 4 Identity code of the department D001
DNAME Character 20 Department name Sales
DEPT stores information on all departments of the company. All department names are unique.
DEPTID is the key field of this table.
Write SQL commands to complete the tasks in (a) to (e):
(a) List the identity codes and names of those current employees with monthly salary between
10000 and 20000 inclusively .
(3 marks)
1112 S.7 CA MOCK EXAM P.32
33. (b) List all the identity codes of departments and the corresponding total numbers of employees.
(2 marks)
(c) List all the department names and the corresponding average monthly salaries of employees.
(3 marks)
(d) List all the names of the employees together with the names of their managers. The output
should be in two columns with headings ‘EmployeeName’ and ‘ManagerName’.
(4 marks)
The company uses the following database table to store the sales amount in 2011 for each employee.
SALES
Field Name Type Width Description Example
EmpID Character 5 Identify code of the employee E0001
Amount Numeric 6 Sales amount 400000
If an employee did not sell anything in 2011, there will be no record for the employee in SALES.
1112 S.7 CA MOCK EXAM P.33
34. (e) List all the identity codes and names of the employees who did not sell anything in 2007 and
came from the department ‘SALES’
(4 marks)
(f) Base on the table structure of EMP and SALES, drawan entity-relationship diagram to illustrate
the relationship between employees and sales amounts.
(4 marks)
1112 S.7 CA MOCK EXAM P.34
35. 9. Participants in a training camp need to enroll in one of the four workshops, A, B, C or D, for skill
training. There are two methods of collecting their choices.
Method 1: A web page entry form for online registration
Method 2: A paper form for download and registration by postal mail
(a) For the training camp organizer, which method is better? Give two reasons.
(2 marks)
The choices of participants are stored in the following worksheet.
A B C D E F G H I
1 Last Name Sex First Second Third Random Valid Priority Assigned
choice choice choice integer number workshop
2 Chan M A B C 124 1 32 A
3 Lee F B C D 653 1 193 D
4 Cheung F C A B 236 1 74 C
5 Wong M C A D 751 1 247 D
… … … … … … … … … …
300 Ho F B A C 423 1 145 B
301 Distinct?
302 Workshop A B C D TRUE
303 Quota 70 100 50 60
304 Count of 83 130 62 60 Workshop ABC
First choice full
The organizer assigns a random integer between 1 and 999 inclusive to each participant using a
build-in function RAND(). Given that RAND() returns a real number equal to or greater than 0 and
less than 1, i.e. 0 RAND() < 1.
1112 S.7 CA MOCK EXAM P.35
36. (b) (i) A formula is entered into F2 and then copied into F3 to F300, so that the random integers
in Column F can be generated. Write down the formula in F2.
(ii) All random integers should be distinct. A formula=COUNTIF($F$2:$F$300, F2) is
entered into G2 and then copied into G3 to G300. Another formula is entered into G302,
so that a TRUE value will be shown in G302 if all the random integers are distinct. Write
down the formula in G302.
(4 marks)
(c) After generating all distinct random integers, the training camp organizer copies all the values
in this worksheet into a new worksheet. He then works on this new worksheet instead of the
original worksheet. Why must he do this?
(5 marks)
Suppose that there are 299 participants. A priority number from 1 to 299 is assigned to each
participant according to the random integers generated. If the random integer is smaller, the priority
number is smaller, which means this participant can choose the workshop earlier.
(d) A formula is entered into H2 , and then copied into H3 to H300, so that the priority numbers
can be generated in Column H. Write down the formula in H2.
(2 marks)
1112 S.7 CA MOCK EXAM P.36
37. The quotas of the workshops are stored in B303 to E303 and the counts of first choice for the
respective workshops are storied in B304 to E304 .
(e) A formula is entered into G304 to display the workshop names in which the number of first
choices is greater than or equal to the quota. Write down the formula in G304.
(2 marks)
The workshop allocation procedures P1, P2 and P3 are described as follows:
P1: Assign workshops A/B/C/D to the participants according to their first choices and priority
numbers, until the quota of the workshop is exceeded or all the participants are assigned.
P2: Assign workshops A/B/C/D to those participants still not yet assigned according to their
second choices and priority numbers, until the quota of the workshop is exceeded or all the
participants are assigned.
P3: The rest of the participants will be assigned according to their third choices.
(f) The workshop allocation is completed using the sorting and filtering features ofthe spreadsheet.
(i) Complete the following missing steps of P1 to assign participants to Workshop A.
Step 1:
Step 2:
Step 3: Assign ‘A’ to the first cell in Column I and then drag it and fill the cells
downward until the quota of Workshop A is reached.
(ii) Assume that P1 is completed. Complete the following missing steps of P2 to assign
participants to Workshop B.
Step 1:
Step 2:
Step 3 Assign ‘B’ to the first cell in Column 1 and then drag it and fill the cells
downward until the quota of Workshop B is reached.
1112 S.7 CA MOCK EXAM P.37
38. (iii) Describe how to find the total number of male participants who are assigned to Workshop
B.
(2 marks)
(g) A reply slip is sent to each participant telling them the result of the workshop allocation. Some
of the slips are shown below:
Mr Wong,
The workshop is D.
Ms Cheung,
The workshop is C.
Describe how to use the mail merge function of a word processor to produce the slips.
(2 marks)
END OF PAPER
1112 S.7 CA MOCK EXAM P.38