Past-paper question · 2019 May-June · Paper 21 · Q7(d)

Question 7(d) 2019 · May-June · Paper 21 · 14 marks

Original past-paper question for 7(D)
Original past-paper question for 7(D)
Reveal official mark-scheme answer

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

Mark scheme 2210_s19_ms_21.pdf →

Show text version of question

Question 7

Part (d)

Question 7

PRINT "Accepted: ", Value

Part (d)

Draw a flowchart to represent this section of program code.

[5]

Question 12

5 The table, BEVERAGES, shows the number of calories in 100 ml of a range of popular beverages. It also shows the availability of these drinks in a can, a small bottle and a large bottle.

BevNo BevName Calories Can Small Bottle Large Bottle Bev01 Cola 40 Yes Yes Yes Bev02 Lime 45 Yes No Yes Bev03 Energy Drink 1 52 Yes Yes No Bev04 Energy Drink 2 43 Yes No No Bev05 Mango 47 Yes No Yes Bev06 Lemon Iced Tea 38 Yes No Yes Bev07 Lemonade 58 Yes Yes Yes Bev08 Orange Juice 46 Yes Yes No Bev12 Apple Juice 50 Yes Yes No Bev15 Chocolate Milk 83 Yes Yes No

Part (a)

Give a reason for choosing BevNo as the primary key for this table.

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

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

[1]

Part (b)

State the number of records shown in the table BEVERAGES.

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

[1]

Question 13

Part (c)

List the output that would be given by this query-by-example.

Field: BevNo BevName Can Small Bottle Large Bottle

Table: BEVERAGES BEVERAGES BEVERAGES BEVERAGES BEVERAGES

Sort: Descending

Show: ü ü Criteria: = "Yes" = "Yes" = "Yes"

or:

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

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

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

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

[3]

Part (d)

Complete the query-by-example grid to output a list showing just the names and primary keys

of all the beverages with a calorie count greater than 45. The list should be in alphabetical order of names.

Field:

Table:

Sort:

Show: Criteria:

or:

[4]

Question 14

Question 15

Question 16

reasonable 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 Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.

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

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_s19_qp_21.pdf

Keep practising this topic