Programming
468 questions. Open a question to solve it and check the official answer.
Constructs · 8 marks · official answer ready
4 (a) READ NUMBER FOR COUNT = 1 TO NUMBER READ MARK IF MARK < 50 THEN OUTPUT COUNT, “FAIL” ELSE IF MARK > 80 THEN OUTPUT COUNT, “MERIT” ELSE OUTPUT COUNT, “PASS” END IF END IF NEX…
Structured programming · 2 marks · official answer ready
(ii) a parameter that is passed to a procedure. [2]
Structured programming · 4 marks · official answer ready
(b) Explain how a stack is used to handle procedure calling and parameter passing. [4]
Constructs · 5 marks · official answer ready
(a) Describe an algorithm to find the position of a particular student in the array, using a serial search. [5]
Constructs · 5 marks · official answer ready
(b) The warehouse uses stock control software. Explain how this software maintains stock levels in the warehouse. [5]
Constructs · 7 marks · official answer ready
6 A washing machine is computer controlled. The full cycle consists of • Check the door is shut • Heat water with heater (H) to 80 degrees if hot wash has been selected, 40 degree…
Constructs · 4 marks · official answer ready
(b) A second method of checking for errors is to use check sums. Explain how check sums are used to check data for transmission errors. [4] reasonable effort has been made by the …
Constructs · 3 marks · official answer ready
(a) Given that the root node is DAMON, create the binary tree resulting from inserting: CANDU RISH AAMON TENAR GLAN in the given order. [3]
Constructs · 3 marks · official answer ready
(b) Describe an algorithm for using the tree to read the names in alphabetic order. [3]
Programming basics · 3 marks
(a) State the output values of B, C and F for the following input test data 4, 6, 3, 7, 0 [3]
Structured programming · 0 marks · official answer ready
(i) local variable,
Structured programming · 4 marks · official answer ready
(ii) global variable. [4]
Structured programming · 2 marks · official answer ready
(d) Explain the purpose of a loader in the running of the final program. [2]
Constructs · 7 marks · official answer ready
12 A building supply business has been using paper-based administration systems for many years. The decision has been made to computerise all their procedures. Discuss the trainin…
Constructs · 2 marks · official answer ready
(i) Explain what is meant by a sequential file. [2]
Constructs · 2 marks · official answer ready
(ii) State two reasons why a sequential file is a sensible choice of file type in this case. [2]
Programming basics · 2 marks · official answer ready
(c) Give an example of a computer application which would need to be processed in real time. Justify your choice. [2]
Constructs · 2 marks · official answer ready
(i) hard copy form; [2]
Constructs · 2 marks · official answer ready
(ii) electronic form on a disk. [2]
Constructs · 2 marks · official answer ready
(i) the company; [2]
