← Back to Subject
PPS (C Language) • MCQ • Operators, Conditional Branching and Loops
Most Important 30 Objective Question - Operators, Conditional Branching and Loops
Q1. Which operator is used for addition in C?

A) *
B) +
C) /
D) %

Answer: B

Explanation:
The plus (+) operator is used to perform addition in C.

Q2. Which operator is used to find remainder?

A) /
B) %
C) *
D) +

Answer: B

Explanation:
Modulo (%) operator returns the remainder after division.

Q3. Which operator is used for multiplication?

A) x
B) *
C) %
D) #

Answer: B

Explanation:
Asterisk (*) is used for multiplication in C language.

Q4. Which operator is used for equality checking?

A) =
B) ==
C) !=
D) <=

Answer: B

Explanation:
Double equal to (==) is used to compare two values.

Q5. Which operator is used for assignment?

A) ==
B) =
C) !=
D) >=

Answer: B

Explanation:
Single equal (=) is used to assign value to a variable.

Q6. Which operator is logical AND?

A) &
B) &&
C) ||
D) !

Answer: B

Explanation:
Logical AND (&&) returns true only if both conditions are true.

Q7. Which operator is logical OR?

A) &&
B) &
C) ||
D) !

Answer: C

Explanation:
Logical OR (||) returns true if at least one condition is true.

Q8. Which operator is logical NOT?

A) !
B) !=
C) &&
D) ||

Answer: A

Explanation:
Logical NOT (!) reverses the condition result.

Q9. Which operator is used for “not equal to”?

A) <>
B) !=
C) ==
D) =!

Answer: B

Explanation:
!= checks whether two values are not equal.

Q10. Which statement is used for multiple choices?

A) if
B) for
C) switch
D) while

Answer: C

Explanation:
switch statement is used when multiple conditions/options are present.

Q11. Which loop is called entry-controlled loop?

A) do-while
B) while
C) goto
D) break

Answer: B

Explanation:
while loop checks condition before entering the loop.

Q12. Which loop is called exit-controlled loop?

A) while
B) for
C) do-while
D) if

Answer: C

Explanation:
do-while checks condition after executing the loop body once.

Q13. Which loop is best when number of iterations is known?

A) while
B) for
C) do-while
D) if

Answer: B

Explanation:
for loop is preferred when the number of repetitions is known.

Q14. Which keyword is used to stop a loop?

A) continue
B) stop
C) break
D) exit

Answer: C

Explanation:
break immediately terminates the loop.

Q15. Which keyword skips current iteration?

A) break
B) continue
C) return
D) goto

Answer: B

Explanation:
continue skips the current iteration and moves to the next one.

Q16. Result of 10 % 3 is:

A) 3
B) 1
C) 0
D) 10

Answer: B

Explanation:
10 divided by 3 leaves remainder 1.

Q17. Result of 10 / 2 is:

A) 2
B) 5
C) 10
D) 20

Answer: B

Explanation:
10 divided by 2 equals 5.

Q18. Which operator increases value by 1?

A) --
B) ++
C) +=
D) *=

Answer: B

Explanation:
Increment operator (++) increases the value by 1.

Q19. Which operator decreases value by 1?

A) ++
B) --
C) -=
D) /=

Answer: B

Explanation:
Decrement operator (--) decreases the value by 1.

Q20. Which statement is used for decision making?

A) if
B) for
C) while
D) printf

Answer: A

Explanation:
if statement is used to make decisions based on conditions.

Q21. Nested if means:

A) if inside if
B) for inside if
C) while inside for
D) switch inside while

Answer: A

Explanation:
Nested if means placing one if statement inside another.

Q22. Infinite loop means:

A) Loop runs once
B) Loop never executes
C) Loop runs forever
D) Loop gives syntax error

Answer: C

Explanation:
Infinite loop keeps running continuously if stop condition is missing.

Q23. Which operator has highest priority?

A) +
B) *
C) =
D) <

Answer: B

Explanation:
Multiplication (*) has higher precedence than addition (+).

Q24. Which symbol is used in switch case labels?

A) :
B) ;
C) ,
D) .

Answer: A

Explanation:
Colon (:) is used after each case label.

Q25. Default case in switch is:

A) Mandatory
B) Optional
C) Invalid
D) Used for loops only

Answer: B

Explanation:
default case is optional and runs if no case matches.

Q26. Which loop executes at least once?

A) while
B) for
C) do-while
D) switch

Answer: C

Explanation:
do-while executes first and checks condition later.

Q27. Bitwise AND operator is:

A) &&
B) &
C) ||
D) |

Answer: B

Explanation:
Single ampersand (&) performs bitwise AND operation.

Q28. Bitwise OR operator is:

A) ||
B) |
C) &
D) !

Answer: B

Explanation:
Single vertical bar (|) performs bitwise OR.

Q29. Ternary operator is represented by:

A) ?:
B) ==
C) &&
D) ++

Answer: A

Explanation:
Ternary operator (?:) is a short form of if-else.

Q30. Which loop condition is checked first?

A) while
B) do-while
C) both
D) none

Answer: A

Explanation:
while loop checks condition before executing the body.
Google AdSense Ad Placement Here 📢