Question 3 2013 · October-November · Paper 33 · 34 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 3
Part (b)
(i)
What is the relationship between car and customer?
(ii)
What is the relationship between depot and car?
Part (c)
A database solution is to be developed.
Two of the tables are CAR and CUSTOMER.
(i)
Draw an entity-relationship (E-R) diagram showing a database design which can
be produced so that the car and customer data are fully normalised.
Question 5
(ii)
Explain how the relationships are implemented. For
Examiner's Use
Part (d)
The following table design is suggested for CAR.
CAR(CarRegistrationNo, CarMake, CarModel, HirePriceCode, DepotID, DepotAddress, DepotManager)
This is poorly designed.
(i)
Is this table in First Norm Form (1NF)?
Explain.
(ii)
Is this table in Second Normal form (2NF)?
Explain.
(iii)
The table is not in Third Normal Form (3NF).
Explain.
(iv)
Using only the attributes given in the CAR table above, produce a new design
which is fully normalised.
The table descriptions should be expressed as:
TableName(Attribute1, Attribute2, Attribute3, ...)
Question 6
Part (e)
Explain why all tables in the final design should be fully normalised. For
Examiner's Use
Part (f)
The table to store the hire data has the following design:
HIRE(HireID, CarRegistrationNo, HireBookingDate, HireStartDate, NoOfDays, HireRate, CustomerID)
Write a Data Manipulation Language (DML) query to report all hire bookings made for car registration 456431 with customer C674. Display the customer ID and hire ID only. Use the keywords SELECT, FROM, WHERE.
Question 3
Part (a)
Describe what is meant by a register.
Part (b)
(i)
Convert the hexadecimal number 7F into denary.
(ii)
Convert the denary number 291 into hexadecimal.
(iii)
Why do computer scientists often write binary numbers in hexadecimal?
Question 7
Part (c)
The diagram shows a program loaded into main memory starting at memory address For
40 Hex. Examiner's Use
Main memory (Contents shown in Address Hex.) 40 7324 41 A351 42 A552 43 FFFF
68 003C 69 103C 6A 010B
(i)
How many bytes are used to store each program instruction?
(ii)
Describe the steps in the fetch stage of the fetch-execute cycle.
Use the instruction at address 40 to illustrate your answer.
Question 8
Part (d)
The following table shows some of a processor’s instruction set in assembly language. For
Examiner's Use Instruction Explanation Op Code Operand Direct addressing. Load the contents of the given address LDD <address> to ACC Indirect addressing. At the given address is the address to LDI <address> be used. Load the contents of this second address to ACC STO <address> Store the contents of ACC at the given address
ADD <address> Add the contents of the given address to the ACC
INC <register> Add 1 to the contents of the register (ACC or IX)
JMP <address> Jump to the given address
The following program is to be executed. Shown are:
- the first seven instructions in this program
- the memory locations which will be accessed by this program.
Address Main memory 130 LDI 160 131 ADD 153 132 STO 153 133 LDD 160 134 INC ACC 135 STO 160 136 JMP 130
150 13 151 23 152 11 153 0
160 150
Question 9
Complete the trace table below for two iterations of the loop. For Show each change in the contents of the register and memory locations. Examiner's Use
Register Memory location ACC 153 160 0 150
Question 10
Why this question appears here
87% assigned-topic match · Processor fundamentals › Assembly language
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_w13_qp_33.pdf
