*******please don't copy and paste and don't use handwriting ****
Q1:
Using the below given ASCII table (lowercase letters) convert the
sentence “welcome to cci college” into binary values.
a - 97 |
b - 98 |
c - 99 |
d - 100 |
e - 101 |
f - 102 |
g - 103 |
h - 104 |
i - 105 |
j - 106 |
k - 107 |
l - 108 |
m - 109 |
n - 110 |
o - 111 |
p - 112 |
q - 113 |
r -114 |
s -115 |
t - 116 |
u - 117 |
v - 118 |
w - 119 |
x - 120 |
y - 121 |
z - 122 |
Space - 32 |
Q2:
What are the 16-bit 1’s and 2’s complements of the following binary numbers?
a. 01100
b. 100111100001001
Conversion as per ASCII table:-
Sentence- Decimal :- Binary value
w - 119 :- 1110111
e - 101 :- 1100101
l - 108 :- 1101100
c - 99 :- 110011
o - 111 :- 1101111
m - 109 :- 1101101
e - 101 :- 1100101
t - 116 :- 1110100
o - 111 :- 1101111
c - 99 :- 110011
c - 99 :- 110011
i - 105 :- 1101001
c - 99 :- 110011
o - 111 :- 1101111
l - 108 :- 1101100
l - 108 :- 1101100
e - 101 :- 1100101
g - 103 :- 1100111
e - 101. :- 1100101
Ans 2. 16 bit 1's and 2's complement:-
a) 01100
Make it 16 bit no. by adding zero's
0000000000001100
1's complement :- 1111111111110011 (change 1 to 0 and 0 to 1)
2's complement :- 1111111111110100 ( add 1 in 1's complement)
b) 100111100001001
Make it 16 bit no:- 0100111100001001
1's complement :- 1011000011110110
2's complement :- 1011000011110111
Get Answers For Free
Most questions answered within 1 hours.