Computing 9691 · 11

Programming

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

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