11.2 Constructs
140 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 1 mark · official answer ready
(ii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(d)(ii) in the evidence document. [1] 11 12 Permission to repr…
Constructs · 1 mark · official answer ready
(ii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(e)(ii) in the evidence document. [1] Permission to reproduce …
Constructs · 4 marks · official answer ready
(ii) The Helicopter method IncreaseSpeed() overrides the method from the parent class and: • adds the amount of vertical change to the vertical position • adds IncreaseAmount to t…
Constructs · 3 marks · official answer ready
(c) A procedure needs to output the horizontal position and speed of a vehicle. If the vehicle is a helicopter, it also outputs the vertical position. All outputs must include app…
Constructs · 5 marks · official answer ready
(iii) The procedure ReadData(): • reads the animal names from the file AnimalData.txt • uses PushAnimal() to insert each name onto the stack • uses appropriate exception handling …
Constructs · 5 marks · official answer ready
(c) The procedure OutputItem(): • pops the next item from both Animal and Colour • outputs the colour and animal on one line, for example "black horse" If there is no data in Colo…
Constructs · 1 mark · official answer ready
(ii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(d)(ii) in the evidence document. [1] 11 12 Permission to repr…
Constructs · 2 marks · official answer ready
(i) Identify one sensor that could be used in a car alarm system. Justify your choice. Sensor .....................................................................................…
Constructs · 3 marks · official answer ready
(ii) The car alarm is an example of an embedded system. Describe the characteristics of an embedded system. .......................................................................…
Constructs · 4 marks · official answer ready
(c) The pseudocode statements in the following table may contain errors. State the error in each case or write ‘NO ERROR’ if the statement contains no error. Assume that any varia…
Constructs · 2 marks · official answer ready
(b) CountErrors() is called to check the project file Jim01Prog.txt and to stop if more than 20 errors are found. Write the pseudocode statement for this call. ...................…
Constructs · 2 marks · official answer ready
(d) Module CheckLine() includes a check for syntax errors. Two examples of syntax error that cannot be detected from examining a single line are those involving selection and iter…
Constructs · 5 marks · official answer ready
(c) A second stack is used in the program. The diagram below shows the initial state of this stack. Value X is at the top of the stack and was the last item added. Upper-case lett…
Constructs · 7 marks · official answer ready
6 (a) The factorial of an integer number is the product of all the integers from that number down to 1. In general, the factorial of n is n × (n−1) × ... × 2 × 1 For example, the …
Constructs · 1 mark
(iii) Write the declaration for the single array in pseudocode. ...................................................................................................................…
Constructs · 1 mark · official answer ready
(ii) Test your program. Take a screenshot to show the output. Copy and paste the screenshot into part 3(e)(ii) in the evidence document. [1] 12 reasonable effort has been made by …
Constructs · 2 marks · official answer ready
(c) Francis is part of a team writing a program. He finds an error in part of the program that has already been tested. He decides not to tell anyone because he is worried about t…
Constructs · 4 marks · official answer ready
(c) The school has several laptops. Each laptop has a Wireless Network Interface Card (WNIC). Describe the functions of a Wireless Network Interface Card. ........................…
Constructs · 2 marks · official answer ready
(c) Francis is part of a team writing a program. He finds an error in part of the program that has already been tested. He decides not to tell anyone because he is worried about t…
Constructs · 4 marks · official answer ready
(c) The school has several laptops. Each laptop has a Wireless Network Interface Card (WNIC). Describe the functions of a Wireless Network Interface Card. ........................…
