Page 85 - 2501_KVS_C-7
P. 85

Exercise

                 A.  Answer the following questions:

                      1.    Operators are special symbols that are used to perform operations on operands. For
                            Example +,-,/,* are arithmetic operators.
                      2.    a. Operands: The values that the operator operates on are called operands.

                            b. Expression: Expression is combination of operators and operands.
                      3.    Relational operators are used to describe relationships between values or operands.
                      4.    Modulus operator is used to get remainder of a division operation. % symbol is used in
                            Python to represent modulus operator.

                      5.    Division operator (/) is used to get the division of two numbers, while floor division
                            operator (//) is used to get the integer portion of the quotient.
                            For example, 5/2 will return 2.5 whereas 5//2 will return 2.

                 B.  Fill in the blanks.

                      1. Operands     2. 0           3. Expression        4. Relational         5. 4
                 C.  Match the following:

                      1. c.       2. a.      3. b.          4. e.         5. d.

                 D.  Tick (ü) the correct option.

                       1. b       2. c        3. c          4. c          5. b

                 E.  State whether these statements are true or false.
                      1. False    2. True    3. True        4. True       5. False


                                                           Chapter 3



                 Check Your Knowledge (Page 32)

                 A.  Answer the following questions:
                      1.    To create and run a Python program, we need to do the following steps:

                            1.    To open an IDLE text editor to write a program
                            2.    Save your program with .py extension
                            3.    Compile and execute a program by pressing F5

                      2.    IDLE stands for Integrated Development Learning Environment. It allows programmers
                            to easily write, edit, compile and execute Python code.
                      3.    Function key (F5) is used to execute a Python program using IDLE.
                      4.    print() function is used to print the given message/variable value to the standard output
                            device i.e monitor.






                                                                          APPENDIX (Answers)                        83
   80   81   82   83   84   85   86   87   88   89   90