Python Full Stack Internship Interview Questions for Freshers (with Answers)
By K. Boopathikumar, CEO & Founder · 16 November 2026 · 8 min read
A Python full stack internship interview usually checks three things: whether your Python basics are solid, whether you understand how a web request travels from the browser to the database and back, and whether you have built something yourself.
These are the questions freshers are asked most often, with answers short enough to say aloud. Read them, then try answering in your own words without looking.
Core Python
- What is the difference between a list and a tuple? A list is mutable (you can change it after creating it); a tuple is immutable. Tuples are used for fixed groups of values and can be dictionary keys; lists cannot.
- What does a dictionary do, and how fast is a lookup? It maps keys to values using a hash table, so looking up a key takes about the same time no matter how big the dictionary is (average O(1)).
- What are *args and **kwargs? *args collects extra positional arguments into a tuple; **kwargs collects extra keyword arguments into a dictionary. They let a function accept a flexible number of inputs.
- What is a virtual environment and why use one? It is an isolated folder of packages for one project (python -m venv venv). It stops two projects needing different versions of the same library from breaking each other.
- How do you handle errors in Python? With try/except blocks, catching the specific exception you expect (for example ValueError), and using finally or a with block to always release files or connections.
Django and Flask
- What is the difference between Django and Flask? Django is a full framework with an ORM, admin panel, authentication and forms built in. Flask is a small core where you choose your own pieces. Django is faster for standard apps; Flask gives more control for small services.
- Explain Django's MVT pattern. The Model defines data and talks to the database, the View holds the logic for a request, and the Template renders the HTML. Django's URL config sends each request to the right view.
- What is a migration? A file that records a change to your models, such as a new field. Running migrate applies it to the database so the schema matches the code, and the history is kept in version control.
- How do you stop SQL injection in Django? Use the ORM or parameterised queries, never string-joined SQL. The ORM escapes values for you.
Databases, APIs and the front end
- What is a REST API? A way for programs to talk over HTTP using resources (URLs such as /students/12) and methods: GET reads, POST creates, PUT or PATCH updates, DELETE removes. Responses are usually JSON.
- What do status codes 200, 201, 400, 401, 404 and 500 mean? OK, created, bad request (client sent wrong data), unauthorised (not logged in), not found, and server error.
- What is the difference between a primary key and a foreign key? A primary key uniquely identifies a row in its own table; a foreign key in another table points to that primary key, linking the two.
- What is the N+1 query problem? Loading a list and then running one extra query per item. In Django you fix it with select_related (for foreign keys) or prefetch_related (for many-to-many).
- How does the front end call your Python API? JavaScript sends a request with fetch or axios, waits for the JSON response, and updates the page. CORS settings on the server decide which websites are allowed to call it.
How to answer well in the interview
- Answer in two parts: the definition in one sentence, then where you used it in your own project.
- If you do not know, say how you would find out (documentation, a small test). Guessing confidently is worse than an honest 'I would check'.
- Keep one project ready to explain end to end: the models, one API, how login works and how you deployed it.
- Practise writing small Python functions on paper or a plain editor; many interviews still ask you to code without autocomplete.
Next steps
- Study the free Python Full Stack learning path and take its module quizzes for a free certificate.
- Follow the Python Full Stack skill track from basic to advanced.
- Do real, reviewed work in a Python Full Stack internship and keep every project in your own GitHub.