Principles and Theory Mark Scheme
, 1
A
COMPUTER SCIENCE
Paper 1
Monday 12 June 2023 Afternoon Time allowed: 2 hours 30 minutes
Materials
For this paper you must have:
• a computer
• a printer
• appropriate software
• the Electronic Answer Document
• an electronic version and a hard copy of the Skeleton Program • an electronic version and a hard
copy of the Preliminary Material. You must not use a calculator.
Instructions
• Type the information required on the front of your Electronic Answer Document.
• Before the start of the examination make sure your Centre Number, Candidate Name and
Candidate Number are shown clearly in the footer of every page (also at the top of the front cover)
of your Electronic Answer Document.
• Enter your answers into the Electronic Answer Document.
• Answer all questions.
• Save your work at regular intervals.
Information
• The marks for questions are shown in brackets.
• The maximum mark for this paper is 100.
• No extra time is allowed for printing and collating.
• The question paper is divided into four sections.
Advice
You are advised to allocate time to each section as follows:
Section A – 40 minutes; Section B – 20 minutes; Section C – 20 minutes; Section D – 70 minutes.
At the end of the examination
Tie together all your printed Electronic Answer Document pages and hand them to the Invigilator.
Warning
It may not be possible to issue a result for this paper if your details are not on every page of your
Electronic Answer Document.
Turn over ►
IB/G/Jun23/7517/1
, 2
IB/G/Jun23/E10 7517/1
Section A
You are advised to spend no longer than 40 minutes on this section.
Enter your answers for Section A in your Electronic Answer Document.
You must save this document at regular intervals.
IB/G/Jun23/7517/1
, 3
0 1 Describe the process that should be
followed to add an item to a circular queue
0 2
The following five coloured shapes are placed on a table.
Image of coloured shapes not reproduced here due
to third party copyright restrictions.
Tabitha secretly chooses one of the coloured shapes and:
• tells Walter the colour of the shape she has chosen (pink, yellow or blue)
• tells Lionel the type of shape she has chosen (triangle, circle or square).
Lionel and Walter both know what coloured shapes are on the table.
Lionel knows that Walter has been told the colour chosen by Tabitha.
Walter knows that Lionel has been told the type of shape chosen by Tabitha.
They do not know what the other has been told.
Tabitha first asks Walter and Lionel if they know which coloured shape she
has chosen. They both answer at the same time and say “No”.
Tabitha then asks them again if they know which coloured shape she has
chosen. They both answer at the same time and say “No” again.
Tabitha asks them a third time if they know which coloured shape she has
chosen and they both answer at the same time and say “Yes”.
0 2
implemented as a static data structure using an array.
Your method should deal appropriately with any issues which could arise.
[5 marks]
Figure 1 shows a logic puzzle.
Turn over ►
IB/G/Jun23/7517/1