Q1.
Which of the following statement will create list?
a. L1=list( )
b. L1=[1,2,3,4]
c. Both of the above
d. None of the above
Q2.
Write the output of the following code :
list(“welcome”)
a. [‘w’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’]
b. (‘w’, ‘e’, ‘l’, ‘c’, ‘o’, ‘m’, ‘e’)
c. [‘welcome’]
d. None of the above
Q3.
Write the output of the following code :
>>> L=[‘w’,’e’,’l’,’c’,’o’,’m’,’e’]
>>> print(len(L))
a. 7
b. 8
c. 9
d. None
Q4.
Write the output of the following code :
>>> L=[“Amit”,”Anita”,”Zee”,”Longest Word”]
>>> print(max(L))
a. Zee
b. Longest Word
c. Error
d. None of the above
Q5.
Write the output of the following code :
>>> L=[“Amit”,”Anita”,”Zee”,”Longest Word”,123]
>>> print(max(L))
a. Longest Word
b. Zee
c. Amit
d. Error