Computing 9691 · 11

Programming

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

2016 May-June · Paper 22 · Q1

Constructs · 6 marks · official answer ready

1 A high-level programming language has built-in string handling functions specified as follows: ONECHAR(ThisString : STRING, x : INTEGER) RETURNS STRING returns a string value co…

2016 May-June · Paper 22 · Q3(a)(iii)

Programming · 3 marks · official answer ready

(iii) Initially, all squares are to be white squares. Write program code to initialise Puzzle. Programming language ...............................................................…

2016 May-June · Paper 22 · Q3(b)(iii)

Structured programming · 3 marks · official answer ready

(iii) The procedure CheckForStartOfWord(Puzzle, ThisRow, ThisColumn, Across, Down) has five parameters. Parameters can be passed by reference or by value. For each parameter, tick…

2016 May-June · Paper 22 · Q3(f)

Constructs · 7 marks · official answer ready

(f) One of Zara’s friends suggests that the number of squares for a word should be counted. Zara decides that she needs a function to count the number of squares for a word going …

2016 May-June · Paper 23 · Q1

Programming basics · 8 marks · official answer ready

1 Zara wants to write a temperature conversion program. The program is to output a table to show Fahrenheit temperatures and their Celsius equivalents. She writes the program spec…

2016 May-June · Paper 23 · Q2(a)

Programming basics · 8 marks · official answer ready

(a) Write program code to implement the flowchart opposite as the procedure VendingMachine. Programming Language ..................................................................…

2016 May-June · Paper 23 · Q10(a)(i)

Programming basics · 7 marks

(i) PROCEDURE InputScoresAndCalcAverage(BYREF Average : ........................ ) DECLARE ............................................ , .........................................…

2016 May-June · Paper 23 · Q10(a)(ii)

Constructs · 8 marks

(ii) PROCEDURE UpdatePointsTotals( ......................................................................... ) DECLARE ............................................................…

2016 May-June · Paper 23 · Q10(d)

Constructs · 7 marks

(d) The social club want a facility to search for a competitor to find their current rank. This is done by searching the array CompetitorData for the competitor’s name. Complete t…

2016 May-June · Paper 23 · Q10(e)

Constructs · 5 marks

(e) At the end of the day, the computer is shut down. Alessio wants to save the data from the array CompetitorData to a new sequential file CompetitorFile.DAT Write program code f…

2016 May-June · Paper 31 · Q7(d)(ii)

Constructs · 1 mark

(ii) Suggest where in the given program optimisation may be possible. .............................................................................................................…

2016 May-June · Paper 32 · Q7(d)(ii)

Constructs · 1 mark

(ii) Suggest where in the given program optimisation may be possible. .............................................................................................................…

2016 May-June · Paper 33 · Q5(a)(i)

Programming basics · 2 marks · official answer ready

(i) Complete the identifier table: Variable Data type Description MyList ARRAY[1 : 7] OF INTEGER The given list of numbers SearchItem INTEGER The number input [2]

2016 May-June · Paper 33 · Q6(c)

Constructs · 1 mark · official answer ready

(c) Name one other resource which must be managed by the operating system. ........................................................................................................…

2015 October-November · Paper 11 · 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 11 · 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 11 · 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 11 · 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 11 · 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 11 · 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 ...............…