Logical Reasoning Fundamentals MCQs

Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q11medium
Which logical gate/operator returns TRUE only if exactly one of its inputs is true, and the other is false?
Q12hard
(Code Output) Consider the following pseudocode:

A = True
B = False
C = True
Result = (A OR B) AND (NOT C)
print(Result)
What will be the output?
Q13medium
(Code Error / Debugging) A developer writes: if (status == "Admin" OR "Moderator"). Why will this cause a logical error in many languages?
Q14medium
(Calculation/Math) By applying De Morgan's Law, how can you rewrite the condition

NOT (Age > 18 AND Is_Citizen == True)?
Q15medium
(Code Error / Debugging) You want a loop to continue running as long as the user has NOT pressed the "Exit" key (which sets exitKey = True) AND the timer is greater than zero. Which is the correct WHILE condition?
Q16hard
(Code Output) What will be the final value of count?

count = 0
if (True OR False) { count = count + 1 }
if (True AND False) { count = count + 1 }
if (NOT False) { count = count + 1 }
Q17hard
(Code Error / Debugging) A developer wants to execute code only if x is between 10 and 20 (inclusive). Find the error in this pseudocode:

if (x >= 10 OR x <= 20) { ... }
Q18hard
(Code Output)

A = 10
B = 20
Result = (A < B) XOR (B == 20)
print(Result)
Q19hard
(Code Output) Look at this logic chain:

isValid = False
if (NOT isValid) {
    isValid = NOT isValid
}
print(isValid)
Q20medium
A hospital software allows access to patient records if the user is a "Doctor" OR if the user is a "Nurse" AND the "Shift is Active". If a Nurse tries to log in while their shift is NOT active, what happens?