You are on page 1of 4

Pre-release questions

All variables, constants and other identifiers should be given meaningful names.

1. Name two arrays you have used for Task 1 that have been assigned values and for each of
them clearly state its purpose. [4]

………………………………………………………………………………………………………………

……………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

…………………………………………………………………………………………………………….

2. Write the program code to show that your program able to display available tables include
the passenger’s name, cabin number and any special dietary requirements. You can
assume that Task 1 is complete [4]

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

………………………………………………………………………………………………………………

1 Total 20
3. Describe two validation checks that could be used for Task 1 & 2. For each validation
check give one example [4]

Validation check 1 : …………………………………………………………………………………

Example : ………………………………………………………………………………………

Validation check 2 : …………………………………………………………………………………

Example : ………………………………………………………………………………………

4. Why Cabin number needs to be included in the Task 2? [2]

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

5. Write the program code to show only ONE option can be choose for each booking from
customers. Assume Task 2 has been completed. [4]

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

2 Total 20
…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

……………………………………………………………………………………………………………….

6. When a customer makes a new booking, they are given the opportunity to see the details
before confirming. If they select ‘book’ to confirm what do the program need to do to
ensure the booking is processed correctly. [2]

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

7. Explain how the special dietary requirements used as options rather than descriptions.
Choose one option to show the program code. Any used program must be explained. [2]

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

3 Total 20
…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………

4 Total 20

You might also like