GATE 2006
October 23, 2023LPP
October 23, 2023Number-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
226 | |
-98 | |
76 | |
-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
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
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
Subscribe
Login
0 Comments