10.1 Data types and records
88 questions in this subtopic. Open a question to solve it and check the official answer.
Data types and records · 4 marks · official answer ready
(a) Write program code for the procedure PrintNameLine(Symbol, Name) Programming language .........................................................................................…
Data types and records · 2 marks
6 (f) Write the binary patterns for the largest and smallest positive number that can be represented with this 16-bit format for normalised real numbers. Smallest Largest [2] 12 5…
Data types and records · 16 marks
(i) A new customer with an outstanding balance of $130 is to be inserted into the linked list. On the diagram above, add the required data to the empty node. Adjust pointer(s) whe…
Data types and records · 25 marks
(ii) Describe the method to locate the position in the linked list for inserting a new record. Include how to change the pointer values. Ignore the special case in which the linke…
Data types and records · 1 mark
(i) source code ........................................................................................................................................... .......................…
Data types and records · 1 mark
(i) State what is meant by code optimisation. .....................................................................................................................................…
Data types and records · 2 marks
6 (f) Write the binary patterns for the largest and smallest positive number that can be represented with this 16-bit format for normalised real numbers. Smallest Largest [2] 12 5…
Data types and records · 16 marks
(i) A new customer with an outstanding balance of $130 is to be inserted into the linked list. On the diagram above, add the required data to the empty node. Adjust pointer(s) whe…
Data types and records · 25 marks
(ii) Describe the method to locate the position in the linked list for inserting a new record. Include how to change the pointer values. Ignore the special case in which the linke…
Data types and records · 1 mark
(i) source code ........................................................................................................................................... .......................…
Data types and records · 1 mark
(i) State what is meant by code optimisation. .....................................................................................................................................…
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…
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. .....................…
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…
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…
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…
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. .....................…
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…
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
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…
