Page 116 - 2626_South Point_C-6
P. 116

test Your skiLLs


                  1.  Tick ( ) the correct option.

                     a.   What will be the output of the following expression?
                        22 % 3

                        (i)  7                                          (ii)  1
                        (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.                             ____________






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