Q11medium
Which logical gate/operator returns TRUE only if exactly one of its inputs is true, and the other is false?
Topic-wise practice questions for Problem Solving & Analytical Skills. Test your knowledge, check solutions on demand, and pace your preparation.
A = True
B = False
C = True
Result = (A OR B) AND (NOT C)
print(Result)
What will be the output?
NOT (Age > 18 AND Is_Citizen == True)?
count = 0
if (True OR False) { count = count + 1 }
if (True AND False) { count = count + 1 }
if (NOT False) { count = count + 1 }
if (x >= 10 OR x <= 20) { ... }
A = 10
B = 20
Result = (A < B) XOR (B == 20)
print(Result)
isValid = False
if (NOT isValid) {
isValid = NOT isValid
}
print(isValid)