Page 117 - Plus_V2.2_C6_Flipbook
P. 117

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


                     Let's soLve                                                                       Critical Thinking

                     What will be the output of the following programs?








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