Two's complement is used to represent negative numbers in binary. Denary 8-bit two's complement binary 45 -45 -100 (a) Complete the table by converting each...

Assessment: Computer Science (9-1) 0984 | Paper 1 Mock 01 | Computer Systems Subject: Computer Science (9-1) - 0984

Question 1 Report

Two's complement is used to represent negative numbers in binary.

Denary8-bit two's complement binary
45
-45
-100

(a) Complete the table by converting each denary number to 8-bit two's complement binary. Show your working. [6]

Answer Details

(a) Converting each denary number to 8-bit two's complement binary:

45:

1286432168421
00101101

45 = 32 + 8 + 4 + 1 = 00101101. [2]

-45:

  1. Start with the positive representation: 00101101
  2. Flip all bits (one's complement): 11010010
  3. Add 1: 11010010 + 1 = 11010011

The result is 11010011. [2] This "flip and add 1" method is the standard algorithm for finding the two's complement (negative) of a binary number.

-100:

  1. First convert 100 to binary: 100 = 64 + 32 + 4 = 01100100
  2. Flip all bits: 10011011
  3. Add 1: 10011011 + 1 = 10011100

The result is 10011100. [2]

In two's complement, the most significant bit (MSB) indicates the sign: 0 for positive, 1 for negative. The range of an 8-bit two's complement number is -128 to +127.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning