MCQ
In Boolean logic, the AND operator gives TRUE only when:
Unit-2 Computational Thinking and Algorithms
A
At least one input is true
B
Both inputs are true
C
No input is true
D
Exactly one input is true
Explanation
AND gives TRUE only when both operands are true.
Related MCQs
The IF ... ELSE ... structure is used to:
Unit-2 Computational Thinking and Algorithms
View
Which type of problem involves finding out how many times something occurs?
Unit-2 Computational Thinking and Algorithms
View
What is the value of X after these statements: X = 5; X = X + 2; X = X * 2?
Unit-2 Computational Thinking and Algorithms
View
What is the result of NOT (FALSE)?
Unit-2 Computational Thinking and Algorithms
View
How many times will Hello be printed if the loop runs FOR count = 1 TO 4 and prints Hello each time?
Unit-2 Computational Thinking and Algorithms
View
Evaluate the expression: (5 > 3) AND (2 < 4).
Unit-2 Computational Thinking and Algorithms
View