100% found this document useful (1 vote)
154 views3 pages

Exam Paper

Uploaded by

Philip Mwelwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
154 views3 pages

Exam Paper

Uploaded by

Philip Mwelwa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

INTRODUCTION TO PROGRAMMING

SAMPLE

Practical Examination Paper

Complete ALL tasks.

Produce a Word document following the instructions given in ‘Background


Information’ below.

Use of any PC equipment other than that provided in the examination


room is NOT permitted.

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:

Complete the following computer programming tasks using Visual Basic.

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.

You do not have to provide any general commentary on your work.


You do not have to provide any history of what debugging you may have done.
It is very important that the program code is clear, the outputs are designed to be easy to
understand and your Word document is well presented.

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

Each string is 22 characters in length.


Each string is to be a record in a computer text file.

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

Write and test a program that: 40


Retrieves each record from the text file.
Uses string handling to separate the value of each field in the record.
Displays the value of the separated fields as lists.

QUESTION 3
Clearly there are errors in some of the records.

Write and test a program that:


Retrieves each record from the text file. 40
Uses string handling to separate the value of each field in the record.
Tests the value of each field for validity.
(Assume that each month has a maximum of 31 days)
Displays the values of the separated fields in such a way that the individual characters in
error are indicated.

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.

Submit this Word file for assessment via suitable media.


Total 100 Marks

END OF PAPER

Page 3 of 3
Introduction to Programming SAMPLE Final © NCC Education Ltd 2012

You might also like