Past-paper question · 2016 October-November · Paper 22 · Q11(b)

Question 11(b) 2016 · October-November · Paper 22 · 21 marks

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

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 2210_w16_ms_22.pdf →

Show text version of question

Question 11

Part (b)

Question 11

Print Average

There are four errors in this code.

Locate these errors and suggest a correction to remove each error.

Error 1 ..............................................................................................................................................

Correction .........................................................................................................................................

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

Error 2 ..............................................................................................................................................

Correction .........................................................................................................................................

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

Error 3 ..............................................................................................................................................

Correction .........................................................................................................................................

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

Error 4 ..............................................................................................................................................

Correction .........................................................................................................................................

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

[8]

Question 7

3 The flowchart below inputs an integer. The predefined function DIV gives the value of the division, for example Z ← 11 DIV 3 gives the value Z = 3. The predefined function MOD gives the value of the remainder, for example Z ← 11 MOD 3 gives the value Z = 2.

67$57

,1387;

1R ,V;! " <HV

$ ;',9 % ;02' 287387;

287387% (1'

; $

Complete a trace table for each of the two input values 33 and 75.

Trace table for input value 33

X A B OUTPUT

Trace table for input value 75

X A B OUTPUT

[4]

Question 8

4 IF ... THEN ... ELSE ... ENDIF and CASE ... OF ... OTHERWISE ... ENDCASE are two different conditional statements that you can use when writing pseudocode.

Explain, using examples, why you would choose to use each conditional statement.

Example 1 ........................................................................................................................................

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

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

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

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

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

Reason for choice ............................................................................................................................

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

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

Example 2 ........................................................................................................................................

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

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

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

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

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

Reason for choice ............................................................................................................................

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

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

[6]

Question 9

Question 5 begins on page 10.

Question 10

5 A database, PLAYPRODUCTION, was set up to show the performance dates, prices and number of seats available at a theatre specialising in Shakespeare productions.

Number Number Performance Price Stalls Price Circle Play Seats Seats Date Seats $ Seats $ Stalls Circle As You Like It 01/07/2016 120 90 20.00 30.00 As You Like It 02/07/2016 85 45 30.00 40.00 As You Like It 09/07/2016 31 4 30.00 40.00 Macbeth 14/07/2016 101 56 25.00 35.00 Macbeth 15/07/2016 50 34 25.00 35.00 Macbeth 16/07/2016 12 5 35.00 50.00 Julius Caesar 22/07/2016 67 111 20.00 20.00 Julius Caesar 23/07/2016 21 24 15.00 15.00

A
Comedy of Errors 30/07/2016 45 36 35.00 45.00

Part (b)

State the data type you would choose for each of the following fields.

Play ..........................................................................................................................................

Number Seats Stalls ...............................................................................................................

Price Stalls Seats $ ............................................................................................................

[3]
Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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 2210_w16_qp_22.pdf

Keep practising this topic