0% found this document useful (0 votes)
35 views2 pages

IGCSE Computer Science Homework Answer Sheet

Uploaded by

zeeatsolstice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

IGCSE Computer Science Homework Answer Sheet

Uploaded by

zeeatsolstice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

IGCSE Computer Science Homework Answer Sheet

Part A: Binary and Hexadecimal Conversion

1. Convert the following binary numbers to hexadecimal:

a) 10110111 = B7
b) 11101101 = ED
c) 11001010 = CA
d) 10010110 = 96

2. Convert the following hexadecimal numbers to binary:

a) 3F = 00111111
b) A7 = 10100111
c) B2 = 10110010
d) 5C = 01011100

3. Convert the following binary numbers to decimal:

a) 11011001 = 217
b) 10101010 = 170
c) 10011100 = 156
d) 01100101 = 101

4. Convert the following decimal numbers to binary:

a) 45 = 00101101
b) 123 = 01111011
c) 255 = 11111111
d) 97 = 01100001

Part B: Representing Negative Numbers Using 2's Complement

1. Find the 2's complement of the following 8-bit binary numbers:

a) 01011001 = 10100111
b) 00110011 = 11001101
c) 00011110 = 11100010
d) 01101010 = 10010110

2. Convert the following signed 8-bit 2's complement binary numbers to decimal:

a) 11100111 = -25
b) 10011001 = -103
c) 10101010 = -86
d) 11000001 = -63
3. Convert the following negative decimal numbers to 8-bit 2's complement binary
numbers:

a) -25 = 11100111
b) -78 = 10110010
c) -45 = 11010011
d) -123 = 10000101

Part C: Binary Shifting

1. Perform the following left binary shifts (consider an 8-bit register):

a) Shift the binary number 01010101 two places to the left:


01010100
b) Shift the binary number 00111011 three places to the left:
11011000

2. Perform the following right binary shifts (consider an 8-bit register):

a) Shift the binary number 11010110 two places to the right:


00110101
b) Shift the binary number 10101100 three places to the right:
00010101

3. Explain the effect of shifting a binary number to the left and to the right. Include the impact
on the binary value:

Answer: Shifting a binary number to the left effectively multiplies the number by 2 for each
shift, as it moves the bits to higher powers of 2, filling with 0s on the right. Shifting a binary
number to the right effectively divides the number by 2 for each shift, as it moves the bits to
lower powers of 2, filling with 0s on the left.

Part D: Binary Addition

1. Add together 01011110 and 00111101, giving your answer in binary:


01011110 + 00111101 = 10011011

2. Convert your answer in part a) to denary:


10011011 = 155

You might also like