Computing 9691 · 11

Programming

468 questions. Open a question to solve it and check the official answer.

2008 October-November · Paper 1 · Q4(a)

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…

2008 October-November · Paper 3 · Q7(a)(ii)

Structured programming · 2 marks · official answer ready

(ii) a parameter that is passed to a procedure. [2]

2008 October-November · Paper 3 · Q7(b)

Structured programming · 4 marks · official answer ready

(b) Explain how a stack is used to handle procedure calling and parameter passing. [4]

2008 October-November · Paper 3 · Q9(a)

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]

2007 October-November · Paper 1 · Q2(b)

Constructs · 5 marks · official answer ready

(b) The warehouse uses stock control software. Explain how this software maintains stock levels in the warehouse. [5]

2007 October-November · Paper 1 · Q6

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…

2007 October-November · Paper 1 · Q11(b)

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 …

2007 October-November · Paper 3 · Q6(a)

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]

2007 October-November · Paper 3 · Q6(b)

Constructs · 3 marks · official answer ready

(b) Describe an algorithm for using the tree to read the names in alphabetic order. [3]

2007 May-June · Paper 1 · Q6(a)

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]

2007 May-June · Paper 3 · Q6(b)(i)

Structured programming · 0 marks · official answer ready

(i) local variable,

2007 May-June · Paper 3 · Q6(b)(ii)

Structured programming · 4 marks · official answer ready

(ii) global variable. [4]

2007 May-June · Paper 3 · Q6(d)

Structured programming · 2 marks · official answer ready

(d) Explain the purpose of a loader in the running of the final program. [2]

2007 May-June · Paper 3 · Q12

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…

2006 October-November · Paper 1 · Q2(b)(i)

Constructs · 2 marks · official answer ready

(i) Explain what is meant by a sequential file. [2]

2006 October-November · Paper 1 · Q2(b)(ii)

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]

2006 October-November · Paper 1 · Q2(c)

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]

2006 October-November · Paper 1 · Q6(a)(i)

Constructs · 2 marks · official answer ready

(i) hard copy form; [2]

2006 October-November · Paper 1 · Q6(a)(ii)

Constructs · 2 marks · official answer ready

(ii) electronic form on a disk. [2]

2006 October-November · Paper 1 · Q6(b)(i)

Constructs · 2 marks · official answer ready

(i) the company; [2]