Page 102 - Dig_CodeAI_V2.1_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 one of the operands is True.

                      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 false.
                      3.  Greater than (>) operator checks whether the value of the left operand is greater than
                         the value of the right operand.
                      4.  The if…elif…else ladder is not a conditional statement in Python.

                      5.   Data types are divided into three categories.

                  D.  Answer the following questions:
                      1.   What do you mean by Strings 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.  Float data type


                         b.  Boolean data type


                      6.  Distinguish between the following with the help of examples.
                         a.  AND operator and OR operator

                         b.  Modulus operator and Division operator




                      100    DigiCode AI (Ver. 2.1)-VII
   97   98   99   100   101   102   103   104   105   106   107