AllInfoHub Logo

AllInfoHub – MCQ Practice

Operators and Expressions – Multiple Choice Questions (MCQs)

  1. 1. Which operator is used for addition in C?

    • A. +
    • B. -
    • C. *
    • D. /
  2. 2. Which operator is used for multiplication in C?

    • A. +
    • B. -
    • C. *
    • D. /
  3. 3. Which operator is used for division in C?

    • A. +
    • B. -
    • C. *
    • D. /
  4. 4. Which operator is used to find the remainder of a division in C?

    • A. %
    • B. /
    • C. *
    • D. -
  5. 5. Which of the following is a unary operator in C?

    • A. +
    • B. -
    • C. *
    • D. ++
  6. 6. What is the value of 'a' after the execution of the following code? `int a = 5; a++;`

    • A. 5
    • B. 6
    • C. 4
    • D. 7
  7. 7. What is the value of 'b' after the execution of the following code? `int a = 5; int b = ++a;`

    • A. 5
    • B. 6
    • C. 4
    • D. 7
  8. 8. What is the value of 'b' after the execution of the following code? `int a = 5; int b = a++;`

    • A. 5
    • B. 6
    • C. 4
    • D. 7
  9. 9. Which operator is used for subtraction in C?

    • A. +
    • B. -
    • C. *
    • D. /
  10. 10. Which of the following is a binary operator in C?

    • A. ++
    • B. --
    • C. !
    • D. +
  11. 11. What is the value of the expression `10 / 3` in C (integer division)?

    • A. 3.33
    • B. 3
    • C. 4
    • D. 0
  12. 12. Which operator is used for logical AND in C?

    • A. &&
    • B. ||
    • C. !
    • D. &