Page 102 - Digicode_AI_class_7
P. 102
B. Fill in the blanks using the words given below.
false operators assignment else true
1. The operators are used to assign the value of the right expression to the left
operand.
2. are special symbols which perform arithmetic and logical computation.
3. Logical OR operator returns if both operands are false.
4. Decision statements may give the results true or .
5. The block will be executed if and only if the provided condition evaluates to false.
C. State whether these statements are true or false.
1. Assignment operators are used to perform arithmetic operations.
2. The and operator returns true, if both operands are true.
3. The if…else statement is the simplest conditional statement.
4. The if…elif…else ladder not a conditional statement in Python.
5. The if statement executes a command if the provided condition evaluates to true.
D. Answer the following questions:
1. What is the use of variables in Python?
2. Define the term data types.
3. List the relational operators used in Python with the help of an example.
4. What is the use of comments in programming? How many types of comments are there in Python?
5. Define the following:
a. Variable
b. Logical Operators
6. Distinguish between the following with the help of examples.
a. AND operator and OR operator
100 DigiCode AI-VII

