S.No | Question |
---|---|
1. | What is Python? |
2. | What are the key features of Python? |
3. | What are the different data types in Python? |
4. | is Python interpreted language? |
5. | What is type conversion in Python? |
6. | What are .py and .pyc files in Python. |
7. | What are the different types of operators in Python? |
8. | What is the difference between is and == operators in Python? |
9. | Explain Break, Continue and Pass Statement. |
10. | What is type conversion in Python? |
11. | What is slicing in Python? |
12. | How do you convert a string to uppercase in Python? |
13. | How will you capitalize the first letter of string? |
14. | How do you convert a string to an integer in Python? |
15. | How do you reverse a string in Python? |
16. | How do you remove whitespace from the beginning and end of a string in Python? |
17. | How do you split a string into a list of substrings in Python? |
18. | What are functions in Python? |
19. | What is a decorator in Python? |
20. | Explain the concept of a lambda function in Python. |
21. | How do you handle exceptions in Python? |
22. | What is the difference between __str__ and __repr__ methods? | 23. | What is the difference between a local and a global variable in Python? | 24. | Explain the concept of a module and a package in Python. |
25. | What does *args and **kwargs mean? expain. |
26. | What are Python packages? |
27. | How do you create a dictionary from two lists in Python? |
28. | How do you remove duplicate elements from a list in Python? |
29. | What is the difference between a list and a tuple in Python? |
30. | How do you find the maximum and minimum values in a list in Python? |
31. | How do you concatenate two lists in Python? |
32. | What is the difference between a list and a dictionary in Python? |
33. | How do you count the occurrence of a specific element in a list in Python? |
34. | How do you check if a key exists in a dictionary in Python? |
35. | What is Inheritance In Python. |
36. | Explain the purpose of the __init__ method in a class. |
37. | What is the difference between instance, class, and static methods in Python? |
38. | Explain the purpose of the super() function in Python. |
39. | Explain the concept of method overloading in Python. |
40. | Explain the concept of multiple inheritance in Python. |
41. | Explain the purpose of the __del__ method in a class. |
42. | Explain the concept of method overriding in Python. |
43. | What is 'self' keyword in python? |
44. | Difference Between Abstration and Encapsulation. |
45. | What is Polymorphism in Python? |
46. | How do you check if a file exists in Python? |
47. | Different ways to read and write in a file in python? |
48. | How exception handled in Python. [Try, Except, Else And Finally Block] |
49. | Why do we use join() function in Python? |
50. | What are global, protected, and private attributes in Python? |
Office no.- 401,Shekhar Central Building ,Palasiya, Pin-code:452001, Indore
contact@codebetter.in
+91 88230 75444, +91 99939 28766