9618/33

Computer Science 9618/33October/November 2025

Cambridge A-Level · Advanced Theory · worked solutions for every part, with the mark scheme

13
questions
75
marks
90
minutes

Topics Data Representation · Communication and Internet Technologies · System Software · Computational Thinking and Problem-solving · Further Programming · Hardware and Virtual Machines · +2 more

Q1MediumData Representation
(a)

An enumerated data type, Spectrum, is required to hold the names of colours.

4M
(i)

Write the pseudocode statement for the type declaration of Spectrum to hold the names of the colours available:

Red, Orange, Yellow, Green, Blue, Indigo, Violet.

...........................................................................................................................................

.....................................................................................................................................

2M
(ii)

Identify two characteristics of the list of values given in an enumerated data type declaration.

1 .........................................................................................................................................

...........................................................................................................................................

2 .........................................................................................................................................

...........................................................................................................................................

2M
(b)

ColourData is a composite data type to store definitions of colours.

Write pseudocode statements to declare ColourData to hold the following fields:

FieldExample data
ColourCodeXYZ12345
ColourRed
Wavelength650
Frequency4.62
PrimaryColourYes

Use the most appropriate data type in each case, including the enumerated data type Spectrum from part a(i).

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

4M
Q2MediumData Representation

Numbers are stored in a computer system using binary floating-point representation with:

• 12 bits for the mantissa
• 4 bits for the exponent
• two’s complement form for both the mantissa and the exponent
• 2 bytes in total.

(a)

Outline the effect of changing the number of bits used to store the mantissa to 10 bits, in this system.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
(b)

Describe one example of a situation that could cause an overflow to occur and the consequences of such an overflow.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
Q34MMedium-EasyCommunication and Internet Technologies

Describe how packet switching is used to pass messages across a network. Do not include checking for completeness and resending packets in your answer.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

....................................................................................................................................................

Similar questions
Q46MEasyCommunication and Internet Technologies

Identify and describe three protocols that are used in the Application Layer of the TCP/IP protocol suite.

Protocol 1 .........................................................................................................................................

Description .......................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

Protocol 2 .........................................................................................................................................

Description .......................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

Protocol 3 .........................................................................................................................................

Description .......................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

Similar questions
Q5Medium-EasySystem Software
(a)

State the purpose of multi-tasking.

...................................................................................................................................................

.............................................................................................................................................

1M
(b)

Explain how an operating system ensures that multi-tasking operates efficiently.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
Q6MediumHardware and Virtual Machines
(a)

The Karnaugh map (K-map) represents a logic circuit with four inputs.

5M
(i)

Draw loop(s) around appropriate group(s) in the K-map to produce an optimal sum-of-products.

3M
(ii)

Write the Boolean expression from your answer to part a(i) as a simplified sum-of-products. Do not carry out any further simplification.

...........................................................................................................................................

.....................................................................................................................................

2M
(b)

Simplify the following expression using De Morgan’s laws and Boolean algebra.

Show all the stages in your simplification.

X=A+B+C+B+CX = \overline{A+B+C+\overline{B}+C}

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
Q7MediumSystem Software
(a)

Outline the process of optimisation during the compilation of a program.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

2M
(b)

Write the Reverse Polish Notation (RPN) for the given infix expression:

((6 + 12) / (16 – 10)) * 18

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
(c)

The RPN expression

c a – b d + * b c + /

is to be evaluated, where:

a = 4, b = 12, c = 24 and d = 6.

Show the changing contents of the stack as the RPN expression is evaluated.

4M
Q85MMediumArtificial Intelligence (AI)

Calculate the shortest distance between the Start node and each of the nodes in the graph using Dijkstra’s algorithm.

Show your working on the graph or in the working space. Write your answers in the table provided.

Working ............................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

Answers:

TVWXYZ
Similar questions
Q94MMedium-EasySecurity

A company requires a digital certificate to ensure the authenticity of its online communications.

Outline the process followed to acquire a digital certificate.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

....................................................................................................................................................

Similar questions
Q10Medium-EasyComputational Thinking and Problem-solving

A stack, StackArray, is to be implemented using pseudocode, to store a maximum of 100 string items in an appropriate array. Declarations are required so that the stack has a beginning, an end and a maximum size. An array is also required to store the data.

(a)

Write pseudocode to declare the variables, constant and array required to implement the stack.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
(b)

Write pseudocode for a procedure to initialise the top and bottom pointers of the stack to appropriate values.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
Q113MMedium-EasyComputational Thinking and Problem-solving

Describe when the use of recursion would be beneficial and give an example.

Description .......................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

Example ...........................................................................................................................................

..........................................................................................................................................................

Similar questions
Q12Medium-EasyFurther Programming

An exception can occur when running a program.

(a)

Explain what is meant by an exception.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

3M
(b)

Identify one example of an exception and give one reason why the exception may cause a problem.

Example ....................................................................................................................................

...................................................................................................................................................

Reason ......................................................................................................................................

...................................................................................................................................................

2M
Q137MMediumFurther Programming

The table shows assembly language instructions for a processor that has one register, the Accumulator (ACC).

LabelInstructionExplanation
OpcodeOperand
LDM#nLoad the number n to the ACC
LDD<address>Load the contents of the location at the given address to the ACC
LDI<address>The address to be used is at the given address. Load the contents of this second address to the ACC
ADD<address>Add the contents of the given address to the ACC
ADD#nAdd the number n to the ACC
SUB<address>Subtract the contents of the given address from the ACC
SUB#nSubtract the number n from the ACC
STO<address>Store the contents of the ACC at the given address
<label>:<data>Gives a symbolic address <label> to the memory location with the contents <data>

denotes a denary number, e.g. #123

<label> can be used in place of <address>

The current contents of memory are:

AddressContents
563125
89963

Write assembly language code, using only the given instruction set to:

• store the denary value 250 as labelled variable X
• store the value stored in location 563 as labelled variable Y
• add the value stored in variable X to the value stored in variable Y
• subtract the value stored in location 899 from the current value in the Accumulator
• store the result in variable Total.

Show the initialisation and values of the variables X, Y and Total in the table provided.

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

LabelContent
Similar questions