Page 116 - Plus_V2.2_C6_Flipbook
P. 116

test Your skiLLs


                        (iii)  0                                        (iv)  5

                     b.  The statement using AND operator results true if ______________.

                        (i)  both operands are true
                        (ii)  both operands are false

                        (iii) either of the operands is true
                        (iv) neither of the operands is true

                     c.  Which one of the following has the highest precedence in a logical expression?

                        (i)  Addition                                   (ii)  Multiplication
                        (iii)  Exponential                              (iv)  Parentheses

                     d.  Which of the following is true?

                        (i)  Comments are for programmers for better understanding of the program.
                        (ii)  Python Interpreter ignores comments.

                        (iii) You can write multi-line comments in Python using triple quotes, either ‘’’ or “””.
                        (iv) All of these

                     e.  Which of the following symbol(s) is/are used for comments in Python?

                        (i)  //                                         (ii)  ‘’
                        (iii)  /**/                                     (iv)  #

                  2.  Write ‘T’ for True and ‘F’ for False.
                     a.   The print() function allows to display output on the screen while a
                        program executes.                                                               ____________

                     b.   Assignment operators are used to perform arithmetic operations between
                        two operands.                                                                   ____________
                     c.   The relational operators are used primarily in the expression evaluation to
                        make a decision.                                                                ____________

                     d.  A variable can hold different types of values.                                 ____________
                     e.  Comments are the most helpful part of any program.                             ____________
                  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




                  114   Premium Edition-VI
   111   112   113   114   115   116   117   118   119   120   121