Computing 9691 · 10

Data types and structures

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

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

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(b)(i)

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…

2015 October-November · Paper 32 · Q6(b)(ii)

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…

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

Data types and records · 4 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…

2015 October-November · Paper 32 · Q6(c)(ii)

Arrays · 16 marks

(ii) State an output variable which will provide data for the planning process for the traffic control system. ....................................................................…

2015 October-November · Paper 32 · Q6(c)(v)

Data types and records · 22 marks

(v) CountBig("ScoreC", 19, 'N') .......................................................................................................................................[1] 17 (b) T…

2015 October-November · Paper 33 · 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 33 · 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 33 · 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 33 · Q7(a)

Data types and records · 18 marks · official answer ready

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

2015 October-November · Paper 33 · 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 33 · Q7(c)

Data types and records · 20 marks · official answer ready

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

2015 October-November · Paper 33 · 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 33 · 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 33 · Q7(d)(iii)

Data types and records · 18 marks · official answer ready

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

2015 May-June · Paper 12 · Q6(a)

Files · 5 marks · official answer ready

(a) The table below shows five applications. For each application, choose the most appropriate storage medium from the list. Application Storage medium A programming text book pro…

2015 May-June · Paper 21 · Q1(b)

Data types and records · 3 marks · official answer ready

(b) A date is stored in the format DDMMYYYY in the string variable TodaysDate. Use the function MID to separate the day, month and year. ThisDay ← ................................…

2015 May-June · Paper 22 · Q3(c)(v)

Data types and records · 5 marks · official answer ready

(v) Complete the identifier table below. Variable or Procedure Identifier Data type Description or Function or Array FALSE if game in progress GameEnd Variable BOOLEAN TRUE if the…

2015 May-June · Paper 23 · Q1(b)(ii)

Data types and records · 1 mark · official answer ready

(ii) A palindrome is a string that reads the same backwards as forwards. Complete the Boolean expression to check whether the two strings, Original and Reverse, are palindromes. I…

2015 May-June · Paper 23 · Q2(b)(ii)

Arrays · 100 marks · official answer ready

(ii) In a high-level programming language, write statements to declare the array Board. Programming language ......................................................................…