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

51. Which of the following is NOT a bitwise operator ?

  • &
  • ^
  • |
  • ||
Show Answer Report

52.  The type cast operator is 

  • (type )
  • cast ( )
  • //
  • " "
Show Answer Report

53.  Which of the following statements is /are True ? 1. A char data type variable always occupies one byte independent of the system architecture. 2. the size of operator is used to determine the amount of memory occupied by a variable.

  • both 1 and 2
  • 1 only
  • 2 only
  • neither 1 nor 2
Show Answer Report

54.  What might be theminimum value  for the data type int, for 32 bit compiler ?

  • 0
  • -2,147, 483, 648
  • -2, 147, 483, 647
  • -32768
Show Answer Report

55.  If the value of a = 10, and b = -1, thevalue of x after executing thefollowingexpression is  x= (a! = 10), && (b = 1)

  • 0
  • 1
  • -1
  • none
Show Answer Report

56.  what would be the output of the expression 11 ^ 5 ?

  • 6
  • 8
  • 14
  • 15
Show Answer Report

57.  What is the value of x after executing the following statement ? int x = 011 | 0x10;

  • 13
  • 19
  • 25
  • 27
Show Answer Report

58.  What is the function of the modulus operator in most languages ?

  • Sets a system environmental value toeither base 10, base 8, or base 16.
  • Returns the first argument raised to the second argument power.
  • Prints out the actual code written to standard output rather than executing the code
  • Returns the remainder after dividing one number by another.
Show Answer Report

59.  What is the value of x in the sample code below ? double x; x = (2 + 3) * 2 + 3; 

  • 10
  • 13
  • 25
  • 28
Show Answer Report

60.  What value will bestored in z if the following code is executed ? main ( )  { int x = 5, y = -10, z; int a = 4, b = 2; z = x+++++y * b / a; }

  • -2
  • 0
  • 1
  • 2
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test