11.2 Constructs
23 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 4 marks · official answer ready
(b) The factory stores cars in a 30-level warehouse that has separate storage areas, known as pods. A computer-controlled forklift system removes a car from its pod. Each pod has …
Constructs · 4 marks · official answer ready
2 (a) A processor controls a heating system. To do this, it uses: • a temperature sensor • a device in which a small electrical input current switches a much larger current for th…
Constructs · 2 marks · official answer ready
(i) Intruder detection system Sensor ............................................................................................................................... Reason for cho…
Constructs · 2 marks · official answer ready
(ii) Switching on a street lamp when it gets dark. Sensor .........................................................................................................................…
Constructs · 2 marks · official answer ready
(iii) Counting people entering a building. Sensor ............................................................................................................................... R…
Constructs · 3 marks · official answer ready
(iii) When the driver parked the car, the computer system stored the registration plate data in the appropriate element of the ParkingArea array. When paying the parking fee, the …
Constructs · 8 marks
8 ........................................................................................................................................... [4] (d) The car park has ten levels. …
Constructs · 1 mark
(e) “A command line interface (CLI) uses icons to represent applications that are launched by a click of the mouse button.” .......................................................…
Constructs · 7 marks · official answer ready
(i) Rewrite the procedure PrintNameLine. Your solution should allow for the case when the name has an odd number of characters. Programming language ..............................…
Constructs · 2 marks · official answer ready
(ii) Describe what happens when a name consists of 18 or more characters. .........................................................................................................…
Constructs · 0 marks
3 City Centre
Constructs · 10 marks
(c) Use the flowchart opposite to write program code for the procedure TicketCalculator. Programming language .....................................................................…
Constructs · 10 marks
5 [4] 8 (e) At the end of the day, the computer is shut down. Before the program stops, the array data from TableBookings must be saved to a new sequential file TableBookings.DAT …
Constructs · 11 marks
(a) When a booking enquiry is made, the number of customers is given. Complete the pseudocode for the procedure TakeBooking: PROCEDURE TakeBooking DECLARE ……………………………………………………, ………
Constructs · 6 marks
(e) At the end of the day, the computer is shut down. Before the program stops, the array data from TableBookings must be saved to a new sequential file TableBookings.DAT Write pr…
Constructs · 6 marks · official answer ready
1 A high-level programming language has built-in string handling functions specified as follows: ONECHAR(ThisString : STRING, x : INTEGER) RETURNS STRING returns a string value co…
Constructs · 7 marks · official answer ready
(f) One of Zara’s friends suggests that the number of squares for a word should be counted. Zara decides that she needs a function to count the number of squares for a word going …
Constructs · 8 marks
(ii) PROCEDURE UpdatePointsTotals( ......................................................................... ) DECLARE ............................................................…
Constructs · 7 marks
(d) The social club want a facility to search for a competitor to find their current rank. This is done by searching the array CompetitorData for the competitor’s name. Complete t…
Constructs · 5 marks
(e) At the end of the day, the computer is shut down. Alessio wants to save the data from the array CompetitorData to a new sequential file CompetitorFile.DAT Write program code f…
