Operators and Expressions – Multiple Choice Questions (MCQs)
-
-
2. Which operator is used for multiplication in C?
-
3. Which operator is used for division in C?
-
4. Which operator is used to find the remainder of a division in C?
-
5. Which of the following is a unary operator in C?
-
6. What is the value of 'a' after the execution of the following code? `int a = 5; a++;`
-
7. What is the value of 'b' after the execution of the following code? `int a = 5; int b = ++a;`
-
8. What is the value of 'b' after the execution of the following code? `int a = 5; int b = a++;`
-
9. Which operator is used for subtraction in C?
-
10. Which of the following is a binary operator in C?
-
11. What is the value of the expression `10 / 3` in C (integer division)?
-
12. Which operator is used for logical AND in C?