9618/32

Computer Science 9618/32October/November 2024

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

11
questions
75
marks
90
minutes

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

Q1Medium-EasyCommunication and Internet Technologies
(a)

Describe how packet switching is used to transmit messages across a network.

3M
(b)

State two benefits and two drawbacks of packet switching as a method of transmitting messages across a network.

Benefit 1 ...................................................................................................................................

Benefit 2 ...................................................................................................................................

Drawback 1 ...............................................................................................................................

Drawback 2 ...............................................................................................................................

4M
Q2Medium-EasyData Representation
(a)

Describe serial file organisation as a method of storing data records in a file.

2M
(b)

State one example of a use for serial file organisation.

1M
Q3Medium-EasyData Representation
(a)

Describe the user-defined data type record.

3M
(b)

A programmer defines a record, Order, to store the following data:

  • account number
  • order number
  • order price
  • order date.

Write pseudocode statements to define this record.

4M
Q4MediumData Representation

Numbers are stored in a computer 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.
(a)

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

Show your working.

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

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

2M
(b)

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

Show your working.

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

4M
Q5Medium-EasyCommunication and Internet Technologies
(a)

Name and describe two protocols used by the Application Layer of the TCP/IP protocol suite.

Protocol 1 .................................................................................................................................
Description ................................................................................................................................

Protocol 2 .................................................................................................................................
Description ................................................................................................................................

4M
(b)

Explain the purpose and function of the Application Layer in the TCP/IP protocol suite.

3M
Q6MediumHardware and Virtual Machines

The truth table for a logic circuit is shown.

INPUTOUTPUT
ABCDX
00000
00011
00101
00110
01000
01011
01101
01110
10000
10011
10101
10110
11000
11011
11101
11110
(a)

Write the Boolean logic expression that corresponds to the given truth table as the sum-of-products.

X = ............................................................................................................................

3M
(b)

Complete the Karnaugh map (K-map) for the given truth table.

2M
(c)

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

2M
(d)

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

X = ............................................................................................................................

2M
Q7MediumSystem Software

Several syntax diagrams are shown.

(a)

State why each number is invalid for the given syntax diagrams.

21
Reason .....................................................................................................................................

123
Reason .....................................................................................................................................

2M
(b)

Complete the Backus-Naur Form (BNF) for the given syntax diagrams.

<symbol> ::= ........................................................................................................................

<number> ::= ........................................................................................................................

2M
(c)

A new syntax rule, code, is required. It must begin with a letter, followed by one or two numbers, and end with a symbol.

5M
(i)

Draw a syntax diagram for code.

3M
(ii)

Write the BNF for code.

2M
Q84MMedium-EasyHardware and Virtual Machines

Complex Instruction Set Computer (CISC) is a type of processor.

Identify four features of a CISC processor.

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

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

3 .......................................................................................................................................................

4 .......................................................................................................................................................

Similar questions
Q9Medium-EasySystem Software
(a)

The kernel is the central component of an Operating System (OS).

Outline how the kernel of an OS acts as an interrupt handler.

2M
(b)
3M
(i)

State what is meant by the term multi-tasking in an Operating System.

1M
(ii)

Describe how multi-tasking is implemented in an Operating System.

2M
Q10Medium-EasyFurther Programming

Objects and classes form the basic structure of Object-Oriented Programming (OOP).

(a)

Outline the structure of a class.

3M
(b)

Give three differences between an object and a class.

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

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

3 ................................................................................................................................................

3M
Q11MediumData RepresentationComputational Thinking and Problem-solving

This binary tree shows an ordered list of integers.

(a)

A linked list of nodes is used to store the data. Each node consists of a left pointer, the data and a right pointer.

1-1 is used to represent a null pointer.

Complete this linked list to represent the given binary tree organisation.

4M
(b)

A 2D array is used to store the nodes of the linked list in part (a).

Complete the diagram using your answer for part (a).

RootPtrIndexLeftPtrDataRightPtr
0025
14
236
31
416
564
FreePtr69
749
8
4M
(c)

The linked list in part (a) is implemented using a 1D array of records. Each record contains a left pointer, data and a right pointer.

The following pseudocode represents a function that searches for an element in the array of records LinkList. It returns the index of the record if the element is found, or it returns a null pointer if the element is not found.

Complete the pseudocode for the function.

FUNCTION SearchList(Item : INTEGER) RETURNS ....................................................
   NullPtr ← -1
   .................................................................... ← RootPtr
   WHILE NowPtr <> NullPtr
      IF LinkList[NowPtr].Data < Item THEN
         NowPtr ← LinkList[NowPtr].RightPtr
      ELSE
         IF .............................................................................................................. THEN
            NowPtr ← .....................................................................................................
         ELSE 
            RETURN NowPtr
         ENDIF
      ENDIF
   ENDWHILE
   RETURN NullPtr
ENDFUNCTION
4M