Computing 9691 · 11

Programming

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

Reset
2015 October-November · Paper 12 · Q1(a)(i)

Constructs · 6 marks · official answer ready

(i) Name three types of generic software the student could use in the production of her report. Justify your choice of software in each case. Type of software 1 ..................…

2015 October-November · Paper 12 · Q7(b)

Programming basics · 4 marks · official answer ready

(b) Complete the truth table. Input Workspace Output A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4]

2015 October-November · Paper 13 · Q1(a)

Constructs · 4 marks · official answer ready

1 (a) A supermarket uses barcodes on all its products. Name two input devices and two output devices you would expect to see at the supermarket checkout. Give a reason for your ch…

2015 October-November · Paper 13 · Q4(a)

Constructs · 2 marks · official answer ready

(a) Put a tick () next to each sensor which could be used in this monitoring process. Sensor Suitable () motion oxygen acidity (pH) pressure humidity [2]

2015 October-November · Paper 13 · Q4(b)(iii)

Constructs · 4 marks · official answer ready

(iii) Explain how the sensor data could be used to monitor the drinking water pollution levels. Include in your answer, how warnings of unacceptable pollution levels are given. ..…

2015 October-November · Paper 13 · Q6(b)

Programming basics · 4 marks · official answer ready

(b) Complete the truth table for the safety system. Input Working space Output X T P V 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 [4] 10

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

Constructs · 3 marks · official answer ready

7 (a) A train travels along a 300 km track. Its speed is computer-controlled. At each one kilometre interval: • the speed of the train is captured • the speed is checked against a…

2015 October-November · Paper 13 · Q8(c)

Constructs · 2 marks · official answer ready

(c) The chemical processes are computer-controlled. The operators can intervene if necessary. Give two reasons why computer control is safer than manual control. 1 ...............…

2015 October-November · Paper 21 · Q1(e)

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…

2015 October-November · Paper 21 · Q2(a)(i)

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 ...........................…

2015 October-November · Paper 21 · Q2(a)(ii)

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' …

2015 October-November · Paper 21 · Q2(b)(i)

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]

2015 October-November · Paper 21 · Q2(c)(ii)

Constructs · 1 mark · official answer ready

(ii) State one other feature Alia could have used to help the understanding of this code. .........................................................................................…

2015 October-November · Paper 21 · Q2(c)(iv)

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 …

2015 October-November · Paper 21 · Q3(b)

Constructs · 1 mark

(b) Name the type of testing that is performed with such debugging tools. .........................................................................................................…

2015 October-November · Paper 22 · Q1(g)(i)

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. ........................…

2015 October-November · Paper 22 · Q2(a)(i)

Constructs · 5 marks

(i) Write program code to convert the flowchart into the function NumeralValue, using a high-level programming language. Programming Language .....................................…

2015 October-November · Paper 22 · Q2(d)

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…

2015 October-November · Paper 22 · Q2(e)(i)

Constructs · 2 marks

(i) Dry-run the pseudocode using "IV" as input. RomanNumber ThisLetter ThisNumber i NextLetter NextNumber Denary "IV" 'I' 1 0 [2]

2015 October-November · Paper 22 · Q2(e)(ii)

Constructs · 2 marks

(ii) Dry-run the pseudocode using "XY" as input. RomanNumber ThisLetter ThisNumber i NextLetter NextNumber Denary "XY" 'X' 10 0 [2]