Data types and structures
283 questions. Open a question to solve it and check the official answer.
Data types and records · 8 marks · official answer ready
5 Abbreviations are often used in place of a full name. Concatenating the first letter of each word in the name makes an abbreviation. For example: Name Abbreviation United Nation…
Data types and records · 7 marks · official answer ready
(b) The function FindBooksBy() has already been called and has stored values in the array Result. The procedure, DisplayResults(), will output the information from the array. The …
Data types and records · 4 marks · official answer ready
(i) Complete the following pseudocode definition of a user-defined data type to store the employee data. TYPE Employee DECLARE EmployeeID : .......................................…
Data types and records · 1 mark · official answer ready
(ii) Write a pseudocode statement to declare a variable, NewEmployee of data type Employee. .......................................................................................…
Data types and records · 1 mark · official answer ready
(iii) Write a pseudocode statement that assigns 02244 to the EmployeeID of NewEmployee. ...........................................................................................…
Data types and records · 2 marks · official answer ready
(iv) Employee is an example of a record that is a composite data type. State two other composite data types. 1 ....................................................................…
Files · 2 marks · official answer ready
(ii) Serial files can be accessed using sequential access. Explain how sequential access could be used for the temperature readings file. .........................................…
Data types and records · 2 marks · official answer ready
(b) The final stage of compilation can be code optimisation. Explain why code is optimised. .......................................................................................…
Data types and records · 4 marks · official answer ready
(i) Complete the following pseudocode definition of a user-defined data type to store the employee data. TYPE Employee DECLARE EmployeeID : .......................................…
Data types and records · 1 mark · official answer ready
(ii) Write a pseudocode statement to declare a variable, NewEmployee of data type Employee. .......................................................................................…
Data types and records · 1 mark · official answer ready
(iii) Write a pseudocode statement that assigns 02244 to the EmployeeID of NewEmployee. ...........................................................................................…
Data types and records · 2 marks · official answer ready
(iv) Employee is an example of a record that is a composite data type. State two other composite data types. 1 ....................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…
Introduction to abstract data types · 3 marks · official answer ready
(c) A queue is one example of an Abstract Data Type (ADT). Identify three other Abstract Data Types. 1 ............................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…
Files · 2 marks · official answer ready
(b) Biyu uses library files in the program. Explain why software is often developed using library files. ..........................................................................…
Files · 4 marks · official answer ready
(i) Describe the actions performed by a hard disk formatter and a hard disk defragmenter. Hard disk formatter .....................................................................…
Data types and records · 1 mark · official answer ready
(ii) State the effect of the function Clean(). ....................................................................................................................................…
Data types and records · 2 marks · official answer ready
(iii) The pseudocode is changed so that the variable AfterSpace is initialised to TRUE. Explain what will happen if the function is called as follows: Result Clean("∇∇X∇∇∇Y∇and∇∇Z…
Data types and records · 4 marks · official answer ready
(b) The following pseudocode declares and initialises an array. DECLARE Code : ARRAY[1:100] OF STRING DECLARE Index : INTEGER FOR Index 1 TO 100 Code[Index] "" ENDFOR The design o…
