PAPER 2 - 2019 - PROGRAMMING EXAMPLE EXAM QUESTIONS
-------------------------------------------------------------
All variables, arrays, constants and other identifiers should have meaningful names.
State the name of two variables you have used for Task 2.
Give the data type of the variable. State what it is used for.
Variable Name:
Data type:
Use:
Variable Name:
Data type:
Use:
State the name of two variables you have used for Task 3.
Give the data type of the variable. State what it is used for.
Variable Name:
Data type:
Use:
Variable Name:
Data type:
Use:
Name and describe the data structure(s) that you have used to store the punctuality figures for each bus. Explain why you chose your data structure(s).
Name of data structure:
Description:
Reason:
Describe the arrays that you have used to store the data for the bus times in Task 1.
Include the name, data type and its use for each array [6]
a. Using Pseudocode, declare the array used to store the punctuality times for Bus C
b. Explain why an array is an effective data structure for storing the punctuality times.
Explain how you ensured that each punctuality figure entered in Task 1 was valid. [4]
State the validation you set on the punctuality figures in test 1, and show three different sets of test data that you could use.
Set 1:
Reason for choice:
Set 2:
Reason for choice:
Set 3:
Reason for choice:
Identify three different types of test data you used to test the validation checks on the punctuality input in Task 1. For each type, give two examples of appropriate data, and explain why you chose this type.
Type:
Example:
Explanation:
Type:
Example:
Explanation:
Type:
Example:
Explanation:
Explain the validation you set on punctuality figure input, and show how you set this up using Pseudocode. [6]