Past-paper question · 2013 May-June · Paper 22 · Q2(e)

Question 2(e) 2013 · May-June · Paper 22 · 19 marks

Original past-paper question for 2(E)
Original past-paper question for 2(E)
Original past-paper question for 2(E)
Original past-paper question for 2(E)
Reveal official mark-scheme answer Official mark-scheme answer for 2(E)Official mark-scheme answer for 2(E)

Official answer for Question 2

Part (e)

Part (e)

✓
Valid FALSE
✓
IF DateReturned >HandInDate
✓
THEN
✓
IF DateReturned <= CurrentDate
✓
THEN
✓
IF (Mark >= 0) AND (Mark <= 100)
✓
THEN Valid TRUE
✓
ENDIF
✓
ENDIF
✓
ENDIF
✓
Marking guidelines:
✓
1 mark for nested IFs or ELSEIFs
✓
1 mark for correct number of ENDIF(s)
✓
1 mark for DateReturned>HandInDate
✓
and DateReturned<=CurrentDate
✓
1 mark for process mark checked
✓
1 mark for “valid” and “invalid” correctly reported or assigned
✓
[Max 4]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
GCE AS/A LEVEL – May/June 2013
✓
9691

Question 22

Mark scheme 9691_s13_ms_22.pdf →

Show text version of question

Question 2

Part (e)

Question 2

[2]

One way of storing her data will be to use a file of records.

Each record will contain at least the following data:

Data Identifier Description of input data

subject Subject Name of the subject, for example Physics

title Title Title of assignment

date set DateSet Format DDMMYYYY

hand-in date HandInDate Format DDMMYYYY

marked? IsMarked Y or N

date returned DateReturned Format DDMMYYYY

mark Mark Range 0 to 100

Part (b)

(i)

Each record needs another field to uniquely identify that record.

State an appropriate identifier for this field and state a suitable data type for it.

[2]

Question 3

(ii)

In a programming language write the declaration for the record structure, giving it For

the identifier Assignment. Examiner's Use

Programming language

Declaration

[4]

(iii)

State the number of bytes needed to store a value in the field IsMarked.

[1]

Part (c)

Describe what the function EOF() does when used in a program.

[2]

Question 4

Part (d)

Meena creates a sequential file, MyAssignments, of Assignment records. For

Examiner's Use Using pseudocode write the algorithm to search this file for the first Physics assignment.

OPENFILE MyAssignments FOR OUTPUT

CLOSEFILE MyAssignments

[4]

Question 5

2 The data for each record is validated as it is entered. For Examiner's Use

Part (e)

DateReturned will have to be later than HandInDate, the same or earlier than the For

current date, and a mark has been entered. Examiner's Use

Write pseudocode that will test whether DateReturned is valid or invalid using nested IF statements.

[4]

Question 8

Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Programming basics

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 9691_s13_qp_22.pdf

Keep practising this topic