If a byte is used as a storage unit, number 5 and character 5 in assembly language are stored as :
MH SET - 2020, SET Exam - 2020,
Answer: A
They are stored as 00000101B and 00110101B.
The number 5 is stored in pure binary: \(5 = 101_2\), which in a byte is 00000101. The character '5' is stored as its ASCII code, 35H = 53 decimal, which is 00110101 in binary.
Option C's 00000011 is 3, not 5, and option B's 01110101C is not a valid binary byte. So only option A is right, and 'None of the above' is wrong.
Please log in or register to report this question.