Question 11(c) 2016 · October-November · Paper 22 · 21 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 11
Part (c)
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 .........................................................................................................................................
.....................................................................................................................................................
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
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 ............................................................................................................................
..........................................................................................................................................................
.....................................................................................................................................................
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
Part (c)
The query-by-example grid below selects all the productions with more than 100 seats left in
either the stalls or the circle.
Field: Play Performance Date Number Seats Stalls Number Seats Circle
Table: PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION PLAYPRODUCTION
Sort: Ascending
Show: Criteria: > 100
or: > 100
Show what would be output from the query-by-example.
...................................................................................................................................................
...................................................................................................................................................
..............................................................................................................................................
Question 11
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
