Signed Integers

Click here to view a tutorial that helps to clarify the representation of signed integers using two's complement notation. Click here to view the answers.

1. Write each of the following signed decimal integers in 8-bit binary notation:

If any number cannot be represented as a signed 8-bit binary number, indicate this in your answer.

  
a.
-2
  
e.
+15
b.
-7
  
f.
-1
c.
-128
  
g.
-56
d.
-16
  
h.
+127

 

2. Write each of the following 8-bit signed binary integers in decimal:

  
a.
11111111
  
g.
00001111
b.
11110000
  
h.
10101111
c.
10000000
  
i.
11111100
d.
10000001
  
j.
01010101

 

3. Which of the following integers are valid 16-bit signed decimal integers?

(indicate V=valid, I=invalid)

  
a.
+32469
  
d.
+32785
b.
+32767
  
e.
-32785
c.
-32768
  
f.
+65535

 

4. Indicate the sign of each of the following 16-bit hexadecimal integers:

(indicate P=positive, N=negative)

  
a.
7FB9h
  
c.
0D000h
b.
8123h
  
d.
649Fh

 

5. Write each of the following signed decimal integers as a 16-bit hexadecimal value:

  
a.
-42
  
e.
-32768
b.
-127
  
f.
-1
c.
-4096
  
g.
-8193
d.
-16
  
h.
-256