0% found this document useful (0 votes)
2 views2 pages

Python Viva Advanced

The document provides a concise overview of Python, highlighting its characteristics as a high-level, interpreted programming language with features such as easy syntax and object-oriented programming. It covers fundamental concepts including variables, data types, functions, loops, and exception handling, as well as advanced topics like recursion, slicing, and virtual environments. Additionally, it mentions tools and conventions like pip and PEP 8 for package management and coding style.

Uploaded by

Prince Chandel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Python Viva Advanced

The document provides a concise overview of Python, highlighting its characteristics as a high-level, interpreted programming language with features such as easy syntax and object-oriented programming. It covers fundamental concepts including variables, data types, functions, loops, and exception handling, as well as advanced topics like recursion, slicing, and virtual environments. Additionally, it mentions tools and conventions like pip and PEP 8 for package management and coding style.

Uploaded by

Prince Chandel
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. What is Python?

Python is a high-level, interpreted programming language.

2. Why is Python interpreted?


Because code executes line by line.

3. Features of Python?
Easy syntax, OOP, portable, interpreted.

4. What is variable?
Stores data.

5. Data types?
int, float, str, list, tuple, dict.

6. List vs Tuple?
List mutable, Tuple immutable.

7. Dictionary?
Key-value pairs.

8. Function?
Reusable code block.

9. Loop?
Repeats code.

10. If-else?
Decision making.

11. OOP?
Object-based programming.

12. Class?
Blueprint.

13. Object?
Instance.

14. Constructor?
__init__ method.

15. Inheritance?
Reuse properties.

16. File handling?


Read/write files.

17. Exception handling?


Handle errors.

18. Indentation?
Defines block.

19. Dynamic typing?


Type auto assigned.

20. Input/output?
input(), print()
21. Break/Continue?
Stop/skip loop.

22. Keywords?
Reserved words.

23. Modules?
Predefined code libraries.

24. What is pip?


Package manager.

25. What is lambda?


Anonymous function.

26. What is recursion?


Function calling itself.

27. What is slicing?


Access part of sequence.

28. What is len()?


Returns length.

29. What is range()?


Generates sequence.

30. What is map()?


Applies function to items.

31. What is filter()?


Filters items.

32. What is *args?


Multiple arguments.

33. What is **kwargs?


Keyword arguments.

34. What is pass?


Null statement.

35. What is global keyword?


Access global variable.

36. What is local variable?


Defined inside function.

37. What is docstring?


Function description.

38. What is __name__?


Special variable.

39. What is virtualenv?


Separate environment.

40. What is PEP 8?


Coding style guide.

You might also like