Page 6 - PYTHON-12
P. 6

14.  “Update command in MySQL is used to display unique values from a column.” (True or False)  (1)
             Ans.  False
              15.  Give full form of the following:                                                         (1)
                  (a)  VoIP
                  (b)  POP
             Ans.  (a)  VoIP: Voice over Internet Protocol
                  (b)  POP: Post Office Protocol
              16.  For a binary file, seek()method accepts:                                                 (1)
                  (a)  Exactly one parameter                (b)  Exactly two parameters
                  (c)  At most one parameter                (d)  At most two parameters
             Ans.  (b)  Exactly two parameters
            Q.17 and 18 are Assertion and Reasoning based questions. Mark the correct choice as:
              (a)  Both A and R are true and R is the correct explanation for A
              (b)  Both A and R are true but R is not the correct explanation for A
              (c)  A is True but R is False
              (d)  A is false but R is True

              17.  Assertion (A): [1, 2, 3] is an invalid key for a dictionary in Python.
                 Reason (R): Only numbers and strings can be the keys of a dictionary in Python.            (1)
             Ans.  (c)  A is True but R is False
              18.  Assertion (A): CSV (Comma Separated Values) is a file format for data storage which looks like a text file.
                 Reason (R): The information is organized with one record on each line and each field is separated by
                 semicolon.                                                                                 (1)
             Ans.  (c)  A is True but R is False

                                                         Section B
              19.  (a)  Name the fastest wired and wireless medium of communication.                    (1+1=2)
                  (b)  Write the full form of:
                      (i)  Wi-Fi
                      (ii)  RJ45
             Ans.  (a)  Optic fibre, Satellite
                  (b)  (i)  Wireless Fidelity
                      (ii)  Registered Jack 45
              20.  Rewrite the following code in Python after removing all the error(s). Underline each correction done in the
                 code.                                                                                      (2)

                 def Sum(Count)
                    S=0
                     for I in Range(1,Count+1):
                    S+=I
                    RETURN S
                 print(Sum[2])
                 print(Sum[5])
             Ans.  Corrected code:
                 def Sum(Count):
                    S=0
                      for I in range(1,Count+1):
                      S+=I
                    return S
                    print(Sum(2))
                    print(Sum(5))

            Appendices                                                                                     A.31
   1   2   3   4   5   6   7   8   9   10   11