June 2011 2 Computer Science Ocr Paper
June 2011 2 Computer Science Ocr Paper
COMPUTING F453
Advanced Computing Theory
* F 4 5 3 *
INSTRUCTIONS TO CANDIDATES
• Write your name, centre number and candidate number in the boxes above. Please write
clearly and in capital letters.
• Use black ink. Pencil may be used for graphs and diagrams only.
• Read each question carefully. Make sure you know what you have to do before starting
your answer.
• Write your answer to each question in the space provided. Additional paper may be
used if necessary but you must clearly show your candidate number, centre number and
question number(s).
• Answer all the questions.
• Do not write in the bar codes.
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...................................................................................................................................... [1]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
(c) Explain the purpose and use of the file allocation table (FAT).
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [6]
© OCR 2011
3
2 (a) Software is used to convert source code into object code.
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [4]
(b) Complete the table with ticks to show at which stage, if any, events occur when a compiler is
used.
(The quality of written communication will be assessed in your answer to this question.)
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
© OCR 2011
5
...................................................................................................................................................
.............................................................................................................................................. [8]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [5]
(b) (i) State three features of a Complex Instruction Set Computer (CISC) architecture.
1. ........................................................................................................................................
...........................................................................................................................................
2. ........................................................................................................................................
...........................................................................................................................................
3. ........................................................................................................................................
...................................................................................................................................... [3]
(ii) Explain one disadvantage, other than cost, of a CISC architecture compared with a
Reduced Instruction Set Computer (RISC) architecture.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [2]
© OCR 2011
7
4 A real binary number may be represented in floating point binary notation using 4 bits for the
mantissa and 4 bits for the exponent, both in two’s complement binary. Numbers are normalised.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [3]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [3]
(b) Explain what happens when the denary number +5¼ (+5.25) is converted to a normalised
floating point binary number in the format described.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
17 2 3 26 5
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [5]
(b) State one feature of a quick sort which is not used in an insertion sort.
...................................................................................................................................................
.............................................................................................................................................. [1]
(c) List the steps needed to pop a data item from a stack data structure.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [3]
© OCR 2011
9
BLANK PAGE
Vehicle
Lorry
(i) State where the classes Car and Moped should be added to the diagram, and give a
reason for your answer. (You may draw on the diagram.)
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [2]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [2]
© OCR 2011
11
(b) A company sells used cars. Part of the class diagram for UsedCar is shown.
UsedCar X
model
engineType
Y
price
status
setPrice:
Z
changeStatus:
...................................................................................................................................... [1]
...................................................................................................................................... [1]
(iii) State in which section of the diagram (X, Y or Z) yearOfManufacture should be shown.
...................................................................................................................................... [1]
[deposit paid]
Available Being
for sale sold
(i) Give the correct name for this type of UML diagram.
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...................................................................................................................................... [1]
(ii) Give the correct name for another notation that can be used instead of syntax diagrams.
...........................................................................................................................................
...................................................................................................................................... [1]
Label is a single letter chosen from A, B, C, D or E, followed by the symbol * then any
number (including zero) of digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
For example, A*, B*3 and C*456 are labels, but F*7 and DE*8 are not labels.
© OCR 2011
13
[5]
...........................................................................................................................................
...................................................................................................................................... [1]
+ –
p q r s
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [4]
(iii) Give the correct name for the type of tree traversal that should be used in (ii).
...........................................................................................................................................
...................................................................................................................................... [1]
© OCR 2011
15
8 (a) Describe two differences between machine code and assembly language.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [6]
© OCR 2011
17
9 A database management system (DBMS) uses a data description language (DDL) and a data
manipulation language (DML). Each statement given below may apply to a DDL, a DML or both.
Tick one box in each row to show which is correct.
[7]
(i) State the relationship between the Student and Subject tables.
...........................................................................................................................................
...................................................................................................................................... [1]
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [3]
(b) The relationship of Student to PersonalTutor is shown on the entity-relationship (E-R) diagram.
Student PersonalTutor
...........................................................................................................................................
...................................................................................................................................... [1]
(ii) Explain the use of primary and foreign keys for Student and PersonalTutor.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...................................................................................................................................... [5]
© OCR 2011
19
(c) State the meaning of the term secondary key and give an example of the use of a secondary
key in the school database described.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [2]
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [4]
© OCR 2011
20
Copyright Information
OCR is committed to seeking permission to reproduce all third-party content that it uses in its assessment materials. OCR has attempted to identify and contact all copyright holders
whose work is used in this paper. To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced in the OCR Copyright
Acknowledgements Booklet. This is produced for each series of examinations, is given to all schools that receive assessment material and is freely available to download from our public
website (www.ocr.org.uk) after the live examination series.
If OCR has unwittingly failed to correctly acknowledge or clear any third-party content in this assessment material, OCR will be happy to correct its mistake at the earliest possible
opportunity.
For queries or further information please contact the Copyright Team, First Floor, 9 Hills Road, Cambridge CB2 1GE.
OCR is part of the Cambridge Assessment Group; Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a
department of the University of Cambridge.
© OCR 2011