Pages

Thursday, November 3, 2016

Answer of MCQs based on C Operators.

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

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

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

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

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

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
ANSWER: A

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

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

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

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


No comments:

Post a Comment