Past-paper question · 2015 May-June · Paper 23 · Q3(a)(i)

Question 3(a)(i) 2015 · May-June · Paper 23 · 4 marks

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

Official answer for Question 3

Part (a)

(i)

Part (a)

(i)

✓
Numbers
✓
i
✓
j
✓
Numbers[j] >
✓
w
[1]
[2]
[3]
[4]
[5]
✓
Numbers[j + 1]

Question 49

Question 98

Question 36

Question 70

Question 51

✓
Marks:

Question 1

Question 1

✓
FALSE

Question 2

✓
TRUE

Question 98

Question 36

Question 98

Question 1

Question 3

✓
TRUE

Question 98

Question 70

Question 98

Question 4

✓
TRUE

Question 98

Question 51

Question 98

Question 1

Question 2

Question 1

✓
TRUE

Question 49

Question 36

Question 49

Question 2

✓
FALSE

Question 1

Question 3

✓
TRUE

Question 70

Question 51

Question 70

Question 4

✓
FALSE

Question 1

Question 3

Question 1

✓
FALSE

Question 2

✓
FALSE

Question 3

✓
FALSE

Question 4

✓
FALSE

Question 1

Question 4

Question 1

✓
FALSE

Question 2

✓
FALSE

Question 3

✓
FALSE

Question 4

✓
FALSE

Question 1

Question 1

Question 1

Question 1

Question 1

Question 1

Question 1

✓
Marks
✓
Mark by row as shown. If no marks, mark by column.
[6]

Mark scheme 9691_s15_ms_23.pdf →

Show text version of question

Question 3

Part (a)

(i)

Question 3

07

Question 19

climb to top of ladder The top of a slide, so

Question 6

Question 10

03 move down the slide Ali plans to write a program to test different board designs. Each board design will have different numbers, positions and lengths for the slides and ladders. The program is to test each board design to check that it is possible to complete the game in a reasonable number of moves. For each board design, the program will simulate playing the game 1000 times and report the average number of moves.

Question 5

Part (a)

Ali starts the high level design of his program using pseudocode.

01 CALL InitialiseArray() // blank board 02 CALL InputBoardDesign() // add slides and ladders data 03 TotalMoves ← ............................................................................................................... 04 FOR Game ← ................................................................................................................... 05 // play next game and update TotalMoves 06 TotalMoves ← TotalMoves + NumberOfMovesInThisGame() 07 ............................................................................................................................................ 08 AverageMovesPerGame ← ........................................................................................... 09 OUTPUT AverageMovesPerGame

(i)

Complete the pseudocode above.

[4]
Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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 9691_s15_qp_23.pdf

Keep practising this topic