C - Operators and Expressions Questions and Answers
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
3. The operator % yields
- quotient value
- remaindervalue
- percentage value
- fractional part of the division
4. The operator / when applied to floatingvalues yields
- remainder value
- negative value of the remainder
- quotient including fractional part
- integer quotient value only.
5. The operator % can be applied only to
- float values
- double values
- options a and b
- integral values
6. x % y is equal to
- (x -(x/y))
- (x (x/y)* y)
- (y-(x/y))
- (y - (x/y)* y)
7. The operator / can be applied to
- integral values
- float values
- double values
- all the above
8. The second operand of the operator % must always be
- negative value
- non-zero
- zero
- positive value
9. If both the operands of the operator / are integers, the result is
- a float value
- an integer value
- option a or b
- undefined
10. Integer dividion results in
- rounding of thefractional part of the quotient
- truncating the fractional part of the quotient
- floating value
- syntax error