Page 130 - TechPluse_C7_Flipbook
P. 130

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

                             a.   Addition                               c.  Multiplication

                             b.  Exponential                             d.  Parentheses

                        4.   Which of the following is true?

                             a.   Comments are for programmers for better understanding of the program.

                             b.  Python Interpreter ignores comments.
                             c.   You can write multi-line comments in Python using triple quotes, either ‘’’ or “””

                             d.  All of the above

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

                             a.   //                                     c.  ‘’

                             b.  /**/                                    d.  #

                  B.    Fill in the blanks using the words given below:
                                           Hints


                                               String, Guido van Rossum, false, input( ), Assignment


                        1.   Python was developed by .........................

                        2.     The ........................ operators are used to assign the value of the right expression to the left
                             operand.

                        3.   A ........................ value is a collection of one or more characters put in single or double quotes.

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


                  C.    Write 'T' for true and 'F' for false.

                        1.     The print() function allows to display output on the screen while a
                             program executes.                                                             ........................

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

                        4.   A variable can hold different types of values.                                ........................

                        5.   Comments are the most helpful part of any program.                            ........................







               128      Premium Edition-VII
   125   126   127   128   129   130   131   132   133   134   135