Class-11-Preview of Python Worksheet
Class-11-Preview of Python Worksheet
Name = “Python Examination” 53. Write the output of the following code:
print(Name[:8:-1]) t1 = [10, 12, 43, 39]
print(t1 * 3)
54. Given the list L = [1, 3, 6, 82, 5, 7, 11, 92], 63. Given the list L = [1, 30, 67, 86, 23, 15,
write the output of print(L[1:6]) 37, 131, 9232],
write the output of print(L[3:7])
55. Identify the valid declaration of L:
L = [‘Mon’, ‘23’, ‘hello’, ‘60.5’] 64. A list is declared as Lst = [1,2,3,4,5,6,8],
a) dictionary OR b) string OR c) tuple OR what will be the value of sum(Lst)?
d) list
65. Identify the valid declaration of L:
56. If the following code is executed, what L = (‘Mon’, ‘23’, ‘hello’, ‘60.5’)
will be the output? a) dictionary OR b) string OR c) tuple OR
d) list
name =
"ComputerSciencewithPython" 66. If the following code is executed, what
print(name[3:10]) will be the output?
76. Is there any difference between 1 or ‘1’ 90. Suppose a tuple T is declared as T =
in Python? (10, 12, 43, 39), which of the
following is incorrect?
77. Python does not support a character
91. Suppose a tuple T1 is declared as T1
type. (T/F)
= (10, 20, 30, 40, 50), which of
78. Write a code to create an empty string the following is incorrect?
'str1'. 92. Identify the data type of X: