Detailed Python Full Stack Interview Questions &
Answers
1. Python Core
Q: What is the difference between list and tuple?
A: Lists are mutable (can be modified) whereas tuples are immutable. Lists use square brackets []
and tuples use parentheses (). Tuples are faster and more memory efficient.
Q: What is GIL in Python?
A: GIL (Global Interpreter Lock) ensures that only one thread executes Python bytecode at a time. It
improves memory management but limits true multithreading.
Q: Explain OOP principles.
A: Encapsulation: Wrapping data and methods together. Abstraction: Hiding internal details.
Inheritance: Reusing code from parent class. Polymorphism: Same method behaves differently.
2. Flask & Django
Q: What is Flask?
A: Flask is a lightweight Python web framework used to build web applications and APIs. It follows
WSGI and is highly flexible.
Q: What is Django MTV architecture?
A: Model: Database structure. View: Business logic. Template: UI layer. Django follows MTV
instead of MVC.
Q: Difference between Flask and Django?
A: Flask is lightweight and flexible, suitable for small projects. Django is full-featured with built-in
admin, authentication, and ORM.
3. API Development
Q: What is REST API?
A: REST is an architectural style for building APIs using HTTP methods.
Q: Explain HTTP methods.
A: GET: Retrieve data. POST: Create data. PUT: Update data. DELETE: Remove data.
Q: What is JWT?
A: JWT (JSON Web Token) is used for secure authentication between client and server.
4. Frontend
Q: What is the difference between HTML and HTML5?
A: HTML5 introduced semantic tags like , , , and multimedia support.
Q: What is React?
A: React is a JavaScript library used to build reusable UI components using a virtual DOM.
Q: What are props and state in React?
A: Props are read-only inputs passed to components. State is mutable data managed within the
component.
5. SQL & CRUD
Q: What are CRUD operations?
A: Create, Read, Update, Delete operations performed on database records.
Q: Explain JOIN types.
A: INNER JOIN returns matching rows. LEFT JOIN returns all left table rows. RIGHT JOIN returns
all right table rows.
Q: What is normalization?
A: Normalization organizes data to reduce redundancy and improve integrity.
6. Git & GitHub
Q: What is Git?
A: Git is a distributed version control system used to track changes in code.
Q: Difference between git pull and git fetch?
A: git fetch downloads changes without merging. git pull downloads and merges automatically.
Q: What is a branch?
A: A branch is a separate line of development used to work on features independently.
7. Project Discussion – Flask Student Management System
Q: Explain your project architecture.
A: The project contains templates folder for HTML files, static folder for CSS/JS, and [Link] for
routing and database logic.
Q: How did you implement CRUD?
A: Using Flask routes with GET and POST methods connected to SQLite database.
Q: How can you deploy this project?
A: Using Gunicorn as WSGI server and Nginx as reverse proxy on a Linux server.