Question 5

OCR Computer Science June 2018 Paper 2GCSE11 marks

On the specification

(a)(i)
2.6 Data representation
(a)(ii)
2.6 Data representation
(a)(iii)
2.6 Data representation
(a)(iv)
2.6 Data representation
(b)(i)
2.6 Data representation
(b)(ii)
2.6 Data representation
Question text

5 (a) (i) Convert the denary number 132 into an 8 bit binary number. [2] (ii) Convert the binary number 10110101 to its hexadecimal equivalent. [2] (iii) Show the effect of a binary shift right of two places on the binary number 00110100. [1] (iv) Describe a shift that can be used to double the value of the binary number 00100100. [2] (b) The table below (Fig. 3) shows the ASCII codes for a number of characters. The lower case ASCII code for a character can be found by adding 0100000 to the upper case version. Character ASCII code R 1 0 1 0 0 1 0 r 1 1 1 0 0 1 0 A 1 0 0 0 0 0 1 a E 1 0 0 0 1 0 1 e Fig. 3 (i) Complete the table above by filling in the missing ASCII codes. [2] (ii) Compare the use of ASCII and Extended ASCII to represent characters. [2]