WorksheetsTekie-LogicalOperators
Total questions: 21
Worksheet time: 16mins
What will be the output of the following code?
False
True
None of the above
Can you guess the output of the following code correctly?
False
True
None of the above
What is the output of the following code ?
None of the above
False
True
What output will the following output generate?
None of the above
False
True
Rani wrote this code.Now she is wondering what will be the output?Can you help her ?
False
True
None of the Above
Which operator returns True as an output if One or More Expressions are True?
And operator
Or operator
Not operator
Of operator
Which amongst the following is True about And operator?
And operator returns True only if all the conditions are True.
And operator returns False if all the conditions are True
And operator returns True if any one of the condition is True
And operator returns True only if none of the conditions are True.
Predict the output of the following code:?
True
False
5<6 and 3>=4
None of the above
Which amongst the following blocks will return true only if all the Expressions are True?
What should be in the blank to make the output as true?
False
True
None of the above
Which operator will evaluate to True if both sides are True and False otherwise?
and
or
not
in
Which operator will evaluate to True if either side is True and False otherwise?
and
or
not
in
Which operator will negate the value of the Boolean expression after it?
and
or
not
in
If the "num" variable has value 5, is this expression True or False?
num < 0 and num > 10
True
False
If the "num" variable has value 0, is this expression True or False?
num < 0 and num > 10
True
False
If the "num" variable has value 5, is this expression True or False?
num > 0 and num < 10
True
False
If the "num" variable has value 0, is this expression True or False?
num > 0 and num < 10
True
False
If the "num" variable has value 0, is this expression True or False?
num > 0 or num < 10
True
False
If the "num" variable has value 5, is this expression True or False?
num > 0 or num < 10
True
False
If the "num" variable has value 5, is this expression True or False?
num < 0 or num > 10
True
False
If the "num" variable has value 0, is this expression True or False?
num < 0 or num > 10
True
False
