Past-paper question · 2019 May-June · Paper 33 · Q2(b)

Question 2(b) 2019 · May-June · Paper 33 · 2 marks

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

Official answer for Question 2

Part (b)

✓
A suitable line with the function is: insects.reverse();

Question 2

✓
The variable name can be anything suitable, reverse() is the function.
✓
Mark allocation:
✓
Use of suitable variable name e.g.
✓
insects
✓
1 mark
✓
All correct function and syntax
✓
.reverse();
✓
1 mark
✓
9626/33
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9626_s19_ms_33.pdf →

Show text version of question

Question 2

Part (b)

Question 2

In JavaScript code, the sort() function is used to sort lists into ascending order.

Part (b)

Write a line of JavaScript code that could be used to sort the list of insects in Fig. 2.1 into

descending order.

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

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

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

[2]

Question 4

Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

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 9626_s19_qp_33.pdf

Keep practising this topic