Exam Paper
Exam Paper
SAMPLE
Time: 3 hours
Any reference material brought into the examination room must be handed
to the invigilator before the start of the examination.
PLEASE DO NOT WRITE ON THIS EXAM PAPER. ALL ANSWERS AND WORKINGS
SHOULD BE WRITTEN IN THE ANSWER BOOKLET PROVIDED.
COMPLETE ALL TASKS
Marks
Guidance notes for producing your examination documentation:
For each task you must test the programming code you create.
The evidence you must produce is a Word document containing for each task:
Required Outcomes.
Simple Test Criteria.
Completed Object Definition Sheets.
The Visual Basic Program Code, with relevant comments (i.e. annotated)
Screen shot or screen shots of the user interface.
(In some cases it may be necessary to show the user interface as the program is executing).
Screen shot or screen shots of the output generated when the program code is run.
It would be a good idea to use the Windows Snipping Tool to assemble this Word Document.
A copy of the Student Support material for this programming module will be available via
your work station.
Page 2 of 3
Introduction to Programming SAMPLE Final © NCC Education Ltd 2012
QUESTION 1 Marks
Below there are four strings:
10023JONES F15051935
10036WRIGhT F21121967
10050REVUELTAM30071945
10068MANSON f38022004
Write and test a program that enables the user to enter these strings as records into a text file. 10
Show evidence that the file has been created.
QUESTION 2
The structure of each record is:
Characters 1 – 5 ID 5 Digits
Characters 6 – 13 Family Name 8 Upper Case Letters
Character 14 Gender 1 Upper Case Letter
Characters 15 – 22 Date of Birth 8 Digits
QUESTION 3
Clearly there are errors in some of the records.
QUESTION 4
Carefully check the contents of the Word file so that it is a complete record of your work, and 10
presented according to the guidance notes above.
END OF PAPER
Page 3 of 3
Introduction to Programming SAMPLE Final © NCC Education Ltd 2012