Pages

Thursday, November 3, 2016

MCQs based on C operators

Which of the following is example of relational operator in C language?
A. <
B. >
C. !=
D. All of these

All arithmetic operators have the same level of precedence.
A. True
B. False
C. None of these

The _____________ operator checks if the value of left operand is greater than the value of right operand.
A. = =
B. <
C. >
D. !=

++ and -- are unary operators.
A. True
B. False
C. None of these

!=   is the example of ____________________ operator.
A. Relational
B. Logical
C. Assignment
D. Conditional

An arithmetic expression without parenthesis will be evaluated from left to right using rules of precedence of operators.
A. True
B. False
C. None of these

Which of the following is not a bitwise operator?
A. &
B. <<
C. >>
D. *

The _____________ operator checks if the values of two operands are equal.
A. = =
B. =
C. !=

The modulus operator (%) can be used only with integers.
A. True
B. False
C. None of these

The __________ operator checks if the value of left operand is greater than or equal to the value of right operand.
A. <=
B. >=
C. !=
D. None of these



* * * * *

No comments:

Post a Comment