(a)(i) Convert the unsigned binary integer into denary.
00100111
Show model answer
39
1 mark.
Practise 110 real questions from the Oct/Nov 2022 exam series, from Paper 1, Paper 2, Paper 3, Paper 4. See the answer and explanation as soon as you answer.
Oct/Nov 2022 is one of the exam sessions in our A Level Computer Science (Cambridge (CAIE) 9618) question bank. We have 110 real questions from it. Work through them, open the explanation for each one, and redo the ones you missed a few days later.
These are real past-paper questions. Think of your answer first, then open the explanation.
(a)(i) Convert the unsigned binary integer into denary.
00100111
39
1 mark.
(b)(ii) Tick one box in each row to identify the system bus used by each CPU component.
System clock → Control bus
Memory Address Register (MAR) → Address bus
System clock: Control bus ✓
Memory Address Register (MAR): Address bus ✓
1 mark for both rows correct.
(c) Describe one appropriate method of compressing a text file.
• Lossless compression
• Run Length Encoding
• Repeated sequences of characters are replaced by a single copy of the character and a counter of the number of characters
3 marks: 1 for each bullet point to max 3.
(a)(ii) Explain the advantages of making the changes described in part (a)(i) when the data is stored in the linked list instead of an array.
• Pointers determine the ordering of data // only the pointers need to be changed when data changed
• Easier to add / delete data (to maintain correct sequence) in a linked list // description of moving data to maintain correct sequence when array used
2 marks: 1 for each point.
(a) Write the normalised floating-point representation of +202 in this system. Show your working.
8 bits for mantissa, 8 bits for exponent, two's complement.
Working:
+202 = 11001010
Appropriate shifting: 0.1100101 × 2^8
Mantissa: 01100101
Exponent: 00001000
3 marks: 2 for working, 1 for correct answer.
(b)(ii) Evaluate your infix expression from part (b)(i) when a = 5, b = 10, c = 27 and d = 12.
–39
1 mark.
(b) Complete the pseudocode for the class Car to enable objects to be created.
String attributes: make, model, body type, fuel type.
Integer attribute: number of cars of that type built.
Attributes must be available only through the methods of the class.
CLASS Car
PRIVATE Make : STRING
PRIVATE Model : STRING
PRIVATE BodyType : STRING
PRIVATE Fuel : STRING
PRIVATE NumberBuilt : INTEGER
PUBLIC PROCEDURE NEW(CarMake : STRING, CarModel : STRING, CarBodyType : STRING)
Make ← CarMake
Model ← CarModel
BodyType ← CarBodyType
Fuel ← ""
NumberBuilt ← 0
ENDPROCEDURE
getFuel()
getNumberBuilt()
ENDCLASS
5 marks: 1 for Car and ENDCLASS, 1 for four declarations using correct identifiers, 1 for constructor header using CarBodyType, 1 for two assignments using CarMake, 1 for constructor identifier for car model matching.
(a)(iii) Write program code to declare each of 15 cards as a variable of type Card in the main program.
1 red, 2 red, 3 red, 4 red, 5 red, 1 blue, 2 blue, 3 blue, 4 blue, 5 blue, 1 yellow, 2 yellow, 3 yellow, 4 yellow, 5 yellow.
Python:
OneRed = Card(1, "red")
TwoRed = Card(2, "red")
ThreeRed = Card(3, "red")
FourRed = Card(4, "red")
FiveRed = Card(5, "red")
OneBlue = Card(1, "blue")
TwoBlue = Card(2, "blue")
ThreeBlue = Card(3, "blue")
FourBlue = Card(4, "blue")
FiveBlue = Card(5, "blue")
OneYellow = Card(1, "yellow")
TwoYellow = Card(2, "yellow")
ThreeYellow = Card(3, "yellow")
FourYellow = Card(4, "yellow")
FiveYellow = Card(5, "yellow")
Java:
Card oneRed = new Card(1, "red");
Card twoRed = new Card(2, "red");
Card threeRed = new Card(3, "red");
Card fourRed = new Card(4, "red");
Card fiveRed = new Card(5, "red");
Card oneBlue = new Card(1, "blue");
Card twoBlue = new Card(2, "blue"); …
The full model answer is in the app.
| Paper | Questions |
|---|---|
| Paper 1 | 36 |
| Paper 2 | 22 |
| Paper 3 | 31 |
| Paper 4 | 21 |
110 real A Level Computer Science (9618) questions from the Oct/Nov 2022 series, from Paper 1, Paper 2, Paper 3, Paper 4. Each one shows its paper and topic.
Yes. Every question shows the correct answer and a short explanation the moment you answer.
Premium includes the paper PDFs. The first papers of each subject are free to open in the app.
You can start free with no signup. Premium unlocks every paper, the full question bank and the paper PDFs.