1.
Python
Find the output of the following program:
nL = ['Harsh', 'Pratik', 'Bob', 'Dhruv']
pos = nL.index("edSlash")
print(pos * 3)Deselect Answer
2.
Python
Elements from a list in Python can be removed one-by-one by
3.
Python
Suppose a tuple, t, contains 10 elements. How can you set the 5th element of the tuple to 'Hello'?
4.
Python
Which of the following are true of Python lists?
5.
Python
Which collection is ordered, mutable and allows duplicate members?
6.
Python
Is list less secured than tuple? Why
7.
Python
What is the output of the following program :
8.
Python
Python is based on which type of Memory Allocation
9.
Python
What is output of following code −
10.
Python
Which of the following will be the output of the given print statement:
def fun(x):
x[0] = 5
return x
g = [10,11,12]
print (fun(g), g)
Deselect Answer
11.
Python
Which statement is used to tell Python to skip the rest of the statements in the current loop block and to continue to the next iteration of the loop?
12.
Python
In the Python statement x = a + 5 - b:
13.
Python
Which of these is not a core data type?
14.
Python
What command is used to insert 6 in a list ‘‘l’’ at 3rd position?
15.
Python
Which of the following are mutable?