Python 1 | 121 Coaching Online Coaching Digital Coaching

Online Quiz - Python

Take Quiz from our Quiz Bank - Based on Age Group - Earn by Excellence

1. What will be the output of the following code :

print type(type(int))

 
 
 
 

2. What is the output of the following code :

L = ['a','b','c','d']
print "".join(L)
 
 
 
 

3. What is the output of the following program :

y = 8
z = lambda x : x * y
print z(6)
 
 
 
 

4. What is called when a function is defined inside a class?

 
 
 
 

5. Which of the following is the use of id() function in python?

 
 
 
 

6. What is the output of the following code : print 9//2

 
 
 
 

7. Which function overloads the >> operator?

 
 
 
 

8. Which operator is overloaded by the or() function?

 
 
 
 

9. What is the output of the following program :

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

10. What is the output of the following program :print “Hello World”[::-1]

 
 
 
 

11. Given a function that does not return any value, what value is shown when executed at the shell?

 
 
 
 

12. Which module in Python supports regular expressions?

 
 
 
 

13. What is the output of the following program : print 0.1 + 0.2 == 0.3

 
 
 
 

14. Which of the following is not a complex number?

 
 
 
 

15. What does ~~~~~~5 evaluate to?

 
 
 
 

16. What is the output of the following program :print ‘{0:-2%}’.format(1.0 / 3)

 
 
 
 

17. Which operator is right-associative

 
 
 
 

18. Which function can be used on the file to display a dialog for saving a file?

 
 
 
 

19. What will be the output of the following Python statement?

>>>"a"+"bc"
 
 
 
 

20. What will be the output of the following Python statement?

>>>"abcd"[2:]
 
 
 
 

21. The output of executing string.ascii_letters can also be achieved by:

 
 
 
 

22. What arithmetic operators cannot be used with strings?

 
 
 
 

23. What will be the output of the following Python code?

>>>print (r"\nhello")
 
 
 
 

24. What will be the output of the following Python statement?

>>>print('new' 'line')
 
 
 
 

25. What will be the output of the following Python code?

>>>max("what are you")
 
 
 
 

Question 1 of 25

  • You can appear only once for each Quiz 
  • Your First appearance result will be considered & complete within time
  • Once you score Above 20 out of 25, you get Online Voucher for Rs. 250*
  • Once you score Above 10 out of 25, you get Online Voucher for Rs. 100*
  • Once you score Above 5 out of 25, you get Online Voucher for Rs. 50*
  • Your Coupon Code will be provided at end of Quiz, once you succeed
  • Beware of Negative Marks while answering without confidence
  • We recommend Participants to Register & Login for Track Back Performance
  • If you plan to reappear,  delete cookies (Ctrl + Shift + Delete) Keys from your computer
Become an Online Tutor - Earn Rs. 300 to Rs. 1,000 Per Hour - Daily Payment - Utilize your Free Time - Apply Now
Share us in your Social Media...
error: Content is protected !!