Past-paper question · 2018 October-November · Paper 23 · Q3(b)

Question 3(b) 2018 · October-November · Paper 23 · 3 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

✓
Steps:

Question 3

✓
•
✓
Declare (and initialise values to first array element) for min and max as
✓
integers
✓
•
✓
A loop / iteration / repetition to check every element
✓
•
✓
Compare each array element with max variable and min variable
✓
•
✓
Update max variable if bigger and min variable if smaller
✓
1 mark per bullet point
✓
Alternative steps:
✓
•
✓
Apply a sort routine to the values in the array
✓
•
✓
Swapping consecutive elements (as necessary) // until no more swaps
✓
•
✓
Min will be the first / last element and max will be the last / first element
✓
1 mark per bullet point
✓
9608/23
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2018
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w18_ms_23.pdf →

Show text version of question

Question 3

Part (b)

Question 3

An array contains 100 integer values. An algorithm will find the maximum and minimum values

stored in the array.

Part (b)

Outline the steps the program will need to follow to implement the algorithm.

Do not write pseudocode or program code.

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

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

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

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

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

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

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

...............................................................................................................................................[3]

Question 9

Question 4 begins on the next page.

Question 10

Topic relevance

Why this question appears here

72% assigned-topic match · Hardware › Logic gates and logic circuits

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w18_qp_23.pdf

Keep practising this topic