Computer Science 9608 · 13

Data representation

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

Reset
2015 October-November · Paper 33 · Q1(a)(iii)

Floating-point representation and manipulation · 2 marks

(iii) Normalise the floating-point number in part (a)(i). Mantissa Exponent [2] 3

2015 October-November · Paper 33 · Q1(b)(i)

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]

2015 October-November · Paper 33 · Q1(b)(ii)

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]

2015 October-November · Paper 33 · Q1(b)(iii)

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

2015 October-November · Paper 33 · Q1(c)

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…

2015 May-June · Paper 31 · Q3(b)(ii)

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…

2015 May-June · Paper 32 · Q3(b)(ii)

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…