Online GK Series

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

Connect with Universities & Study Abroad Experts Instantly Connect Now

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

Your Valuable Comments Please...

Useful Computer Science EBooks