A printable worksheet of the following questions are provided in PDF
here
An
Electronic Answer Document (EAD) is provided for all questions/tasks.
Save this file to an accessible location before you start.
- State the name of an identifier for:
- A string constant [1]
- A subroutine with two parameters [1]
- A parameter that is passed by reference [1]
- A Boolean variable [1]
- A parameter that is an array [1]
- An integer array [1]
- A library function called from within the GetMenuOption subroutine [1]
- A parameter passed out of the GetNextLetter subroutine [1]
|
- State the purpose of each of the following lines in the GetTransmission subroutine: [4]
|
- Describe the purpose of the While loop within the SendReceiveMessages subroutine. [2]
|
- Describe the nature and purpose of the Dash data structure in SendReceiveMessages. [3]
|
- Look at the subroutine StripLeadingSpaces. Describe the purpose and use of the variable FirstSignal. [2]
|
- Describe each of the following lines of code, taken from the StripTrailingSpaces subroutine: [6]
|
- Describe the function of the following line from the SendMorseCode subroutine: [3]
|
- Describe the purpose of the Catch block in the GetTransmission subroutine.
State one situation in which the code in the Catch block would be executed. [2]
|
- The skeleton program begins with a number of constants.
State two benefits of the program being written in this way. [2]
|
- The StripLeadingSpaces subroutine uses the Substring operation.
Describe the purpose of the Substring operation and explain how it is used in StripLeadingSpaces. [3]
|
- Describe each of the circumstances that would lead to the subroutine ReportError being called. [5]
|
- Describe fully the operation of the Decode subroutine if the value of CodedLetter is as follows: [10]
|