Question 2

OCR Computer Science Sample papers Paper 2GCSE11 marks

On the specification

(a)
1.2 Memory and storage
(b)
1.2 Memory and storage
(c)
1.2 Memory and storage
(d)
1.2 Memory and storage2.2 Programming fundamentals
(e)(i)
1.2 Memory and storage
(e)(ii)
1.2 Memory and storage
Question text

2 (a) Order the following units from smallest to largest: GB bit PB byte nibble MB (b) Convert the decimal number 191 into an 8 bit binary number. (c) Convert the hexadecimal number 3E into a decimal number. You must show your working. Specimen (d) There is a subroutine, HEX(), that takes a denary number between 10 and 15 and returns the corresponding hexadecimal number. E.g. HEX(10) would return ”A”, HEX(15) would return “F”. Write an algorithm, using the subroutine HEX(), to convert any whole decimal number between 0 and 255 into a 2 digit hexadecimal number. Specimen (e) (i) Add together the following two 8 bit binary numbers. Express your response in an 8 bit binary form. 01101010 10010110 (ii) Identify the problem this addition has created.