Computer Science For First Examination In 2021 9618 · 13

Data representation

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

2023 May-June · Paper 31 · Q1(a)

Floating-point representation and manipulation · 4 marks · official answer ready

(a) Calculate the normalised floating-point representation of 113.75 and show how it would be represented in each of these two systems. Show your working. System 1 Mantissa Expone…

2023 May-June · Paper 31 · Q1(b)

Floating-point representation and manipulation · 2 marks · official answer ready

(b) Explain the problem that occurred in part (a) when representing the number in system 2. .......................................................................................…

2023 May-June · Paper 31 · Q4(a)

User-defined data types · 2 marks · official answer ready

(a) A data type to hold a set of prime numbers below 20. These prime numbers are: .................................................................................................…

2023 May-June · Paper 31 · Q4(b)

User-defined data types · 2 marks · official answer ready

(b) A data type to point to a day in the week, for example Monday. ................................................................................................................…

2023 May-June · Paper 32 · Q1(a)

Floating-point representation and manipulation · 2 marks · official answer ready

(a) Write the normalised floating‑point representation of the following binary number using this system: 0101010.111 Show your working. Working ...................................…

2023 May-June · Paper 32 · Q1(b)

Floating-point representation and manipulation · 3 marks · official answer ready

(b) Describe the reason why the normalised form of the following binary number cannot be represented accurately using this system. ................................................…

2023 May-June · Paper 33 · Q1(a)

Floating-point representation and manipulation · 4 marks · official answer ready

(a) Calculate the normalised floating-point representation of 113.75 and show how it would be represented in each of these two systems. Show your working. System 1 Mantissa Expone…

2023 May-June · Paper 33 · Q1(b)

Floating-point representation and manipulation · 2 marks · official answer ready

(b) Explain the problem that occurred in part (a) when representing the number in system 2. .......................................................................................…

2023 May-June · Paper 33 · Q4(a)

User-defined data types · 2 marks · official answer ready

(a) A data type to hold a set of prime numbers below 20. These prime numbers are: .................................................................................................…

2023 May-June · Paper 33 · Q4(b)

User-defined data types · 2 marks · official answer ready

(b) A data type to point to a day in the week, for example Monday. ................................................................................................................…

2022 October-November · Paper 33 · Q1(a)

Floating-point representation and manipulation · 3 marks · official answer ready

(a) Write the normalised floating-point representation of +202 in this system. Show your working. Mantissa Exponent Working .......................................................…

2022 October-November · Paper 33 · Q1(b)

Floating-point representation and manipulation · 3 marks · official answer ready

(b) Write the normalised floating-point representation of –202 in this system. Show your working. Mantissa Exponent Working .......................................................…

2022 October-November · Paper 33 · Q1(c)(i)

Floating-point representation and manipulation · 1 mark · official answer ready

(i) State why the number is not normalised. .......................................................................................................................................…

2022 October-November · Paper 33 · Q1(c)(ii)

Floating-point representation and manipulation · 2 marks · official answer ready

(ii) Write the normalised floating-point representation of the number. Mantissa Exponent [2]

2021 October-November · Paper 31 · Q1(a)(i)

Floating-point representation and manipulation · 2 marks · official answer ready

(i) Write the normalised floating-point representation of the following unsigned binary number using this system. Working .........................................................…

2021 October-November · Paper 31 · Q1(a)(ii)

Floating-point representation and manipulation · 2 marks · official answer ready

(ii) State the consequence of storing the binary number in part (a)(i) as a floating-point number in this system. Justify your answer. Consequence ................................…

2021 October-November · Paper 31 · Q3(a)

User-defined data types · 2 marks · official answer ready

(a) Write pseudocode to create an enumerated type called Parts to include these parts sold in a computer shop: Monitor, CPU, SSD, HDD, LaserPrinter, Keyboard, Mouse ..............…

2021 October-November · Paper 31 · Q5(a)

File organisation and access · 4 marks · official answer ready

5 (a) Compare sequential and serial methods of file organisation. .................................................................................................................…

2021 May-June · Paper 31 · Q1(a)

Floating-point representation and manipulation · 3 marks · official answer ready

(a) Calculate the normalised floating-point representation of –7.25 in this system. Show your working. Mantissa Exponent Working ..................................................…

2021 May-June · Paper 31 · Q1(b)

Floating-point representation and manipulation · 3 marks · official answer ready

(b) Calculate the denary value of the given binary floating-point number. Show your working. Mantissa Exponent Working ............................................................…