Programming
468 questions. Open a question to solve it and check the official answer.
Constructs · 3 marks · official answer ready
(ii) State the variable that the array element Tally[2] has replaced. .............................................................................................................…
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…
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…
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…
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…
Constructs · 0 marks · official answer ready
2 Football \\
Programming basics · 0 marks
3 Tennis \\\
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…
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…
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 …
Constructs · 20 marks
(i) If the room width measures 100 cm, give the value stored in TilesForWidth. ....................................................................................................…
Constructs · 3 marks · official answer ready
(ii) Calculate the size of the file if 100 event entries are stored. File size in bytes ...........................................................................................…
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…
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…
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)…
Constructs · 2 marks · official answer ready
(a) Write a pseudocode statement to declare the array Tally. ......................................................................................................................…
Programming basics · 4 marks · official answer ready
(i) Write the pseudocode for the procedures InitialiseArrayCounts and InputStudentChoices: PROCEDURE InitialiseArrayCounts ........................................................…
Constructs · 3 marks · official answer ready
(ii) State the variable that the array element Tally[2] has replaced. .............................................................................................................…
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…
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…
