[go: up one dir, main page]

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

Python Viva Questions

Python is a versatile, high-level programming language used in various applications such as web development, machine learning, and scientific computing. It is open-source, promotes readability, and features built-in data structures and functions. Key concepts include literals, control flow statements, decorators, and the Django framework, with Python 3 being the latest version offering improvements over Python 2.

Uploaded by

uppulurisatya16
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)
11 views2 pages

Python Viva Questions

Python is a versatile, high-level programming language used in various applications such as web development, machine learning, and scientific computing. It is open-source, promotes readability, and features built-in data structures and functions. Key concepts include literals, control flow statements, decorators, and the Django framework, with Python 3 being the latest version offering improvements over Python 2.

Uploaded by

uppulurisatya16
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
You are on page 1/ 2

**Python Programming Language Overview**

**1. Introduction to Python**


- Python is a general-purpose, high-level programming language that is object-oriented and
can run on various platforms such as Windows, Linux, and Unix. It is open-source and free
to use .

**2. Applications of Python**


- Python is widely used in:
- Web and Internet development
- Game development
- Machine learning
- Scientific and computational applications
- Enterprise and business application development .

**3. Advantages of Python**


- Python is an interpreted language, meaning it runs directly from the source code.
- It is free and open-source, extensible, and provides robust data structures.
- Python promotes readability and is a high-level language that supports cross-platform
development .

**4. Python Literals**


- Literals in Python are data values that can be defined as:
- String literals
- Numerical literals
- Boolean literals
- Special literals .

**5. Python Functions**


- Functions in Python are blocks of code designed to perform specific tasks. There are three
types of functions:
- Built-in functions (e.g., `len`, `count`)
- User-defined functions
- Anonymous functions (lambda functions) .

**6. Function Parameters and Passing Mechanisms**


- Python supports two parameter passing mechanisms:
- Pass by reference
- Pass by value .

**7. Control Flow Statements**


- The `break` statement is used to terminate a loop prematurely .

**8. Data Structures**


- Python includes built-in data types such as tuples, which are collections of ordered values .

**9. Operators in Python**


- Operators are symbols that perform operations on variables and values. Python includes
various types of operators:
- Arithmetic operators
- Relational operators
- Assignment operators
- Logical operators .

**10. Python as an Interpreted Language**


- Python programs are executed directly from the source code, making it an interpreted
language .

**11. Decorators in Python**


- Decorators are powerful tools in Python that allow the addition of functionality to existing
code .

**12. Python Modules**


- A module in Python is a file that contains Python code, which can be imported and reused
in other Python programs .

**13. Django Framework**


- Django is a high-level Python web framework that encourages rapid development and
clean, pragmatic design. It provides session management to store and retrieve data for
visitors .

**14. Differences Between Python 2 and Python 3**


- Python 3 is the latest version, offering new features and improvements over Python 2,
which is now considered legacy .

**15. Type Conversion in Python**


- Type conversion refers to changing the data type of a variable to another type .

This structured summary provides a comprehensive overview of Python programming, its


applications, and key concepts, making it a useful study note.

You might also like