C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - General Questions (Q.No. 1)
1.
In which numbering system can the binary number 1011011111000101 be easily converted to?
Decimal system
Hexadecimal system
Octal system
No need to convert
Answer: Option
Explanation:
Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.
Discussion:
18 comments Page 1 of 2.

Akash c said:   4 years ago
It's very easy when we convert binary to hexadecimal why because.
If we convert binary (2) to Hexa (16) then we try to make 2's power which is equivalent to 16.
i.e 2^4= 16, here the power is 4 now mare a group of 4 digits and write for corresponding decimal number (for example 10111010 make a group of 4 digits.

Like 1011 = b, 1010= a).
(1)

Rupali said:   1 decade ago
Is this explanation correct "Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit. ".

Because, even I can say that each 3-digit binary number represents one octal digit.

I can't understand how the hexadecimal is easy?why octal is hard?

Can anyone can explain it?

Srinivasan said:   1 decade ago
Binary              : 1011   0111   1100   0101
Decimal(4digts): 11 7 12 5 (For Manual use)
Hexadecimal : B 7 C 5

Binary (1011011111000101) = Hexadecimal (B7C5)

Here I converted binary to hexadecimal easily. Try to decimal.

RajeshTN said:   1 decade ago
I feel this is more of a mathematical question than a programming question. Since this is a 32 bit number, there is no need to convert at all. I feel the question is quite vague where answer could be true depending on the context in which the person who answers perceives the question

Praveen said:   5 years ago
Converting into octal is also not difficult because every three digits from LSB(least significant bit) in the binary system will represent 1 digit in the octal system.

Conversion:

1011011111000101
It is 133705 in the octal system.

Explanation:
1=1
3=011
3=011
7=111
0=000
5=101.

Ranjeet Jaiswal said:   1 decade ago
Binary : 1 011 011 111 000 101

Decimal(3digts) : 1 3 3 7 0 5

Octal : 1 3 3 7 0 5


Binary (1011011111000101) = Octal (133705)

Here I converted binary to Octal easily. Am I right or wrong ?

Sudhakar said:   1 decade ago
Hello Ranjith you are right but binary to hexa-decimal is conversion is easy when comparing octal.

Because it calculation by 4 digits. For the same example

(1011 0111 1100 0101)2 = (B7C5)16.

Linus said:   8 years ago
There are 16 numbers in 1011011111000101. 16 is evenly divisible by four, but not by three, so hexadecimal is easier than octal.

Cmsullad said:   1 decade ago
In hexadecimal only four letters required to represent, hence it is easy. Note, in octal it is represented with six digits ?

Nayak said:   1 decade ago
Niziak you follow the two steps first u convert into decimal and then to octal do u think this one is easy.......


Post your comments here:

Your comments will be displayed after verification.