Computer_science_paper_1_SL
Computer_science_paper_1_SL
COMPUTER SCIENCE
STANDARD LEVEL
PAPER 1
1 hour 15 minutes
INSTRUCTIONS TO CANDIDATES
882-320 7 pages
–2– N02/650/S(1)+
SECTION A
(b) Outline one difference between the way an interpreter reacts to a syntax
error, as opposed to the way a compiler reacts to the same error. [2 marks]
2. A floppy disk drive is a secondary storage device, providing direct access to data.
State one secondary storage device which uses only serial access. [1 mark]
3. A graphics file can be stored using 8-bit colour or using 24-bit colour.
(a) State the number of different colours that can be represented using the
8-bit format. [1 mark]
(c) Pictures are to be converted to black and white to be put into a school
newspaper using 16 shades of grey. State the minimum number of bits
that are needed to represent this data. [1 mark]
5. Explain why a kilometre is exactly 1000 metres, but a kilobyte is not exactly
1000 bytes. [2 marks]
7. Discuss one advantage and one disadvantage of using speech or voice recognition
rather than a keyboard when inputting a long list (several hundred items) of
numerical data. [4 marks]
882-320
–3– N02/650/S(1)+
The following algorithm is intended to add to the array (but may contain one
or more logical errors).
By tracing the algorithm, or otherwise, copy and complete the following table
to show the contents of the array after the following successive calls to the
procedure: ADD(“BEE”),ADD(“ANT”)and ADD(“FLY”).
10. A programmer has the job of writing a program for a small business. The first
step is to define and document the problem. Explain what is meant by defining
the problem. [3 marks]
SECTION B
11. A competition in figure skating consists of two parts: required elements and presentation. A
competitor’s score is the sum of the two parts. Whenever there is a tie, a competitor with the
higher required elements score ranks higher.
In the following data, each line contains the competitor’s name, score for the required elements,
score for the presentation and total score.
(b) Describe a suitable data structure to hold data about one skater. [3 marks]
(c) Discuss the different data structures and search methods that could be used. [6 marks]
882-320
–5– N02/650/S(1)+
12. A school has a LAN which connects secretaries’ PCs and teachers’ PCs to a set of servers in a
central location.
The servers also contain many documents (one document in each file), including letters to
parents, course descriptions, newsletters, budgets, etc.
(ii) Draw and label a diagram of the topology you identified in (i). [3 marks]
(c) Describe two appropriate security measures for the email system. [4 marks]
13. Customers can buy books from a World-Wide-Web site: www.Books.com. The customers
use a web-browser to access the web site and to read information until they find a book they
want. Then they type their name, address, and credit card number into the web browser,
which sends the data to the web server. Customers can place orders from anywhere in the
world at any time of day.
At company headquarters in Paris, the server prints a report each morning at 8.00 am, showing
all the orders from the past 24 hours. The printed report looks like this:
This report lists several thousand orders each day. Employees pack the books and send them
to customers by express mail.
(a) The server holds a list of customer orders. Describe two advantages of
storing these records initially in a transaction file, rather than storing
them immediately in a master file. [4 marks]
Books.com hold personal data on customers including the books they have
bought.
882-320
–7– N02/650/S(1)+
14 . In a grocery store, the sales clerk uses a laser scanning device to read a bar code on each item
(package). The scanner transmits the bar code to an attached cash register (point-of-sale
terminal). The cash register converts the bar code to a string (the Product ID) and transmits
this string to a central computer. The central computer searches for the Product ID in a
data-file, retrieves the corresponding price for the scanned item, and transmits the price back
to the cash register. The cash register prints the price on a paper receipt.
Example Data
(b) The cash register contains a keyboard. Describe a situation when the
clerk must enter the Product ID through the keyboard, even though the
laser-scanner is functioning correctly. [1 mark]
(c) State two reasons why optical bar codes are preferable to a Magnetic Ink
Character Recognition system. [2 marks]
(d) Outline one advantage of using this system rather than putting price
labels directly on the items. [2 marks]
882-320