Past-paper question · 2015 May-June · Paper 22 · Q9(c)

Question 9(c) 2015 · May-June · Paper 22 · 22 marks

Original past-paper question for 9(C)
Original past-paper question for 9(C)
Original past-paper question for 9(C)
Original past-paper question for 9(C)
Original past-paper question for 9(C)
Reveal official mark-scheme answer

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

Mark scheme 2210_s15_ms_22.pdf →

Show text version of question

Question 9

Part (c)

Question 9

PRINT Large

There are four errors in this code.

Locate these errors and suggest a corrected piece of code for each error.

1 .......................................................................................................................................................

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

2 .......................................................................................................................................................

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

3 .......................................................................................................................................................

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

4 .......................................................................................................................................................

......................................................................................................................................................[4]

Question 6

Part (c)

Identify a problem with this flowchart and explain how to correct it.

Problem ....................................................................................................................................

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

Solution .....................................................................................................................................

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

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

...............................................................................................................................................[3]

Question 8

4 Four programming concepts and four examples of programming code are shown below.

Draw a line to link each programming concept to the correct example of programming code.

Programming Example of programming code concept

Counting Sum = Sum + Value[n]

Repetition IF Value = 10 THEN PRINT 'X'

Selection FOR Counter = 1 TO 10

Totalling Amount = Amount + 1

Sum = Num1 + Num2

[4]

Question 5

Part (a)

Write an algorithm, using pseudocode and a FOR … TO … NEXT loop structure, to input

1000 numbers into an array.

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

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

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

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

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

...............................................................................................................................................[2]

Part (b)

Rewrite your algorithm using another loop structure.

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

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

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

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

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

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

...............................................................................................................................................[4]

Question 9

Question 6 begins on page 10.

Question 10

6 A database, MARKS, was set up to record the test results for a class of students. Part of the database is shown below.

Student Name Class ID Maths English Science History Geography Paul Smith 0017 70 55 65 62 59 Ravi Gupta 0009 29 34 38 41 44 Chin Hwee 0010 43 47 50 45 52 John Jones 0013 37 67 21 28 35 Diana Abur 0001 92 88 95 89 78 Rosanna King 0016 21 13 11 27 15

Part (a)

Give the number of fields that are in each record.

...............................................................................................................................................[1]

Part (b)

State which field you would choose for the primary key.

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

Give a reason for choosing this field.

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

...............................................................................................................................................[2]

Part (c)

The query-by-example grid below selects all students with more than 60 marks in History or

more than 60 marks in Geography.

Field: Student Name History Geography

Table: MARKS MARKS MARKS

Sort: Ascending

Show: ✓ Criteria: >60

or: >60

Show what would be output.

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

...............................................................................................................................................[2]

Question 11

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

Keep practising this topic