C - Operators and Expressions Questions and Answers

Take Exam

Operators and expressions are the core of performing calculations and logic in C programs. This section features C programming questions and answers focusing on arithmetic, relational, logical, bitwise, and assignment operators. Designed for TCS, Infosys, and Capgemini aspirants, these MCQs test both concept clarity and coding accuracy. Practicing these C Operators and Expressions questions with answers helps you strengthen your understanding of how C executes and evaluates expressions—essential for both programming interviews and technical exams.

C - Operators and Expressions

Showing 10 of 65 questions

21.  the symbol of bitwise OR operator is 

  • |
  • ||
  • !=
  • >>
Show Answer Report

22.  The symbol of left shift  operator is 

  • <
  • <<
  • <=
  • <<<
Show Answer Report

23. &nbsp;The symbol of right shift operator is&nbsp;

  • <
  • >>>
  • >>
  • >
Show Answer Report

24. The bitwise AND &nbsp;is used for&nbsp;

  • masking
  • comparison
  • division
  • shifting bits
Show Answer Report

25. &nbsp;The bitwise OR is used to&nbsp;

  • set the desired bits to 1
  • multiply numbers
  • divide numbers
  • set the desired bits to 0
Show Answer Report

26. Tthe bitwise XOR is used to&nbsp;

  • complement the desired bits
  • multiply numbers
  • divide numbers
  • set the desired bits to 0
Show Answer Report

27. &nbsp;Logical right shift results in&nbsp;

  • maintaining the leftmost bit value
  • zero is shifted to the leftmost bit position
  • one is shifted to the rightmost bit value
  • zero is shifted to the rightmost position
Show Answer Report

28. &nbsp;Arithmetic right shift results in&nbsp;

  • zero is shifted to the leftmost bit position
  • one is shifted to the rightmost bit value
  • maintains the leftmost bit value
  • zero is shifted to the rightmost bit position
Show Answer Report

29. &nbsp;The result of the expression ~~ 7 is&nbsp;

  • 7
  • 1
  • 0
  • invalid expression
Show Answer Report

30. &nbsp;Identify the valid compound assignment.&nbsp;

  • <<=
  • >>=
  • options a and b
  • >>>=
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test