Computer Science For First Examination In 2021 9618 · 11

11.2 Constructs

140 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2023 May-June · Paper 41 · Q3(d)(ii)

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…

2023 May-June · Paper 42 · Q3(e)(ii)

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 …

2023 May-June · Paper 43 · Q2(b)(ii)

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…

2023 May-June · Paper 43 · Q2(c)

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…

2023 May-June · Paper 43 · Q3(b)(iii)

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 …

2023 May-June · Paper 43 · Q3(c)

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…

2023 May-June · Paper 43 · Q3(d)(ii)

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…

2022 October-November · Paper 13 · Q10(b)(i)

Constructs · 2 marks · official answer ready

(i) Identify one sensor that could be used in a car alarm system. Justify your choice. Sensor .....................................................................................…

2022 October-November · Paper 13 · Q10(b)(ii)

Constructs · 3 marks · official answer ready

(ii) The car alarm is an example of an embedded system. Describe the characteristics of an embedded system. .......................................................................…

2022 October-November · Paper 21 · Q1(c)

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…

2022 October-November · Paper 21 · Q8(b)

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. ...................…

2022 October-November · Paper 21 · Q8(d)

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…

2022 October-November · Paper 22 · Q3(c)

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…

2022 October-November · Paper 22 · Q6(a)

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 …

2022 October-November · Paper 22 · Q7(c)(iii)

Constructs · 1 mark

(iii) Write the declaration for the single array in pseudocode. ...................................................................................................................…

2022 October-November · Paper 43 · Q3(e)(ii)

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 …

2021 October-November · Paper 11 · Q4(c)

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…

2021 October-November · Paper 11 · Q8(c)

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. ........................…

2021 October-November · Paper 13 · Q4(c)

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…

2021 October-November · Paper 13 · Q8(c)

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. ........................…