Page 1 of 1

C Programming > Bitwise Operators

PostPosted: Thu Oct 02, 2014 11:29 am
by abdulsaboor
C Programming > Bitwise Operators


1.
In which numbering system can the binary number 1011011111000101 be easily converted to?

A. Decimal system
B. Hexadecimal system
C. Octal system
D. No need to convert

Answer: Option B

Explanation:

Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.

Re: C Programming > Bitwise Operators

PostPosted: Thu Oct 02, 2014 11:30 am
by abdulsaboor
2.
Which bitwise operator is suitable for turning off a particular bit in a number?

A. && operator
B. & operator
C. || operator
D. ! operator

Answer: Option B

Re: C Programming > Bitwise Operators

PostPosted: Thu Oct 02, 2014 11:32 am
by abdulsaboor
3.
Which bitwise operator is suitable for turning on a particular bit in a number?

A. && operator
B. & operator
C. || operator
D. | operator

Answer: Option D

4.
Which bitwise operator is suitable for checking whether a particular bit is on or off?

A. && operator
B. & operator
C. || operator
D. ! operator

Answer: Option B