Data representation
107 questions. Open a question to solve it and check the official answer.
Floating-point representation and manipulation · 2 marks · official answer ready
(i) Identify whether each number is positive or negative. Justify your answer. Number A ...........................................................................................…
Floating-point representation and manipulation · 4 marks · official answer ready
(ii) Convert the binary values of the mantissa and the exponent for each number to their separate denary values. A mantissa .......................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(iii) Calculate the denary value of each floating-point number using your values from part (a)(ii). Number A ......................................................................…
Floating-point representation and manipulation · 3 marks · official answer ready
(b) State which number, A or B, is stored in normalised floating-point form. Justify your answer. Number ..........................................................................…
Floating-point representation and manipulation · 4 marks · official answer ready
(i) Convert the binary values of the mantissa and the exponent for each number to their separate denary values. A mantissa ........................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(ii) Calculate the denary value of each floating-point number using your values from part (a)(i). Number A ........................................................................…
Floating-point representation and manipulation · 3 marks · official answer ready
(b) State which number, A or B, is stored in normalised floating-point form. Justify your answer. Number ..........................................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(i) Identify whether each number is positive or negative. Justify your answer. Number A ...........................................................................................…
Floating-point representation and manipulation · 4 marks · official answer ready
(ii) Convert the binary values of the mantissa and the exponent for each number to their separate denary values. A mantissa .......................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(iii) Calculate the denary value of each floating-point number using your values from part (a)(ii). Number A ......................................................................…
Floating-point representation and manipulation · 3 marks · official answer ready
(b) State which number, A or B, is stored in normalised floating-point form. Justify your answer. Number ..........................................................................…
Floating-point representation and manipulation · 3 marks · official answer ready
(i) A real number is stored as a 12-bit normalised binary number as follows: Mantissa Exponent Calculate the denary value for this binary number. Show your working. Working ......…
Floating-point representation and manipulation · 3 marks · official answer ready
(ii) Calculate the normalised binary number for −3.75. Show your working. Mantissa Exponent Working ...............................................................................…
Floating-point representation and manipulation · 1 mark · official answer ready
(b) The number of bits available to represent a real number is increased to 16. State the effect of increasing the size of the exponent by 4 bits. ................................…
Floating-point representation and manipulation · 1 mark · official answer ready
(c) State why some binary representations can lead to rounding errors. ............................................................................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(d) Complete the following descriptions by inserting the two missing terms. ................................................ can occur in the exponent of a floating-point number, …
User-defined data types · 2 marks · official answer ready
5 (a) Explain why user-defined data types are necessary. ..........................................................................................................................…
Floating-point representation and manipulation · 1 mark · official answer ready
(i) Identify the binary value of the exponent. ....................................................................................................................................…
Floating-point representation and manipulation · 1 mark · official answer ready
(ii) Identify the binary value of the mantissa. ...................................................................................................................................…
Floating-point representation and manipulation · 2 marks · official answer ready
(iii) State whether the number stored is positive or negative. Justify your choice. Positive or negative ..........................................................................…
