Page 64 - CloudGPT_C7_Flipbook
P. 64
2. If both the expressions are true, which operator gives true as a result?
a. AND b. OR
c. NOT d. If-else
3. Which operator gives true as a result and is used if the statement evaluates true only if one
of the expressions is true?
a. AND b. NOT
c. OR d. If-else
4. Which of the following operator is used to reverse a condition?
a. NOT b. OR
c. AND d. If-else
5. Which of the following symbol is used to represent AND operator?
a. && b. ||
c. ! d. **
B. State whether the following statements are true (T) or false (F).
1. Logical operators are the used to build a decision-making capability in the code.
2. Logical operators are of four types.
3. And operator returns true if all the conditions are true.
4. OR operator returns true even if one of the condition is true.
5. Not operator returns true if the condition is true.
C. Fill in the blanks.
HELP BOX = =, <, true, nesting, AND
1. Relational operator returns 1, if the value is ........................... .
2. ........................... relational operator means equal to.
3. ........................... operator is used to check if two or more conditions are true.
4. If there is another if-else construct within the if block or the else block, this is called
........................... .
5. ........................... operator checks if the value of the left operand is less than the value of the
right operand.
62 Premium Edition-VII

