9618/33

Computer Science 9618/33May/June 2024

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

11
questions
75
marks
90
minutes

Topics Data Representation · Hardware and Virtual Machines · Communication and Internet Technologies · System Software · Security · Further Programming · +2 more

Q1MediumData Representation

Real numbers are stored in a computer system using floating-point representation with:

• 10 bits for the mantissa
• 6 bits for the exponent
• two’s complement form for both the mantissa and the exponent.

(a)

Calculate the denary value of the given normalised floating-point number.

Show your working.

MantissaExponent
0100111100001001

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

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

Answer ......................................................................................................................................

3M
(b)

Calculate the normalised floating-point representation of –102.75 in this system.

Show your working.

MantissaExponent

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

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

3M
Q2Medium-EasyCommunication and Internet Technologies

The TCP/IP protocol suite has four layers:

Transport, Application, Link, Internet

(a)

Complete the diagram to show the correct order for these layers.

2M
(b)

Describe the function of the Transport layer.

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

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

2M
(c)

Outline one protocol that is associated with the Application layer.

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

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

2M
Q3MediumData Representation
(a)

Explain what is meant by non-composite and composite data types.

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

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

3M
(b)

Write pseudocode statements to declare the record data type FootballClub to hold data about football clubs in a league, to include:

• name of team
• date team joined the league
• main telephone number
• name of the manager
• number of members
• current position in the league.

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

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

4M
Q4MediumData Representation
(a)

Describe the sequential method of file access.

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

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

2M
(b)

Explain how the sequential method of file access is applied to files with serial organisation and to files with sequential organisation.

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

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

3M
Q5MediumSystem Software
(a)

Write this Reverse Polish Notation (RPN) in infix form:

5 2 + 9 3 - / 3 *

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

3M
(b)

Write this infix expression in RPN:

((7 + 3) - (2 * 8)) / 6

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

2M
(c)

Evaluate this RPN expression:

a b - c d + * e /

when

a = 17, b = 5, c = 7, d = 3 and e = 10

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

4M
Q6MediumHardware and Virtual Machines

The diagram shows a logic circuit.

(a)

Complete the truth table for the given logic circuit.

Show your working.

Working space
ABCPQRSZ
000
001
010
011
100
101
110
111
3M
(b)

Write the Boolean expression that corresponds to the logic circuit as a sum-of-products.

Z = ............................................................................................................................................

2M
(c)
5M
(i)

Complete the Karnaugh map (K-map) for the Boolean expression:

A.B.C+A.B.C+A.B.C+A.B.C+A.B.C+A.B.C\overline{A}.\overline{B}.\overline{C} + \overline{A}.B.\overline{C} + A.\overline{B}.\overline{C} + A.\overline{B}.C + A.B.\overline{C} + A.B.C

2M
(ii)

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

2M
(iii)

Write the Boolean expression from your answer to part (c)(ii) as a simplified sum-of-products.

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

1M
Q7MediumSecurity
(a)

Describe what is meant by a digital certificate.

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

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

3M
(b)

Explain the role of a digital certificate in creating a digital signature.

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

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

2M
Q8MediumFurther Programming

A declarative programming language is used to represent the features that are available and the features that are unavailable on different body styles of a car.

01 feature(sunroof).
02 feature(automatic_tailgate).
03 feature(heated_seats).
04 feature(extra_seats).
05 feature(reversing_camera).
06 feature(dashboard_camera).
07 feature(air_conditioning).
08 feature(heated_windscreen).
09 feature(satnav).
10 bodystyle(saloon).
11 bodystyle(hatchback).
12 bodystyle(estate).
13 bodystyle(minivan).
14 bodystyle(convertible).
15 available(sunroof, hatchback).
16 available(sunroof, minivan).
17 available(reversing_camera, hatchback).
18 available(extra_seats, minivan).
19 available(reversing_camera, saloon).
20 unavailable(sunroof, convertible).
21 unavailable(automatic_tailgate, saloon).
22 unavailable(extra_seats, hatchback).

These clauses have the meanings:

ClauseMeaning
01Sunroof is a feature.
10Saloon is a body style.
15Sunroof is available on a hatchback.
20Sunroof is unavailable on a convertible.
(a)

Sliding doors is a feature that is available on a minivan but unavailable on a hatchback.

Write additional clauses to represent this information.

23 .............................................................................................................
24 .............................................................................................................
25 .............................................................................................................
3M
(b)

Using the variable Options, the goal:

available(Options, saloon)

returns

Options = reversing_camera

Write the result returned by the goal:

available(Options, hatchback)

Options = ........................................................................................................................

1M
(c)

F may be available for B if F is a feature and B is a body style and F is not unavailable for that body style.

Write this as a rule:

may_choose_option(F, B)
IF .............................................................................................................
...................................................................................................................
4M
Q93MMedium-EasyArtificial Intelligence (AI)

Explain what is meant by Deep Learning in relation to Artificial Intelligence (AI).

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

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

Similar questions
Q10MediumComputational Thinking and Problem-solving
(a)

State a condition that must be true for an array to be searchable for a binary search.

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

1M
(b)

Complete the given pseudocode to find an item in a 1D array Names of type STRING using a binary search.

DECLARE Names : ARRAY[1:100000] OF STRING
DECLARE TopOfList : INTEGER
DECLARE EndOfList : INTEGER
DECLARE CurrentItem : INTEGER
DECLARE ToFind : STRING
DECLARE Found : BOOLEAN
DECLARE NotInList : BOOLEAN
TopOfList ← 1
EndOfList ← 100000

OUTPUT "Which name do you wish to find? "
INPUT ToFind

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

NotInList ← FALSE

WHILE ................................................ AND ................................................
   CurrentItem ← (TopOfList + EndOfList) DIV 2

   IF ........................................................................................................... THEN
      Found ← TRUE
   ELSE
      IF TopOfList >= EndOfList THEN
         ...........................................................................................................
      ELSE 
         IF ToFind > Names[CurrentItem] THEN
            ...........................................................................................................
         ELSE
            EndOfList ← CurrentItem – 1
         ENDIF
      ENDIF
   ENDIF
ENDWHILE

IF Found = TRUE THEN
   OUTPUT "Item found at position ", CurrentItem, " in array"
ELSE
   OUTPUT "Item not in array"
ENDIF
5M
(c)

Describe the performance of a binary search in relation to the number of data items in the array being searched. Refer to Big O notation in your answer.

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

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

2M
Q11MediumHardware and Virtual Machines

Reduced Instruction Set Computers (RISC) and Complex Instruction Set Computers (CISC) are two types of processor.

(a)

State two features of RISC processors.

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

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

2M
(b)

Outline the process of interrupt handling as it could be applied to RISC or CISC processors.

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

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

3M
(c)

Explain how pipelining affects interrupt handling for RISC processors.

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

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

3M