C- Bitwise Operators Questions and Answers

Take Exam

Bitwise Operators in C programming are essential for performing operations directly on bits, making them powerful for low-level programming and optimization tasks. These operators are a frequent topic in programming questions and answers for placement exams and technical interviews by companies like Infosys, Wipro, and TCS. This section on C bitwise operators questions with answers explains AND, OR, XOR, NOT, shift operators, and their practical applications. Practicing C programming MCQs on bitwise operations will enhance your problem-solving efficiency and understanding of memory-level computation in C.

C- Bitwise Operators

Showing 10 of 24 questions

21. Which bitwise operator is used for toggling bits?

  • AND
  • OR
  • XOR
  • NOT
Show Answer Report

22. What is the result of 7 << 2?

  • 7
  • 14
  • 21
  • 28
Show Answer Report

23. How to check if a number is even using bitwise operators?

  • x & 1
  • x | 1
  • x ^ 1
  • x >> 1
Show Answer Report

24. What is the output of: printf("%d", 9 & 7);

  • 1
  • 7
  • 9
  • 15
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test