A Level Computer Science 9618 Paper 32, May/June 2024

Question paper and mark scheme75 marks11 questions

Solve it on ExamPal

Practise

Untimed. Write on the paper and check as you go.

Start

Exam

Timed, with a clock you set, like sitting the real paper.

Start

Opens full screen.

Papers open in

Opening the question paper

Read as textThe questions and the mark scheme as plain text. Easier to read on a phone.

Question paper

9618/32 · May/June 2024

Download PDF
1
a

Describe the effect of changing the allocation of bits used for the mantissa and for the exponent in a floating-point number with a fixed total number of bits.

[2]
b

Real numbers are stored in a computer, using floating-point representation with: • 12 bits for the mantissa • 4 bits for the exponent • two’s complement form for both the mantissa and exponent. Calculate the normalised floating-point representation of +54.8125 in this system. Show your working.

[3]
2
a

Outline why protocols are essential for communication between computers.

[2]
b

State the names of two different protocols associated with the sending and receiving of emails between computers. Sending .................................................................................................................................... Receiving ..................................................................................................................................

[2]
c

Explain the meaning of the phrase: BitTorrent protocol provides peer-to-peer file sharing.

[3]
3
a

Explain what is meant by the term non-composite data type and give an example of a non-composite data type. Example ....................................................................................................................................

[3]
b

Write pseudocode statements to declare the set data type EvenNumbers to hold this set of even numbers between 2 and 12: 2, 4, 6, 8, 10, 12

[4]
4

Sheila has a customer called Fred. Fred wants to send Sheila a confidential document as part of a transaction. Explain how Fred uses asymmetric encryption to send his document securely.

[4]
5
a

Write this infix expression in Reverse Polish Notation (RPN): (7 – 2 + 8) / (9 – 5)

[2]
b

Evaluate this RPN expression: a d + a b + c - * when a = 6, b = 3, c = 7 and d = 9 Show the changing contents of the stack as the RPN expression is evaluated.

[4]
c

Write this RPN expression in infix form: b a c - + d b + * c /

[3]
6

The diagram shows a logic circuit.

Figure 1 of 1 for question 6
a

Complete the truth table for the given logic circuit. Show your working.

[3]
b

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

[2]
c(i)

Complete the Karnaugh map (K-map) for this Boolean expression: Aˉ.Bˉ.Cˉ+Aˉ.B.Cˉ+Aˉ.B.C+A.Bˉ.Cˉ+A.B.Cˉ+A.B.C

[2]
c(ii)

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

[2]
c(iii)

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

[1]
7
a

Outline what is meant by direct access as a method of file access.

[2]
b(i)

Explain how direct access is used to locate a specific record in sequential files and random files. Sequential files ..................................................................................................................

[2]
b(ii)

Random files .....................................................................................................................

[2]
8
a

Complete the pseudocode to find an item in a 1D array Widgets of type STRING, using a linear search. DECLARE Widgets : ARRAY[1:50000] OF STRING DECLARE TopOfList : INTEGER DECLARE EndOfList : INTEGER DECLARE Count : INTEGER DECLARE ToFind : STRING DECLARE Found : BOOLEAN DECLARE NotInList : BOOLEAN TopOfList ← 1 EndOfList ← 50000 OUTPUT "Enter the name of the item you wish to find " INPUT ToFind ………………………………………………………………………………………………………………………………… NotInList ← FALSE Count ← TopOfList WHILE …………………………………………………………… AND ……………………………………………………………………… IF ……………………………………………………………………………………………………………………………… THEN Found ← TRUE ENDIF Count ← Count + 1 IF …………………………………………………………………………………………………………………………… THEN NotInList ← TRUE ENDIF ENDWHILE IF Found = TRUE THEN OUTPUT "Item found at position ", Count - 1, " in array" ELSE OUTPUT "Item not in array" ENDIF

[4]
b

Compare the methods used by the linear and binary search algorithms to find an item in an array. Refer to Big O notation in your answer.

[4]
9
a

Outline two benefits and two limitations of a virtual machine. Benefit 1 ................................................................................................................................... Benefit 2 ................................................................................................................................... Limitation 1 ............................................................................................................................... Limitation 2 ...............................................................................................................................

[4]
b

Explain the roles of the host operating system and the guest operating system as used in a computer system running a virtual machine.

[3]
10

A declarative programming language is used to allow clients to choose daily activities at the beach. 01 activity(paddleboarding). 02 activity(sailing). 03 activity(rowing). 04 activity(kayaking). 05 activity(jetskiing). 06 client(stevie). 07 client(antonio). 08 client(henry). 09 client(eliza). 10 client(rebeka). 11 client(danny). 12 client(erik). 13 client(simone). 14 client(petra). 15 client(frankie). 16 choice(petra, rowing). 17 choice(frankie, sailing). 18 choice(erik, sailing). 19 choice(eliza, rowing). 20 choice(stevie, jetskiing). 21 choice(henry, sailing). 22 done(henry, jetskiing). 23 done(rebeka, jetskiing). 24 done(antonio, kayaking). These clauses have the meanings: Clause | Meaning 01 | Paddle boarding is an activity. 06 | Stevie is a client. 16 | Petra has chosen rowing. 22 | Henry has already done jet skiing.

a

Jane is a client who would like to choose the activity surfing and she has already done sailing. Write additional clauses to represent this information. 25 ............................................................................................................................................. 26 ............................................................................................................................................. 27 ............................................................................................................................................. 28 .............................................................................................................................................

[4]
b

Using the variable List, the goal: choice(List, rowing) returns List = petra, eliza Write the result returned by the goal: choice(List, sailing) List = ..............................................................................................................................

[1]
c

C is a client who would like to choose A if A is an activity and C has not already done A. Write this as a rule: may_choose_activity(C, A) IF ............................................................................................................................................

[4]
11

Explain what is meant by Reinforcement Learning in relation to Artificial Intelligence.

[3]

Mark scheme

9618/32 · May/June 2024

Download PDF

1a · 2 marks

  • 1 mark

    When the number of bits in the mantissa is raised, the precision / accuracy of the number represented increases // when the number of bits in the mantissa is lowered, the precision / accuracy of the number represented reduces.

  • 1 mark

    When the number of bits in the exponent is reduced, the range of numbers that can be represented is reduced // when the number of bits in the exponent is increased, the range of possible numbers that can be represented increases.

  • 1 mark

    When the range increases the accuracy decreases // When the range decreases the accuracy increases.

1b · 3 marks

  • 1 mark

    number converted to binary e.g. 54.8125 = 00110110.1101 // Fractions method 1/2 + 1/4 + 1/16 + 1/32 + 1/128 + 1/256 + 1/1024 = 877/1024 // 32 + 16 + 4 + 2 + 0.5 + 0.25 + 0.0625 / (1/2 + 1/4 + 1/16)

  • 1 mark

    exponent = 6 // Moving binary point the correct number of places

  • 1 mark

    correct answer: Mantissa 0 1 1 0 1 1 0 1 1 0 1 0, Exponent 0 1 1 0

2a · 2 marks

  • 1 mark

    Protocols provide a standard set of rules that enables successful data transfer between devices.

  • 1 mark

    Allows communication between devices on different platforms.

  • 1 mark

    Makes communications independent of software and hardware.

2b · 2 marks

  • 1 mark

    Sending - SMTP

  • 1 mark

    Receiving – POP3 // IMAP // Post Office Protocol 3

2c · 3 marks

  • 1 mark

    BitTorrent allows the sharing of files between thousands of users who are connected together over the internet.

  • 1 mark

    It allows more users to share files with each other than would be the case with a peer-to-peer network.

  • 1 mark

    Users share files directly with each other // the users' computers are acting as peers

  • 1 mark

    … no web server / central device is used // all users are of equal status.

3a · 3 marks

  • 1 mark

    A data type that is defined without referencing another data type.

  • 1 mark

    It can be a primitive data type found in a programming language or a user-defined data type.

  • 1 mark

    Example – enumerated data type / pointer data type / allow a correct example of an enumerated or pointer data type declaration.

3b · 4 marks

  • 1 mark

    Type statement fully correct

  • 1 mark

    DEFINE EvenNumbers

  • 1 mark

    Correct list of values in brackets

  • 1 mark

    : <set identifier> from Type statement used

4 · 4 marks

  • 1 mark

    Sheila's computer uses an algorithm to generate a matching pair of keys private and public

  • 1 mark

    Sheila's computer sends Fred's computer Sheila's public key // Fred's computer acquires Sheila's public key

  • 1 mark

    Fred's computer encrypts the document/plain text using Sheila's public key to create cipher text

  • 1 mark

    Fred's computer sends the cipher text to Sheila's computer The cipher text can only be decrypted using Sheila's private key // Sheila's computer uses Sheila's private key to decrypt the cipher text.

5a · 2 marks

  • 1 mark

    7 2 – 8 +

  • 1 mark

    9 5 - /

5b · 4 marks

  • 1 mark

    First ring (stacks 1, 2, 3: [6], [9, 6], [15])

  • 1 mark

    Second ring (stack 4: [6, 15])

  • 1 mark

    Third ring (stacks 5, 6, 7, 8: [3, 6, 15], [9, 15], [7, 9, 15], [2, 15])

  • 1 mark

    Fourth ring (stack 9: [30])

5c · 3 marks

  • 1 mark

    (a – c + b)

  • 1 mark

    * (d + b)

  • 1 mark

    /c

6a · 3 marks

  • 1 mark

    working, all five columns P, Q, R, S and T

  • 1 mark

    first four rows of column Z

  • 1 mark

    second four rows of column Z

6b · 2 marks

  • 2 marks

    Two marks for all six correct terms only (Z = Ā.B̄.C + Ā.B.C̄ + Ā.B.C + A.B̄.C + A.B.C̄ + A.B.C) // One mark for any three correct terms

6c(i) · 2 marks

  • 2 marks

    Two marks if all correct / One mark if only one error present

6c(ii) · 2 marks

  • 1 mark

    Correct loop for group of 4 (columns 11 and 10)

  • 1 mark

    Correct loop for group of 4 (wraparound columns 00 and 10)

6c(iii) · 1 mark

  • 1 mark

    B + C̄

7a · 2 marks

  • 1 mark

    Direct access allows a record to be found in a file without other records being read.

  • 1 mark

    Records are found by using the key field of the target record // the location of the record is found using a hashing algorithm.

7b(i) · 2 marks

  • 1 mark

    In sequential files, an index of all key fields is kept

  • 1 mark

    The index is searched for the address of the file location where the target record is stored.

7b(ii) · 2 marks

  • 1 mark

    A hashing algorithm is used on the key field of the record

  • 1 mark

    … to calculate the address of the memory location where the target record is expected to be stored.

  • 1 mark

    Method to find a record if it is not at the expected location e.g. linear probing, search overflow area etc.

8a · 4 marks

  • 1 mark

    WHILE Found = FALSE AND NotInList = FALSE // Count <= EndOfList

  • 1 mark

    IF ToFind = Widgets[Count] // Widgets[Count] = ToFind THEN

  • 1 mark

    Count ← Count + 1

  • 1 mark

    IF Found = FALSE AND Count > EndOfList THEN

8b · 4 marks

  • 1 mark

    Linear search sequentially checks each element of the array / list.

  • 1 mark

    … until the matching element is found, or the end of the array / list is reached.

  • 1 mark

    Binary search finds the mid-point of an array/list and determines which side contains the item to be found

  • 1 mark

    … it discards the half of the array/list not containing the search item // … it finds the position of a target value within an array / list by repeatedly halving the target search field.

  • 1 mark

    The binary search requires the elements to be sorted // The linear search does not require the elements to be sorted.

  • 1 mark

    The binary search will usually do many fewer comparisons of records/iterations against the target than a linear search before it finds its target.

  • 1 mark

    Linear search starts at the beginning of the array/list and binary search starts in the middle of the array/list.

  • 1 mark

    Big O for binary search is O (Log₂ n)

  • 1 mark

    Big O for linear search is O (n)

  • 1 mark

    Big O notation is used to indicate the time / space complexity of an algorithm

9a · 4 marks

  • 1 mark

    COMPATIBILTY e.g. Applications that aren’t compatible with the host computer can be run on the virtual machine // It is possible to emulate old software on a new system by running a compatible guest operating system as a virtual machine // Software can be tried on different OS on the same hardware.

  • 1 mark

    PROTECTION e.g. The guest operating system has no effect on anything outside the virtual machine other virtual machines or the host computer//Virtual machines are useful for testing as they will not crash the host computer if something goes wrong // Easier to recover if software causes a system crash as virtual machine software protects the host system.

  • 1 mark

    COST e.g. No need to buy extra computers / hardware as multiple virtual machines can be implemented on the same hardware.

  • 1 mark

    PERFORMANCE e.g. The performance of the guest operating system will not be as good on a virtual machine as it would be on its own compatible machine because of the extra code / using more RAM/memory space // The performance of the VM is dependent on the capabilities of the host computer // Response times cannot be accurately measured using a virtual machine.

  • 1 mark

    COMPLEXITY e.g. Building an in-house virtual machine can be expensive, time consuming and complex to maintain / set-up.

  • 1 mark

    HARDWARE/SOFTWARE ISSUES e.g. Some hardware/software can’t be emulated with a virtual machine // Some of the host machine’s hardware can’t be directly accessed by the virtual machine.

9b · 3 marks

  • 1 mark

    The host operating system is the normal operating system for the host computer / machine.

  • 1 mark

    It has control of all the resources of the host computer / machine. // It can access the physical resources of the host computer / machine.

  • 1 mark

    It provides a user interface to operate the virtual machine software.

  • 1 mark

    It also runs the virtual machine software.

  • 1 mark

    The guest operating system runs within the virtual machine.

  • 1 mark

    … it controls the virtual hardware/software during the emulation. // It accesses the actual hardware through the virtual machine and host operating system.

  • 1 mark

    It provides a virtual user interface for the emulated hardware/software.

  • 1 mark

    The guest operating system runs under the control of the host operating system.

10a · 4 marks

  • 1 mark

    (25) client(jane).

  • 1 mark

    (26) activity(surfing).

  • 1 mark

    (27) choice(jane, surfing).

  • 1 mark

    (28) done(jane, sailing).

10b · 1 mark

  • 1 mark

    (List =) frankie, erik, henry

10c · 4 marks

  • 1 mark

    client(C)

  • 1 mark

    activity(A)

  • 1 mark

    done(C, A)

  • 1 mark

    all correct Boolean operators and punctuation (allow , for AND). There must be the correct number of terms and no additional lines of code

11 · 3 marks

  • 1 mark

    Reinforcement learning is a machine learning technique based on feedback / rewards / punishment.

  • 1 mark

    … in which an agent learns to behave in an environment by performing the actions and seeing the results of the actions.

  • 1 mark

    … for each good action, the agent gets positive feedback / reward and each bad action receives negative feedback / punishment.

  • 1 mark

    The agent learns automatically using feedback without any labelled data / specific instructions.

  • 1 mark

    Adjust node weightings to achieve the correct outcome. // Using feedback to improve its performance at accomplishing similar tasks.

Questions

  1. 1
    Question 15 marks
    Mark scheme ›
  2. 2
    Question 27 marks
    Mark scheme ›
  3. 3
    Question 37 marks
    Mark scheme ›
  4. 4
    Question 44 marks
    Mark scheme ›
  5. 5
    Question 59 marks
    Mark scheme ›
  6. 6
    Question 610 marks
    Mark scheme ›
  7. 7
    Question 76 marks
    Mark scheme ›
  8. 8
    Question 88 marks
    Mark scheme ›
  9. 9
    Question 97 marks
    Mark scheme ›
  10. 10
    Question 109 marks
    Mark scheme ›
  11. 11
    Question 113 marks
    Mark scheme ›

More 9618 papers

Other papers from May/June 2024

Solve it on ExamPalStart