1.
In Python, which of the following is not a correct way to initialize a list?
2.
In Python, which of the following statements converts a given string into a pattern object?
3.
What is the output of the following Python code:
s = ","
seq = ("Hi", "Hello")
print(s.join(seq))
4.
What is the output of the following Python code:
str = "javaavaj"
print(max(str))
5.
What is the output of the following Python code:
list1 = [1, 2, 3, ]
list2 = ["a", "b", "c", ]
print(list1 + list2)
6.
What is the output of the following Python code snippet:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
list3 = list1 + list2
print(list3)
7.
What is the output of the following Python code:
lis = ["a", "b", "c"]
del lis[2]
print(lis)
8.
What is the output of the following Python code:
tup = (1, 2, 3, 4, 'a')
print(list(tup))
9.
What is the output of the following Python 3 code:
list = ['zyx', 'xyz', 1, 5, 6, "7a"]
list.sort()
print(list)
10.
What is the output of the following Python code:
tup = ('zyx', 'xyz', 2, 3, 4, 5, 'a', 'b')
tup[2] = 'x'
print(tup)