Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Postal Assistants, Bank, GATE and NET

Q.

Given two literals 0x001B and 033. What are these equal to?

A 21 and 23
B 27 and 33
C 33 and 33
D 27 and 27
Answer & Explanation
Option: [D]

Let us convert the given Hexadecimal number 0x001B to Decimal:

The first part is 0x160=0

The second part is 0x163+0x162+1x161+11x160 [Though B is equivalent to 11]

=27

So, 0+27=0

Now we convert the octal number 033 to decimal:

0x82+3x1+30

=27

Computer Science Books

Your Valuable Comments Please...

Please Like Us
Brand