GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 1.17

Interpreting an eight-bit octal pattern

Computer Organization & Architecture · Data Representation & Arithmetic · Full GATE CSE 1998 paper

GATE 1998, Q1.17 1 mark · MCQ
Report issue

Data Representation & Arithmetic

Question 1.17, GATE 1998: Octal 342 is treated as an eight-bit integer on an 8085. What decimal value does it represent? Forum options include 226 and−30.
Question 1.17, GATE 1998: Octal 342 is treated as an eight-bit integer on an 8085. What decimal value does it represent? Forum options include 226 and−30.
Tap to enlarge
Your answer
Answer & solution

Answer: 226 unsigned; −30 signed twos complement (no official key was published)

Convert 342₈=3·64+4·8+2=226, whose eight bits are 11100010. The 8085 architecture does not automatically attach one language-level signedness to every stored byte; the use determines interpretation. The source does not explicitly say signed. The paper’s faint/missing minus on its D further complicates the option mapping, so both interpretations are retained rather than asserting a unique official answer.

Original paper, page 2