...
GATE 2006
October 23, 2023
LPP
October 23, 2023
GATE 2006
October 23, 2023
LPP
October 23, 2023

Number-Systems

Question 6

The octal representation of an integer is (342)8. If this were to be treated as an eight-bit integer is an 8085 based computer, its decimal equivalent is

A
226
B
-98
C
76
D
-30
Question 6 Explanation: 
(342)8 = (011 100 010)2 = (1110 0010)2
If this can be treated as 8 bit integer, then the first becomes sign bit i.e., ‘1’ then the number is negative.
8085 uses 2’s complement then

⇒ -30
Correct Answer: D
Question 6 Explanation: 
(342)8 = (011 100 010)2 = (1110 0010)2
If this can be treated as 8 bit integer, then the first becomes sign bit i.e., ‘1’ then the number is negative.
8085 uses 2’s complement then

⇒ -30
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
GATE 2006
October 23, 2023
LPP
October 23, 2023

Number-Systems

Question 6

The octal representation of an integer is (342)8. If this were to be treated as an eight-bit integer is an 8085 based computer, its decimal equivalent is

A
226
B
-98
C
76
D
-30
Question 6 Explanation: 
(342)8 = (011 100 010)2 = (1110 0010)2
If this can be treated as 8 bit integer, then the first becomes sign bit i.e., ‘1’ then the number is negative.
8085 uses 2’s complement then

⇒ -30
Correct Answer: D
Question 6 Explanation: 
(342)8 = (011 100 010)2 = (1110 0010)2
If this can be treated as 8 bit integer, then the first becomes sign bit i.e., ‘1’ then the number is negative.
8085 uses 2’s complement then

⇒ -30
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!