Skip to content

Learn Extracted exam questions A-Level Computer Science 9618 Computer Science November 2024 Question paper 31

9618 Computer Science November 2024 Question paper 31

Source PDF on the left, extracted YAML on the right. Compare numbering, marks, options and text.

1 short_answer p. 2

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

\begin{itemize} \item 10 bits for the mantissa \item 6 bits for the exponent \item two's complement form for both the mantissa and the exponent. \end{itemize}

1a 3 marks calculation p. 2 13.3

Calculate the normalised binary floating-point representation of $+201.125$ in this system.

Show your working.

\textbf{Mantissa} \qquad \qquad \qquad \qquad \qquad \textbf{Exponent}

\framebox{$\square\,\square\,\square\,\square\,\square\,\square\,\square\,\square\,\square\,\square$} \qquad \framebox{$\square\,\square\,\square\,\square\,\square\,\square$}

1b 3 marks calculation p. 2 13.3

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

Show your working.

\textbf{Mantissa} \qquad \qquad \qquad \qquad \qquad \textbf{Exponent}

\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline 1 & 0 & 1 & 0 & 1 & 1 & 0 & 0 & 1 & 1 \ \hline \end{tabular} \qquad \begin{tabular}{|c|c|c|c|c|c|} \hline 0 & 0 & 0 & 1 & 0 & 1 \ \hline \end{tabular}

2 4 marks short_answer p. 3 15.1

Reduced Instruction Set Computers (RISC) is a type of processor.

Identify \textbf{four} features of a RISC processor.

  1. \hrulefill
  2. \hrulefill
  3. \hrulefill
  4. \hrulefill
3 short_answer p. 3
3a 3 marks long_answer p. 3 14.2

Describe circuit switching as a method of data transmission.

3b 2 marks short_answer p. 3 14.2

State \textbf{one} benefit and \textbf{one} drawback of circuit switching as a method of data transmission.

Benefit \hrulefill

Drawback \hrulefill

4 4 marks long_answer p. 4 14.1

The TCP/IP protocol may be viewed as a stack that contains four layers: Application, Transport, Internet, Link.

Describe how the layers of the TCP/IP protocol stack interact with each other.

5 short_answer p. 4
(no root text)
5a 3 marks long_answer p. 4 13.2

Explain what is meant by a hashing algorithm in the context of file access.

5b 2 marks short_answer p. 4 13.2

The use of a hashing algorithm can result in the same storage location being identified for more than one record.

Outline \textbf{two} methods of overcoming this issue.

  1. \hrulefill
  2. \hrulefill
6 short_answer p. 5
(no root text)
6a 3 marks long_answer p. 5 13.1

Describe the user-defined data type \textbf{set}.

6b 4 marks short_answer p. 5 13.1

Write \textbf{pseudocode} statements to declare the set data type, \texttt{SymbolSet}, to hold the following set of mathematical operators, using the variable \texttt{Operators}.

$$+ \quad - \quad * \quad / \quad \wedge$$
7 short_answer p. 6

The truth table for a logic circuit is shown.

\begin{tabular}{|c|c|c|c|c|} \hline \multicolumn{4}{|c|}{\textbf{INPUT}} & \textbf{OUTPUT} \ \hline \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{T} \ \hline 0 & 0 & 0 & 0 & 0 \ \hline 0 & 0 & 0 & 1 & 1 \ \hline 0 & 0 & 1 & 0 & 0 \ \hline 0 & 0 & 1 & 1 & 1 \ \hline 0 & 1 & 0 & 0 & 0 \ \hline 0 & 1 & 0 & 1 & 0 \ \hline 0 & 1 & 1 & 0 & 0 \ \hline 0 & 1 & 1 & 1 & 0 \ \hline 1 & 0 & 0 & 0 & 0 \ \hline 1 & 0 & 0 & 1 & 1 \ \hline 1 & 0 & 1 & 0 & 0 \ \hline 1 & 0 & 1 & 1 & 1 \ \hline 1 & 1 & 0 & 0 & 0 \ \hline 1 & 1 & 0 & 1 & 1 \ \hline 1 & 1 & 1 & 0 & 0 \ \hline 1 & 1 & 1 & 1 & 1 \ \hline \end{tabular}

7a 3 marks short_answer p. 6 3.2

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

\textbf{T} = \hrulefill

7b 2 marks short_answer p. 7 15.2

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

\begin{tabular}{r|c|c|c|c|} \multicolumn{1}{r}{\textbf{CD} \textbackslash \ \textbf{AB}} & \multicolumn{1}{c}{\textbf{00}} & \multicolumn{1}{c}{\textbf{01}} & \multicolumn{1}{c}{\textbf{11}} & \multicolumn{1}{c}{\textbf{10}} \ \cline{2-5} \textbf{00} & & & & \ \cline{2-5} \textbf{01} & & & & \ \cline{2-5} \textbf{11} & & & & \ \cline{2-5} \textbf{10} & & & & \ \cline{2-5} \end{tabular}

7c 2 marks short_answer p. 7 15.2

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

7d short_answer p. 7
(no root text)
7di 2 marks short_answer p. 7 15.2

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

\textbf{T} = \hrulefill

7dii 1 mark short_answer p. 7 15.2

Use Boolean algebra to write your answer to part (d)(i) in its simplest form.

\textbf{T} = \hrulefill

8 short_answer p. 8
(no root text)
8a 4 marks long_answer p. 8 16.1

Describe the process of \textbf{segmentation} for memory management.

8b 3 marks long_answer p. 8 16.1

Explain what is meant by \textbf{disk thrashing}.

9 short_answer p. 9

A veterinary surgery wants to create a class for individual pets. Some of the attributes required in the class are listed in the table.

\begin{tabular}{|l|l|l|} \hline \textbf{Attribute} & \textbf{Data type} & \textbf{Description} \ \hline \texttt{PetID} & \texttt{STRING} & unique ID assigned at registration \ \hline \texttt{PetType} & \texttt{STRING} & type of pet assigned at registration \ \hline \texttt{OwnerTelephone} & \texttt{STRING} & telephone number of owner assigned at registration \ \hline \texttt{DateRegistered} & \texttt{DATE} & date of registration \ \hline \end{tabular}

9a 1 mark short_answer p. 9 13.1

State \textbf{one} reason why the attributes would be declared as \texttt{PRIVATE}.

9b 5 marks short_answer p. 9 13.1

Complete the class diagram for \texttt{Pet}, to include:

\begin{itemize} \item an attribute and data type for the name of the pet \item an attribute and data type for the name of the owner \item a method to create a \texttt{Pet} object and set attributes at the time of registration \item a method to assign a pet ID \item a method to assign the date of registration \item a method to return the pet name \item a method to return the owner's telephone number. \end{itemize}

\begin{tabular}{|l|} \hline \multicolumn{1}{|c|}{\textbf{Pet}} \ \hline \texttt{PetID : STRING} \ \texttt{PetType : STRING} \ \texttt{OwnerTelephone : STRING} \ \texttt{DateRegistered : DATE} \ \hrulefill\ : \hrulefill\ \ \hrulefill\ : \hrulefill\ \ \hline \ \hrulefill\ \ \hrulefill\ \ \hrulefill\ \ \hrulefill\ \ \hrulefill\ \ \hline \end{tabular}

10 short_answer p. 10

Several syntax diagrams are shown.

10a 4 marks short_answer p. 11 16.2

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

\texttt{ ::=} \hrulefill

\texttt{

\texttt{ ::=} \hrulefill

10b short_answer p. 11

A new syntax rule, \textbf{password}, is required. It must begin with a letter or a symbol, followed by a digit and end with one or two symbols.

10bi 3 marks short_answer p. 11 16.2

Draw a syntax diagram for \textbf{password}.

10bii 2 marks short_answer p. 11 16.2

Write the BNF for \textbf{password}.

11 short_answer p. 12

The following diagram shows an ordered binary tree.

11a 4 marks short_answer p. 12 10.4

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$ is used to represent a null pointer.

Complete this linked list to represent the given binary tree.

11b 4 marks short_answer p. 13 10.4

A user-defined record structure is used to store the nodes of the linked list in part (a).

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

\textbf{RootPtr} \framebox[1.5cm]{\strut 0}

\textbf{FreePtr} \framebox[1.5cm]{\strut \quad}

\begin{tabular}{|c|c|c|c|} \hline \textbf{Index} & \textbf{LeftPtr} & \textbf{Data} & \textbf{RightPtr} \ \hline \textbf{0} & & Red & \ \hline \textbf{1} & & Green & \ \hline \textbf{2} & & Yellow & \ \hline \textbf{3} & & Blue & \ \hline \textbf{4} & & Orange & \ \hline \textbf{5} & & Indigo & \ \hline \textbf{6} & & Violet & \ \hline \textbf{7} & & & \ \hline \end{tabular}

11c 4 marks short_answer p. 13 10.4

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 \texttt{BinTree}. 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.

\begin{alltt} FUNCTION SearchTree(Item : STRING) \hrulefill

NowPtr <- \hrulefill

WHILE NowPtr <> -1

    IF \hrulefill THEN

        NowPtr <- BinTree[NowPtr].LeftPtr

    ELSE

        IF BinTree[NowPtr].Data < Item THEN

            \hrulefill

        ELSE

            RETURN NowPtr

        ENDIF

    ENDIF

ENDWHILE

RETURN NowPtr

ENDFUNCTION \end{alltt}

Log in or create account

IGCSE & A-Level