Page 144 - Computer Science Class 11 Without Functions
P. 144

10.  Which of the following functions yields the unique object identifier of an object?
              a.  identifier()         b. id()                c. object()            d. uniqueid()
          11.  By default,   the function input() accepts a values as a ____________.
              a.  integer              b. float               c. list                d. string
          12.  While using print() to print multiple values,   which of the following is used as the default separator character?
              a.  Space                b. Hyphen              c. Newline             d. Tab
          13.  While using print(),   we use ___________ clause to terminate the output with a tab(\t).
              a.  print                b. sep                 c. end                 d. newline
          14.  Which of the following is the correct method to assign values to multiple variables?
              a.  a = b = c,   10      b. a,   b,   c = 10    c. a,   b,   c = 5,   10,   20   d. a b c  =  5 10 20
          15.  What will be the output produced on the execution of the following code segment?
              x,   y = 10,   20
              x,   y = y,   x
              print(x,   y,   sep='*')
              a. 10*20                 b. 20*10               c. 1020*               d. *1020
          16.  Which of the following is NOT a built-in function?
              a.  input()              b. max()               c. sin()               d. eval()
          17.  What value does max(4,   20,   -20,   -35,   -4,   35) yield?
              a.  35                   b. -35                 c. 4                   d. -4
          18.  What will be the output produced on evaluating the following expression?
              divmod(39, 5)
              a.  (4,  7)              b. (7,   4)            c. (7.0,   4.0)        d. (4.0,  7.0)
          19.  What will be the output produced on evaluating the following expression?
              int(123.987)
              a.  123                  b. 123.0               c. 124                 d. 124.0
          20.  Which of the following functions is used to display the description of a in-built function?
              a.  desc()               b. DESCRIBE()          c. help()              d. HELP()

          21.  What will be the output produced on evaluating the following expression?
              eval(50+75)
              a.  125                  b. '50+75'             c. Error               d. No Output

        B.  State whether the following statements are True or False:
           1.  The output produced by invoking the print() function multiple times, appears on separate lines (by default).    __________
           2.  The identifiers are case-insensitive.                                                   __________
           3.  Blank spaces within an identifier are allowed.                                          __________
           4.  In Python, the variables are created as soon as a value is assigned to them.            __________
           5.  Keywords can be used for naming identifiers in a Python program.                        __________
           6.  An operand should always have a constant value.                                         __________
           7.  The text beginning with a hash character is called a comment.                           __________
           8.  A variable has to be assigned a value before it is used in an expression.               __________
           9.  Python does not allow us to use multiple variables in a single assignment statement.    __________
          10.  Python considers user inputs as strings.                                                __________
          11.  In a Python program, a variable can refer to values of different data types at different times.   __________
          12.  In a Python program, a string can only be created by enclosing a set of characters in double quotes.   __________




         142   Touchpad Computer Science-XI
   139   140   141   142   143   144   145   146   147   148   149