11.2 Constructs
309 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 1 mark
(b) Name the type of testing that is performed with such debugging tools. .........................................................................................................…
Constructs · 6 marks · official answer ready
(i) Write pseudocode to output the title of the book with the highest rating. For now, assume that only one book in the Book array has the highest rating. ........................…
Constructs · 5 marks
(i) Write program code to convert the flowchart into the function NumeralValue, using a high-level programming language. Programming Language .....................................…
Constructs · 4 marks
(d) The order of letters in Roman numbers is significant. Letters are placed from left to right, in order of value, starting with the largest. However, a sequence of four identica…
Constructs · 2 marks
(i) Dry-run the pseudocode using "IV" as input. RomanNumber ThisLetter ThisNumber i NextLetter NextNumber Denary "IV" 'I' 1 0 [2]
Constructs · 2 marks
(ii) Dry-run the pseudocode using "XY" as input. RomanNumber ThisLetter ThisNumber i NextLetter NextNumber Denary "XY" 'X' 10 0 [2]
Constructs · 3 marks
(iii) Comment on the result of the dry-run in part (e)(ii). .......................................................................................................................…
Constructs · 2 marks
(i) Describe when and how syntax errors are detected. When ........................................................................................................................…
Constructs · 1 mark · official answer ready
(b) Name the type of testing that is performed with such debugging tools. .........................................................................................................…
Constructs · 6 marks · official answer ready
(e) Ravi wants to write a procedure to sort the records in the array Course. The records will be sorted into ascending order of course fee. The array contains records for each cou…
Constructs · 5 marks · official answer ready
(i) Write the program code to implement the function DenaryDigit from its flowchart design. Use a high-level programming language. Programming Language ...........................…
Constructs · 3 marks · official answer ready
(ii) Alia needs to test this function before using it in her program. Complete the table of test data. Type of data Letter Expected result (normal, borderline or invalid) '1' 'X' …
Constructs · 5 marks · official answer ready
(i) Dry-run the procedure call ConvertToDenary("LED")by completing the trace table. CodedNumber Denary i ThisChar ThisNumber OUTPUT "LED" 0 [5]
Constructs · 1 mark · official answer ready
(ii) State one other feature Alia could have used to help the understanding of this code. .........................................................................................…
Constructs · 3 marks · official answer ready
(iv) The parameter of ConvertToDenary might not be a valid coded number. An error message is to be output if the string provided as a parameter is not valid. Describe the changes …
Constructs · 1 mark
(b) Name the type of testing that is performed with such debugging tools. .........................................................................................................…
Constructs · 2 marks · official answer ready
(b) When the network was created, the technicians had to decide on the cabling. Name and describe one type of cable which could have been used. ...................................…
Constructs · 2 marks · official answer ready
(b) When the network was created, the technicians had to decide on the cabling. Name and describe one type of cable which could have been used. ...................................…
Constructs · 4 marks
(i) The model aeroplane needs memory to allow: • the designer to store fixed data such as the factory settings • the operator to use one of the pre-programmed manoeuvres • the ope…
Constructs · 5 marks · official answer ready
4 At a supermarket, automatic stock control is used. The barcode on each item sold is read at a point-of-sale (POS) terminal. The following steps, when put into the correct sequen…
