10.2 Arrays
51 questions in this subtopic. Open a question to solve it and check the official answer.
Arrays · 2 marks
(c) For the game shown above, show the values that are currently stored in the following array elements. State whether the first index number is used for the row or column. Board[…
Arrays · 0 marks
3 A social club organises a competition for ten members. The competition consists of eight games. All ten competitors take part in all games. At the end of each game, each competi…
Arrays · 0 marks · official answer ready
(ii) Complete the diagram below showing the contents of the arrays and the root pointer variable. RootPtr LeftPtr City RightPtr 1 LIMA 2 3 4 5
Arrays · 0 marks · official answer ready
(b) The binary tree is implemented in a high-level language using a number of data structures and one variable: Variable Data type Description RootPtr INTEGER The array subscript …
Arrays · 1 mark · official answer ready
6 (a) A user-defined function CountBig is defined, using pseudocode, as follows: CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The functio…
Arrays · 1 mark · official answer ready
6 (a) A user-defined function CountBig is defined, using pseudocode, as follows: CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The functio…
Arrays · 1 mark · official answer ready
6 (a) A user-defined function CountBig is defined, using pseudocode, as follows: CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The functio…
Arrays · 2 marks · official answer ready
6 (a) A user-defined function CountBig is defined, using pseudocode, as follows: CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The functio…
Arrays · 2 marks · official answer ready
6 (a) A user-defined function CountBig is defined, using pseudocode, as follows: CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The functio…
Arrays · 16 marks
(ii) State an output variable which will provide data for the planning process for the traffic control system. ....................................................................…
Arrays · 0 marks · official answer ready
(ii) Complete the diagram below showing the contents of the arrays and the root pointer variable. RootPtr LeftPtr City RightPtr 1 LIMA 2 3 4 5
Arrays · 100 marks · official answer ready
(ii) In a high-level programming language, write statements to declare the array Board. Programming language ......................................................................…
Arrays · 4 marks · official answer ready
(ii) The pseudocode below stores values in the data structure as follows: • it initialises the place values in the locations represented by the first row • it stores input data in…
Arrays · 4 marks · official answer ready
(ii) The pseudocode below stores values in the data structure as follows: • it initialises the place values in the locations represented by the first row • it stores input data in…
Arrays · 2 marks
(i) Two one-dimensional arrays, Name and BestScore, are to store the name and score for each child in the class. Use a high-level programming language to declare these two arrays.…
Arrays · 2 marks
(i) Two one-dimensional arrays, Name and BestScore, are to store the name and score for each child in the class. Use a high-level programming language to declare these two arrays.…
Arrays · 0 marks · official answer ready
(c) The first seven sports joined the tree in the order: JUDO, SOCCER, SAILING, SWIMMING, ATHLETICS, WRESTLING, HOCKEY. Complete the diagram below showing the contents of the arra…
Arrays · 0 marks
(e) Juan will need the program to hold large amounts of data. His design will include For reading the data from the sequentially-organised resource file into several arrays. Exami…
Arrays · 2 marks
2 [2] (e) Juan will need the program to hold large amounts of data. His design will include For reading the data from the sequentially-organised resource file into several arrays.…
Arrays · 2 marks · official answer ready
(i) Describe how the Xs and Os would be stored in a two-dimensional array called Grid. [2]
