Page 117 - 2626_South Point_C-6
P. 117

3.  Fill in the blanks using the words given in the help box.

                                         string, Guido van Rossum, false, input( ), assignment

                    a.  Python was developed by ____________.

                    b.   The ____________ operators are used to assign the value of the right expression to the left
                       operand.
                    c.   A ____________ value is a collection of one or more characters put in single or double quotes.

                    d.  The ____________ function allows to take user’s input while a program executes.
                    e.  Logical OR operator returns ____________, if both operands are false.

                 4.  Short answer type questions.
                    a.  What do you mean by expression ‘a = 8’?
                         ______________________________________________________________________________

                    b.  What is the use of variables in Python?
                         ______________________________________________________________________________

                    c.  Define the term data types.
                         ______________________________________________________________________________
                    d.  What is operator precedence?
                         ______________________________________________________________________________

                    e.  What does IDLE stands for?
                         ______________________________________________________________________________

                 5.  Long answer type questions.

                    a.  List the relational operators used in Python with the help of an example.
                    b.   What is the use of comments in programming? How many types of comments are there in
                       Python?

                    c.  Define modes of Python IDLE.
                    d.  Define the following.

                       (i)  Arithmetic Operators

                       (ii)  Comment in Python
                       (iii)  Data Type

                       (iv)  Variable
                       (v)  Logical Operators

                    e.  Distinguish between the following with the help of examples.
                       (i)  AND operator and OR operator

                       (ii)  Modulus operator and Division operator

                       (iii) Single-line comment and Multiple-line comment



                                                                                        Introduction to Programming  115
   112   113   114   115   116   117   118   119   120   121   122