Page 113 - Modular v1.1 Pyhton
P. 113
Test Sheet-2
(Based on chapters 6 to 10)
Section A
A. Tick ( ) the correct option.
1. Which operator is used to repeat the string for a given number of times?
a. String concatenation operator b. String replication operator
c. len( ) d. None of the above
2. Which of the following string function calculates and returns the length of a string supplied as
an argument?
a. len( ) b. lower( )
c. upper( ) d. capitalize( )
3. Which of the following indicates an empty list?
a. { } b. [ ]
c. ( ) d. <>
4. Which of the following method is used to add one element to the list?
a. append( ) b. extend( )
c. insert(x, a) d. remove( )
5. Which of the following statement is correct to declare a Tuple with one item?
a. tup1= (6,) b. tup1 = (46;)
c. tup1= (56:) d. All of the above
6. Which of the following does min( ) returns?
a. Largest item in the tuple. b. Number of items in the tuple.
c. Smallest item in the tuple. d. None of the above
7. In Python, a Dictionary can be created by placing sequence of elements within ……………………
braces.
a. { } b. [ ]
c. ( ) d. \\
8. Python Dictionary are defined into …………………… element(s).
a. Keys b. Values
c. Both keys and values d. None of the above
9. Who developed Android?
a. Google b. Playstore
c. Apple Inc. d. Microsoft
10. You can download an app from …………………… on an android.
a. App store b. Microsoft store
c. Play store d. All of the above
Test Sheet-2 111

