Computing 9691 · 11

Programming

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

Reset
2014 October-November · Paper 21 · Q1(b)(ii)

Constructs · 3 marks · official answer ready

(ii) State the variable that the array element Tally[2] has replaced. .............................................................................................................…

2014 October-November · Paper 21 · Q1(c)

Constructs · 6 marks · official answer ready

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…

2014 October-November · Paper 21 · Q1(d)

Constructs · 9 marks

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…

2014 October-November · Paper 21 · Q1(e)(i)

Constructs · 3 marks · official answer ready

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…

2014 October-November · Paper 21 · Q1(e)(ii)

Constructs · 1 mark · official answer ready

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…

2014 October-November · Paper 21 · Q2

Constructs · 0 marks · official answer ready

2 Football \\

2014 October-November · Paper 21 · Q3

Programming basics · 0 marks

3 Tennis \\\

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

Programming basics · 3 marks

3 Ahmed runs his own business. He lays floor tiles in rooms for customers. Ahmed wants a program that calculates how many tiles he needs when he inputs the measurements of the len…

2014 October-November · Paper 21 · Q3(c)(iii)

Constructs · 5 marks

3 Ahmed runs his own business. He lays floor tiles in rooms for customers. Ahmed wants a program that calculates how many tiles he needs when he inputs the measurements of the len…

2014 October-November · Paper 21 · Q4(a)

Structured programming · 28 marks

(a) The program calls the function PasswordCheck with the stored password as parameter. If the user enters the correct password the function returns the value TRUE. Each time the …

2014 October-November · Paper 21 · Q4(c)(i)

Constructs · 20 marks

(i) If the room width measures 100 cm, give the value stored in TilesForWidth. ....................................................................................................…

2014 October-November · Paper 22 · Q1(b)(ii)

Constructs · 3 marks · official answer ready

(ii) Calculate the size of the file if 100 event entries are stored. File size in bytes ...........................................................................................…

2014 October-November · Paper 22 · Q2(a)

Constructs · 8 marks · official answer ready

(a) Dry-run the pseudocode with s = 64, x = 1 and y = 15. Complete the trace table. Start a new row in the trace table every time round the loop. List z ← FALSE 1 27 REPEAT 2 28 m…

2014 October-November · Paper 22 · Q3(c)(ii)

Structured programming · 9 marks

(ii) Nathan wants to test the validation of the parameter, x, by this function. Give three different types of test data with an example of each. Justify your choices. Type of test…

2014 October-November · Paper 22 · Q3(d)

Constructs · 5 marks

(d) The program stores in the variable NextPlayer the character 'A' or 'B' to show whose turn it is next. The chosen column number is validated using the function from part (c)(i)…

2014 October-November · Paper 23 · Q1(a)

Constructs · 2 marks · official answer ready

(a) Write a pseudocode statement to declare the array Tally. ......................................................................................................................…

2014 October-November · Paper 23 · Q1(b)(i)

Programming basics · 4 marks · official answer ready

(i) Write the pseudocode for the procedures InitialiseArrayCounts and InputStudentChoices: PROCEDURE InitialiseArrayCounts ........................................................…

2014 October-November · Paper 23 · Q1(b)(ii)

Constructs · 3 marks · official answer ready

(ii) State the variable that the array element Tally[2] has replaced. .............................................................................................................…

2014 October-November · Paper 23 · Q1(c)

Constructs · 6 marks · official answer ready

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…

2014 October-November · Paper 23 · Q1(d)

Constructs · 9 marks

1 Rema surveys the students in her class to find out which is the most popular sport. She draws a tally chart: 1 Cricket \\\\\\\\ 2 Football \\ 3 Tennis \\\ 4 Swimming \\\\\\ Rema…