Page 28 - 2501_KVS_C-7
P. 28

D.    Tick (ü) the correct option.

                        1.    Keywords are:
                             a. Reserve Words         b. Simple Text        c. Variables         d. None

                        2.    Which of the following is not a valid identifier?

                             a. Age                   b. aGe               c.   Age_             d. 1st_age

                        3.    Which data type represents a whole number?

                             a. String                b. Integer           c. Float              d. Boolean
                        4.    Which data type would the following be stored as: "Pizza"

                             a. Integer               b. String            c. Boolean            d. Float

                        5.    Which of the following is an integer?

                             a. 4                     b. 0.4               c. 4.0                d. c

                  E.    State whether these statements are true or false.
                        1.    Variable names can start with a digit.

                        2.    Only double quotes are used to declare a string.

                        3.    As per Python, amount and Amount are two distinct variables.

                        4.    Keywords are used to hold values.

                        5.    Annual.salary is a valid identifier.






                                Activity 2.3

                    1.      List  all  keywords  used  in  Python.  Use  the  following  command  to  get  a  list  of
                          keywords in Python.

                            >>>help ("keywords")

                    2.    Establish  a  relationship  between  keywords,  variables,  and  data  types  with  an
                          example.



                  2.5   PYTHON OPERATORS
                  In this section, you will learn how to perform different types of operations in Python using
                  operators. Operators are special symbols that are used to perform operations on operands.
                  An operator requires some operands to work upon. Operands may be variables or constants.

                  Operator: Operators are special symbols that are used to perform operations on operands.
                  The values that the operator operates on are called operands.



                26                         KVS DELHI REGION 2025
   23   24   25   26   27   28   29   30   31   32   33