RejinpaulPlacement
Search

Bitwise Operators - C Programming Questions and Answers - RejinpaulPlacement

@ : Home > C Programming > Bitwise Operators


Find us on Facebook



Follow us on Google+


Google+

1.
In which numbering system can the binary number 1011011111000101 be easily converted to?
Answer & Solution
Answer: (B) Hexadecimal system
Solution:
Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.
close
2.
Which bitwise operator is suitable for turning off a particular bit in a number?
Answer & Solution
Answer: (B) & operator
Solution:
No answer description available for this question. Let us discuss.
close
3.
Which bitwise operator is suitable for turning on a particular bit in a number?
Answer & Solution
Answer: (D) | operator
Solution:
No answer description available for this question. Let us discuss. close
4.
Which bitwise operator is suitable for checking whether a particular bit is on or off?
Answer & Solution
Answer: (B) & operator
Solution:
No answer description available for this question. Let us discuss.
close
5.
What will be the output of the program ?

#include
int main()
{
int i=4, j=8;
printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);
return 0;
}
Answer & Solution
Answer: (C) 12, 1, 12
Solution:
No answer description available for this question. Let us discuss.
close