Computing 9691 · 10

Data types and structures

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

2015 October-November · Paper 21 · Q2(b)(ii)

Data types and records · 2 marks · official answer ready

(ii) The denary value of the coded number LED is 281. There is an error in the pseudocode above. Give the line number of the statement that needs correcting. .....................…

2015 October-November · Paper 21 · Q2(c)(iii)

Data types and records · 10 marks · official answer ready

(iii) Write program code to implement the pseudocode given in part (b). Remember to declare variables before you use them. The code is repeated here so that you do not need to tur…

2015 October-November · Paper 22 · Q1(a)

Data types and records · 5 marks · official answer ready

1 (a) Sheena wants to develop a program to keep details of the books she has read. One way of storing this data will be to use records. Each record will contain the fields shown i…

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

Data types and records · 5 marks · official answer ready

1 (a) A college provides courses for the local community. The Computing teacher, Ravi, wants to develop a program to keep details of the courses. One way of storing this data will…

2015 October-November · Paper 23 · Q1(d)(ii)

Files · 6 marks · official answer ready

(ii) Write pseudocode to read the data from the file CourseData.DAT into the array Course. ........................................................................................…

2015 October-November · Paper 23 · Q2(b)(ii)

Data types and records · 2 marks · official answer ready

(ii) The denary value of the coded number LED is 281. There is an error in the pseudocode above. Give the line number of the statement that needs correcting. .....................…

2015 October-November · Paper 23 · Q2(c)(iii)

Data types and records · 10 marks · official answer ready

(iii) Write program code to implement the pseudocode given in part (b). Remember to declare variables before you use them. The code is repeated here so that you do not need to tur…

2015 October-November · Paper 31 · Q5(b)(i)

Data types and records · 2 marks · official answer ready

(i) Complete the entries in the table. [2] 11 A new dataset of cities is used as test data: LIMA, PARIS, KARACHI, MELBOURNE, WARSAW, CAPE TOWN, EDINBURGH

2015 October-November · Paper 31 · Q5(b)(ii)

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

2015 October-November · Paper 31 · Q5(c)

Data types and records · 6 marks · official answer ready

5 (c) An algorithm is designed in pseudocode to search the binary tree for a particular city. The algorithm uses the additional variables below: Variable Data type Description Sea…

2015 October-November · Paper 31 · Q7(a)

Data types and records · 18 marks · official answer ready

(a) Define the term multi-programming. ............................................................................................................................................…

2015 October-November · Paper 31 · Q7(b)

Data types and records · 19 marks · official answer ready

(b) Suggest two items of systems software (A and B) that are currently loaded in main memory. A ...................................................................................…

2015 October-November · Paper 31 · Q7(c)

Data types and records · 20 marks · official answer ready

(c) Describe three characteristics of batch processing. 1 .........................................................................................................................…

2015 October-November · Paper 31 · Q7(d)(i)

Data types and records · 19 marks · official answer ready

(i) Explain what is meant by the term ‘round-robin’. ..............................................................................................................................…

2015 October-November · Paper 31 · Q7(d)(ii)

Data types and records · 22 marks · official answer ready

(ii) The program USER21 starts its time slice at time zero. The scheduler puts programs that are ready into the RUNNING state in the same order as the rows in the following diagra…

2015 October-November · Paper 31 · Q7(d)(iii)

Data types and records · 18 marks · official answer ready

(iii) State what could have caused USER46 to become suspended. ....................................................................................................................…

2015 October-November · Paper 32 · Q4(b)

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 …

2015 October-November · Paper 32 · Q4(c)

Data types and records · 6 marks · official answer ready

4 (c) An algorithm is designed in pseudocode to search the binary tree for a particular food name. The algorithm uses the additional variables below: Variable Data type Descriptio…

2015 October-November · Paper 32 · Q6(a)(iii)

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…

2015 October-November · Paper 32 · Q6(a)(iv)

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…