Question: 1. Represent the decimal number in binary using 8-bit signed magnitude, one's complement, two's complement notations respectively: Signed magnitude One's complement Two's complement. 4 -4

1. Represent the decimal number in binary using 8-bit signed magnitude, one's complement, two's complement notations respectively:

Signed magnitude One's complement Two's complement.

4

-4

49

-18

2. Perform the following calculation in 8-bit Twos complement. Show the steps of your work (carries and sums). Additionally, indicate for each: 1) whether there was a carry out; 2) whether there was overflow.

a. 28 -25

b. 58 -20

c. 105 + 45

d. -12- 4

e. How do we detect and solve the overflow?

3. Check the given partial ASCII table, answer the following questions.

a. Suppose a char variable v1 = 'A'+50; what is the integer value of v1?

b. What is the character of v1?

c. Suppose an int variable v2='a' 'A', what is the value of v2?

d. What does 'z' > 'Z' return, True or False?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!