Important MCQ questions for Class 11 Computer Science Chapter-Operators and Expressions in C++
Get Important MCQ questions for Class 11 Computer Science Chapter-Operators and Expressions in C++ with a detailed explanation of all the MCQ questions asked from Chapter-Operators and Expressions in C++ prepared by the experts.
Get Selected MCQ-based questions with solutions for Chapter-Operators and Expressions in C++
MCQ Questions set-1 for chapter-Operators and Expressions in C++ class 11 Computer Science
Computer Science - MCQ on Operators and Expressions in C++
Class XI
Q. 1. The operator, that will be evaluated first is
a. ||.
b. !.
c. &&.
d. ?:.
Answer:
(c)
Explanation: && is having highest precedence among the following operators.
Q. 2. The result of the expression 22%5 is
a. 0.
b. 1.
c. 2.
d. 4.
Answer:
(c)
Explanation: The modulus operator returns the remainder, when 22 is divided by 5, which is 2.
Q. 3. The expression: ! (1 &&0 || !1) evaluates to
a. false.
b. error.
c. run time error.
d. true.
Answer:
(d)
Explanation: In the above expression, first && operators executes, followed by ||. Thus, the result 1 is obtained which corresponds to true.