Convert the signed denary value −100 into an 8-bit two's complement binary integer.
Points that gain marks
- 1001 1100.
In this lab: Level 'Two's complement: −100' builds it bit by bit; 'Flip and add 1' shows the method.
Labs · 9618 AS 1.1 · A2 13.3
Flip the switches of one byte. See it as binary, denary, two's complement, hex, BCD and floating point, and watch the place values add up.
Exam questions on what this lab teaches, with the points that gain marks.
Convert the signed denary value −100 into an 8-bit two's complement binary integer.
In this lab: Level 'Two's complement: −100' builds it bit by bit; 'Flip and add 1' shows the method.
Hexadecimal 23 in two's complement representation is 00100011. The denary number 10 needs to be subtracted from this value. Subtract the denary number 10 from 00100011, using two's complement. Show your working.
In this lab: 'Flip and add 1' makes −10; 'Binary addition' adds bytes with the carries shown.
Convert the denary number 964 into Binary Coded Decimal (BCD).
In this lab: Level 'Binary-coded decimal'.
10-bit mantissa, 6-bit exponent, two's complement. Calculate the normalised floating-point representation of −7.25. Show your working.
In this lab: Level 'Exam: −7.25 in 10 + 6 bits'.
8-bit mantissa, 8-bit exponent, two's complement. Write the normalised floating-point representation of +202, then of −202. Show your working.
In this lab: Level 'Exam: −202 in 8 + 8 bits'.
12-bit mantissa, 4-bit exponent, two's complement. Write the normalised floating-point representation of +65.25. Show your working.
In this lab: Level 'Exam: 65.25 in 12 + 4 bits'.
10-bit mantissa, 6-bit exponent, two's complement. Calculate the normalised floating-point representation of −102.75. Show your working.
In this lab: Level 'Exam: −102.75 in 10 + 6 bits'.
10-bit mantissa, 6-bit exponent. Calculate the denary value of the given normalised floating-point number 0100111100 001001. Show your working.
In this lab: Level 'Exam: read a float (316)'.
Calculate the denary value of the binary floating-point number 1011000111 000111. Show your working.
In this lab: Level 'Exam: read a negative float'.
11-bit mantissa, 5-bit exponent. (a) Write the largest positive number that can be stored. (b) Calculate the denary value of 10110010011 01001. Show your working.
In this lab: Levels 'Exam: read 11 + 5 bits' and 'Exam: the largest in 11 + 5 bits'.
12-bit mantissa, 4-bit exponent, two's complement. Calculate the denary value of the normalised floating-point number 101101000110 0110. Show your working.
In this lab: Level 'Exam: read 12 + 4 bits'.
(b)(i) Convert the two's complement integer 10110111 into denary. Show all your working. (ii) Convert the denary number 45 into an 8-bit two's complement integer. (c) State the mathematical effect of a right shift of four places on a positive binary integer.
In this lab: Levels 'Flip and add 1', 'Two's complement: −100' and 'Shift right: ÷ 2'.
Two binary numbers are added by a computer and an overflow error occurs. Explain why the overflow error occurred.
In this lab: Level 'Binary addition': a carry out of the left bit has nowhere to go.
A toy store gives each toy a 3-digit hexadecimal code. The computer has 12-bit registers. (a) Give the largest hexadecimal number that can be stored in a 12-bit register. (b) Give the largest denary number. (c) Convert the hexadecimal codes 429 and 1A3 to 12-bit binary. (d) Convert 100010100001 and 011100001011 to hexadecimal.
In this lab: Levels 'Hexadecimal' and 'Hex with letters': each hex digit is its own group of 4 bits, so 12 bits are 3 hex digits. 'The biggest byte' shows why all 1s is the largest (FF = 255 in 8 bits; FFF = 4095 in 12).
An air-conditioning system stores numbers in an 8-bit register. (b) Give the binary for 24 and for 101; give the denary for 00010011 and 00100010. (c) Error codes are shown in hexadecimal: give the binary for 51 and E3, and the hexadecimal for 10000010. (d) Give the 8-bit two's complement integer for −5. Show all your working.
In this lab: Levels 'Make 13', 'Hexadecimal' and 'Hex with letters' for (b) and (c); 'Exam: −5 for the air-con' for (d).
A calculator has 8-bit registers. (a) State the highest denary number in one 8-bit register. (b) Give the 8-bit binary for 23 and 168. (c), (d) Give the denary for 00001011 and 01000010. (e) Add 01110110 and 00110000 using binary addition, with working. (f) State how a negative denary number could be represented in binary.
In this lab: Levels 'The biggest byte' for (a), 'Make 13' and 'Make 200' for (b)–(d), 'Exam: add in a calculator' for (e), and 'Two's complement: −1' for (f).
Two binary numbers are stored in a computer. (a) Add 11110101 and 00111001 using binary addition, with working. (b) A logical right shift of three places is performed on 11110101. Give the denary number stored after the shift, with working.
In this lab: Levels 'Exam: a sum that overflows' for (a) and 'Exam: shift right by 3' for (b).