Data types and structures
185 questions. Open a question to solve it and check the official answer.
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…
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…
Arrays · 16 marks
(ii) State an output variable which will provide data for the planning process for the traffic control system. ....................................................................…
Data types and records · 22 marks
(v) CountBig("ScoreC", 19, 'N') .......................................................................................................................................[1] 17 (b) T…
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
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
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…
Data types and records · 18 marks · official answer ready
(a) Define the term multi-programming. ............................................................................................................................................…
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 ...................................................................................…
Data types and records · 20 marks · official answer ready
(c) Describe three characteristics of batch processing. 1 .........................................................................................................................…
Data types and records · 19 marks · official answer ready
(i) Explain what is meant by the term ‘round-robin’. ..............................................................................................................................…
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…
Data types and records · 18 marks · official answer ready
(iii) State what could have caused USER46 to become suspended. ....................................................................................................................…
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…
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 ← ................................…
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…
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…
Arrays · 100 marks · official answer ready
(ii) In a high-level programming language, write statements to declare the array Board. Programming language ......................................................................…
