Computing 9691 · 11

Programming

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

2012 October-November · Paper 13 · Q6(c)

Constructs · 4 marks · official answer ready

(c) Describe how buffers and interrupts are used to control the transfer of data from the primary memory to a hard disk on a stand-alone computer system. [4] 8

2012 October-November · Paper 13 · Q7(a)

Constructs · 2 marks · official answer ready

(a) Describe what is meant by a sequential file in this case. [2]

2012 October-November · Paper 13 · Q8(a)(ii)

Constructs · 2 marks · official answer ready

(ii) State an output device which would be suitable for use in this application. Justify your choice. Device Justification [2]

2012 October-November · Paper 21 · Q2

Programming basics · 6 marks · official answer ready

2 [2] (d) Each subtask is coded as a program module. Explain how it is possible to use the same variable name for different variables in different modules. [2] (e) When validating…

2012 October-November · Paper 21 · Q2(e)

Programming basics · 4 marks

2 [2] (e) When validating the type of bike (road, hybrid, track) Soni uses INPUT Bike IF (Bike = “road”) (Bike = “hybrid”) (Bike = “track”) THEN OUTPUT Bike “ is valid” ELSE OUTPU…

2012 October-November · Paper 21 · Q2(f)(i)

Programming basics · 2 marks

2 [2] (f) All bikes in stock have a bike ID. Each bike ID is six characters long and has the format For BIKEXX, where X is a digit. Examiner's Use For example, BIKE65 is a valid b…

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

Constructs · 16 marks

8 [10] 5 (ii) Explain why Bike46 is an invalid bike ID. For Examiner's Use State the line number of your code in part (f)(i) which detects that it is invalid. Line Number [2] (b) …

2012 October-November · Paper 21 · Q8(b)(iii)

Programming · 18 marks

(iii) Write down two reserved words from your code in (i). Programming language Words [2] 10

2012 October-November · Paper 21 · Q8(d)(iii)

Structured programming · 39 marks

(iii) State one parameter that would be passed to the procedure AddBikeRecord. [1] 15 16 reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but i…

2012 October-November · Paper 22 · Q8(b)

Constructs · 25 marks

(b) From the flowchart write the module code, using nested WHILE loops. For Ensure that your code demonstrates good programming practice. Examiner's Use Row ← 1 No Row

2012 October-November · Paper 23 · Q8(b)

Constructs · 25 marks

(b) From the flowchart write the module code, using nested REPEAT…UNTIL loops. For Ensure that your code demonstrates good programming practice. Examiner's Use Row ← 1 No Row

2012 October-November · Paper 32 · Q2(a)(i)

Constructs · 1 mark · official answer ready

(i) What denary number is this if it represents a sign and magnitude integer? [1]

2012 October-November · Paper 32 · Q8(a)(iv)

Structured programming · 2 marks · official answer ready

(iv) State the parameter identifiers for the function given above. [2] 15

2012 October-November · Paper 32 · Q9(c)

Constructs · 3 marks · official answer ready

(c) Complete the rule below to determine if two countries are in the same continent. in_same_continent(Country1, Country2) IF [3] reasonable effort has been made by the publisher …

2012 May-June · Paper 11 · Q4

Constructs · 6 marks · official answer ready

4 Describe the following methods of automated data capture. Give an example, in each case, of an application where it would be used. (i) Optical Mark Recognition (OMR) [3] (ii) Op…

2012 May-June · Paper 11 · Q7(b)(ii)

Constructs · 6 marks · official answer ready

(ii) The table shows three fields that are used in the records for data stored about students. Give the data type for each field. Give a reason for your choice in each case. Field…

2012 May-June · Paper 12 · Q4

Constructs · 6 marks · official answer ready

4 Describe the following methods of automated data capture. Give an example, in each case, of an application where it would be used. (i) Optical Mark Recognition (OMR) [3] (ii) Op…

2012 May-June · Paper 12 · Q7(b)(ii)

Constructs · 6 marks · official answer ready

(ii) The table shows three fields that are used in the records for data stored about students. Give the data type for each field. Give a reason for your choice in each case. Field…

2012 May-June · Paper 13 · Q2(a)(ii)

Constructs · 1 mark · official answer ready

(ii) generic applications software [1]

2012 May-June · Paper 13 · Q2(d)

Constructs · 4 marks · official answer ready

(d) The salesmen each have a terminal on the stall in the mall and each terminal is connected to a single computer. The computer runs a multi-user operating system. Describe what …