Welcome to your Python Fundamentals Quiz.

You have 10 minutes to complete this quiz of 15 questions.
After successful submission, you will receive the results at your registered email address below. For further queries, you can contact us through our Contact Us Page.

Thank you.

1. 
What is output of following code −

a = (1, 2)
a[0] +=1

2. 
What command is used to insert 6 in a list ‘‘l’’ at 3rd position?

Add description here!

3. 
In the Python statement x = a + 5 - b:

a and b are ________
a + 5 - b is ________

4. 
Which of the following are true of Python lists?

Multiple may be correct

5. 
Elements from a list in Python can be removed one-by-one by

6. 
Which of the following are mutable?

Multiple may be correct.

7. 
Is list less secured than tuple? Why

8. 
Python is based on which type of Memory Allocation

9. 
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?

10. 
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)

11. 
Which collection is ordered, mutable and allows duplicate members?

12. 
What is the output of the following program :

i = 0
while i <3:
       print(i)
       i ++
       print(i+1)

13. 
Which of these is not a core data type?

14. 
Find the output of the following program:

nL = ['Harsh', 'Pratik', 'Bob', 'Dhruv']
pos = nL.index("edSlash")
print(pos * 3)

15. 
Suppose a tuple, t, contains 10 elements. How can you set the 5th element of the tuple to 'Hello'?