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

Question 11(d) 2016 · October-November · Paper 22 · 23 marks

Original past-paper question for 11(D)
Original past-paper question for 11(D)
Original past-paper question for 11(D)
Original past-paper question for 11(D)
Original past-paper question for 11(D)
Original past-paper question for 11(D)
Original past-paper question for 11(D)
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 (d)

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 (d)

Complete the query-by-example grid below to select all the productions with at least six seats

left in the circle and show the Play, Performance Date and Price Circle Seats $ in Performance Date order.

Field:

Table:

Sort:

Show: Criteria:

or:

[5]

Question 12

effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.

Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

Topic relevance

Why this question appears here

98% assigned-topic match · Databases

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