Computer Science 9608 · 10

Data types and structures

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

2019 October-November · Paper 23 · Q5

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…

2019 October-November · Paper 23 · Q6(b)

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 …

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

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 : .......................................…

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

Data types and records · 1 mark · official answer ready

(ii) Write a pseudocode statement to declare a variable, NewEmployee of data type Employee. .......................................................................................…

2019 October-November · Paper 31 · Q5(b)(iii)

Data types and records · 1 mark · official answer ready

(iii) Write a pseudocode statement that assigns 02244 to the EmployeeID of NewEmployee. ...........................................................................................…

2019 October-November · Paper 31 · Q5(b)(iv)

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 ....................................................................…

2019 October-November · Paper 32 · Q5(b)(ii)

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. .........................................…

2019 October-November · Paper 32 · Q7(b)

Data types and records · 2 marks · official answer ready

(b) The final stage of compilation can be code optimisation. Explain why code is optimised. .......................................................................................…

2019 October-November · Paper 33 · Q5(b)(i)

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 : .......................................…

2019 October-November · Paper 33 · Q5(b)(ii)

Data types and records · 1 mark · official answer ready

(ii) Write a pseudocode statement to declare a variable, NewEmployee of data type Employee. .......................................................................................…

2019 October-November · Paper 33 · Q5(b)(iii)

Data types and records · 1 mark · official answer ready

(iii) Write a pseudocode statement that assigns 02244 to the EmployeeID of NewEmployee. ...........................................................................................…

2019 October-November · Paper 33 · Q5(b)(iv)

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 ....................................................................…

2019 October-November · Paper 41 · Q1(b)(v)

Introduction to abstract data types · 2 marks · official answer ready

(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…

2019 October-November · Paper 42 · Q2(c)

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 ............................................................................…

2019 October-November · Paper 43 · Q1(b)(v)

Introduction to abstract data types · 2 marks · official answer ready

(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…

2019 May-June · Paper 12 · Q2(b)

Files · 2 marks · official answer ready

(b) Biyu uses library files in the program. Explain why software is often developed using library files. ..........................................................................…

2019 May-June · Paper 13 · Q1(b)(i)

Files · 4 marks · official answer ready

(i) Describe the actions performed by a hard disk formatter and a hard disk defragmenter. Hard disk formatter .....................................................................…

2019 May-June · Paper 21 · Q4(a)(ii)

Data types and records · 1 mark · official answer ready

(ii) State the effect of the function Clean(). ....................................................................................................................................…

2019 May-June · Paper 21 · Q4(a)(iii)

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…

2019 May-June · Paper 21 · Q4(b)

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…