Page 53 - PYTHON-11
P. 53

9.  Which of the following memory is the fastest?                                              [1]
                (a)  Hard Disk            (b)  RAM                (c)  Cache              (d)  Pen Drive
           Ans.  (c)  Cache
            10.  What will be the output of the following expression?                                       [1]

               print(2 ** 3 ** 2)
                (a)  64                   (b)  512                (c)  36                 (d)  256

           Ans.  (b)  512
            11.  Which of the following is not a type of cybercrime?                                        [1]
                (a)  Phishing             (b)  Online auction fraud   (c)  Plagiarism     (d)  Firewall
          Ans.  (d)  Firewall
            12.  What will be the output of the following code?                                              [1]

               from math import sqrt
               print(sqrt(169))
                (a)  12.98                (b)  13                 (c)  13.0               (d)  12

           Ans.  (c)  13.0
            13.  Which of the following is the correct way to create a tuple in Python?                     [1]
                (a)  my_tuple = [1, 2, 3]                  (b)  my_tuple = (1, 2, 3)
                (c)  my_tuple = {1, 2, 3}                  (d)  my_tuple = <1, 2, 3>

           Ans.  (b)  my_tuple = (1, 2, 3)
            14.  Which of the following symbols is used for exponentiation in Python?                       [1]
                (a)  ^                    (b)  **                 (c)  %                  (d)  //

           Ans.  (b)  **
            15.  Select the correct output of the following code.                                           [1]

               str1 = "Digital India"
               print(str1[2:8])
                (a)  igital I             (b)  gital              (c)  gital In           (d)  igital

           Ans.  (b)  gital
            16.  Which of the following is not covered under the IT Act?                                    [1]
                (a)  Electronic governance   (b)  Cybercrimes     (c)  Use of e-signatures   (d)  Offline robbery
           Ans.  (d)  Offline robbery
            17.  A passive digital footprint is created when:                                               [1]
                (a)  You post online                       (b)  Sites track your visits
                (c)  You send an email                     (d)  You comment on a video
           Ans.  (b)  Sites track your visits
            18.  Select the correct output of the following code.                                           [1]

               d = {1: "A", 2: "B"}
               print(d.get(3, "Not Found"))
                (a)  None                 (b)  3                  (c)  Not Found          (d)  Error

           Ans.  (c)  Not Found
            19.  Observe the following code and select the correct output.                                  [1]

               t = (1, 2, 3, 4)
               print(t.count(1) + t.index(4))
                (a)  4                    (b)  5                  (c)  3                  (d)  Error

           Ans.  (a)  4


                                                           M.2
   48   49   50   51   52   53   54   55   56   57   58