Data representation
107 questions. Open a question to solve it and check the official answer.
Floating-point representation and manipulation · 2 marks
(iii) Normalise the floating-point number in part (a)(i). Mantissa Exponent [2] 3
Floating-point representation and manipulation · 2 marks · official answer ready
(i) Write the largest positive number that can be written as a normalised floating-point number in this format. Mantissa Exponent [2]
Floating-point representation and manipulation · 2 marks
(ii) Write the smallest positive number that can be written as a normalised floating-point number in this format. Mantissa Exponent [2]
Floating-point representation and manipulation · 2 marks · official answer ready
(iii) If a positive number is added to the number in part (b)(i) explain what will happen. ........................................................................................…
Floating-point representation and manipulation · 3 marks · official answer ready
(c) A student writes a program to output numbers using the following code: X 0.0 FOR i 0 TO 1000 X X + 0.1 OUTPUT X ENDFOR The student is surprised to see that the program outputs…
File organisation and access · 2 marks · official answer ready
(ii) The programmer decides to store all the data in a file. Initially, data from 27 locations will be stored. More rainfall locations will be added over time and will never excee…
File organisation and access · 2 marks · official answer ready
(ii) The programmer decides to store all the data in a file. Initially, data from 27 locations will be stored. More rainfall locations will be added over time and will never excee…
