technical interview questions for software engineering internships

Technical Interview Questions for Software Engineering Internships (with Answers)

By · Interview Prep Editorial

Published · Updated · 10 min read

Twelve technical questions software engineering interns are commonly asked, with short answers, plus the coding, project and behavioral questions and a three-week plan.

Quick answer: technical interviews for software engineering internships usually ask about data structures (arrays, linked lists, hash maps, stacks, queues, trees), Big O, one easy-to-medium coding problem, object-oriented basics, and sometimes SQL, Git and how the web works. You will also be asked about your projects and a few behavioral questions. Interviewers expect you to be learning, so a clear explanation of your thinking matters more than a perfect answer.

This guide gives twelve technical questions with short answers, then the coding patterns, project and behavioral questions students commonly report, and a three-week plan. It is written for students and new graduates applying to internships in the US, Canada, the UK and other countries.

How internship interviews usually work

Processes vary by company, so read each employer's careers page. As one example, Microsoft's student interviewing page describes an initial interview and, if you are selected, a final interview, with all interviews virtual and one-to-one conversations with breaks between them (checked 15 October 2026). It says to expect both behavioral and technical questions, and some roles ask for code or a portfolio.

Common stages elsewhere include:

1. An online assessment with one to three timed coding problems. Our online assessment guide covers these.

2. A recruiter or campus screen about your interests and availability.

3. One or two technical interviews, each with a coding problem and questions about your projects.

4. Sometimes a short behavioral interview with a manager.

What interviewers look for in students

1. Fundamentals: can you use arrays, strings, hash maps, and simple trees and recursion correctly?

2. Communication: do you explain your plan before coding and say what you are doing as you go?

3. Learning: when you get a hint, do you use it well?

4. Ownership: can you explain your projects, including the decisions you made yourself?

Nobody expects an intern to know everything. Saying "I have not used that, but here is how I would find out" is a fine answer.

Technical interview questions for software engineering internships, with answers

These are fundamentals questions that come up alongside the coding problem. Keep each answer to about thirty seconds and add an example from your own code where you can.

Q: What is the difference between an array and a linked list? A: An array stores items next to each other in memory, so reading item i takes constant time, but inserting in the middle means shifting everything after it. A linked list stores each item in a node that points to the next one, so inserting or removing a node you already hold is constant time, but reaching item i means walking the list from the start.

Q: How does a hash map work, and what is a collision? A: A hash function turns the key into a number, and that number picks a bucket where the value is stored. A collision is two different keys landing in the same bucket. Implementations handle it by keeping a small list in the bucket (chaining) or by probing for the next free slot. Lookups are constant time on average and linear in the worst case.

Q: What does O(n log n) mean, and where have you seen it? A: The work grows a little faster than the input size: doubling the input slightly more than doubles the time. Merge sort is the usual example, because it splits the list log n times and does n work at each level. The built-in sort in most languages is also O(n log n).

Q: What is the difference between a stack and a queue? A: A stack is last in, first out, like the undo history in an editor or the call stack of a program. A queue is first in, first out, like print jobs or the frontier in a breadth-first search.

Q: When would you use breadth-first search and when depth-first search? A: BFS visits nodes level by level with a queue and finds the shortest path in an unweighted graph. DFS follows one path as far as it goes, using recursion or a stack, and suits problems such as detecting a cycle, exploring every path or ordering tasks that depend on each other.

Q: What is recursion, and what is a base case? A: A recursive function solves a problem by calling itself on a smaller input. The base case is the input small enough to answer directly, and it is what stops the calls. Without one, the function keeps calling itself until the stack overflows.

Q: What is the difference between a class and an object, and what is polymorphism? A: A class is the definition; an object is one instance of it with its own data. Polymorphism means code written against a parent type or interface works with any subtype: a draw() call runs the circle version for a circle and the square version for a square.

Q: What is the difference between a process and a thread? A: A process is a running program with its own memory. Threads run inside a process and share its memory, which makes them cheaper to start and quicker to pass data between, but shared data needs locks or other coordination to stay correct.

Q: What is the difference between INNER JOIN and LEFT JOIN? A: INNER JOIN returns only rows that have a match in both tables. LEFT JOIN returns every row from the left table and fills the right-hand columns with NULL where there is no match. Use LEFT JOIN for questions such as "list all students, including those with no enrolments".

Q: What happens when you type a URL and press Enter? A: The browser looks up the domain in DNS to get an IP address, opens a TCP connection (with TLS for HTTPS), and sends an HTTP request. The server returns a response, usually HTML, and the browser parses it, requests the CSS, JavaScript and images it refers to, and renders the page. An intern-level answer covers those steps in order.

Q: What is the difference between git merge and git rebase? A: Merge joins two branches with a merge commit and keeps both histories as they happened. Rebase replays your commits on top of the other branch, which gives a straight history but rewrites your commits, so avoid rebasing a branch other people have already pulled.

Q: How would you test the function you just wrote? A: Run a normal case first, then edge cases: empty input, one element, duplicates, negative numbers or very large input, and input that is not valid. Walking through one case by hand, line by line, before saying "done" is what interviewers want to see.

Common coding questions

Internship coding problems are usually classic easy-to-medium problems. Practice these patterns:

1. Hash maps: find two numbers that add up to a target, or check whether two strings are anagrams.

2. Strings and stacks: check whether a string of brackets is balanced.

3. Two pointers: reverse a string in place, or merge two sorted arrays.

4. Linked lists: reverse a linked list, or detect a cycle.

5. Trees: find the maximum depth of a binary tree, or print it level by level.

6. Sorting and intervals: merge overlapping intervals.

For each problem, say the brute-force approach first, then improve it, and give the time and space complexity. Our LeetCode preparation guide lists more problems by pattern.

Questions about your projects

1. "Walk me through a project you are proud of."

2. "What was the hardest bug you fixed, and how did you find it?"

3. "Why did you choose that framework or database?"

4. "What would you change if you built it again?"

5. "How did you split the work in your team project?"

Pick two projects and prepare a two-minute walkthrough for each: the problem, your role, the technical decisions, one difficulty and the result. Interviewers often dig into one detail, so know your own code.

Behavioral questions for students

1. "Tell me about yourself."

2. "Tell me about a time you worked in a team that disagreed."

3. "Tell me about a time you had to learn something quickly."

4. "Tell me about a time you missed a deadline or made a mistake."

5. "Why do you want to intern here?"

Answer with the STAR method (Situation, Task, Action, Result), using class projects, hackathons, clubs or part-time jobs. Our STAR method guide has full examples.

Sample "Tell me about yourself": "I'm a third-year computer science student. I've enjoyed backend work most, and last summer I built an API for a campus food bank that now tracks donations for two locations. I'm comfortable in Python and Java and I'm learning cloud basics. I'm applying here because I want to see how a large team ships and runs software, and your developer tools team works on exactly the problems I enjoyed in that project."

A three-week plan

1. Week 1: review arrays, strings, hash maps and Big O. Solve one or two easy problems a day, talking through each one out loud.

2. Week 2: linked lists, stacks, trees and recursion. Move up to medium problems and time yourself.

3. Week 3: prepare two project walkthroughs and five STAR stories, research each company, prepare questions to ask, and do at least two mock interviews.

Need questions for the end? See our list of questions to ask at the end of an interview.

How CrackInterviewAI helps you practice

CrackInterviewAI is a Windows 10/11 app that turns a spoken, typed or screenshot question into a short answer outline, using your resume, target role and job description as context. New accounts get 30 free minutes; after that, international prices start at $3.99 for one hour, with no subscription or auto-renewal (USD plans).

Students can add a resume and the internship description, then practice project walkthroughs and behavioral questions out loud, or paste a practice problem to compare an outline with their own approach. Use a free mock interview to rehearse. Online assessments and interviews usually prohibit outside help, so keep these tools for preparation unless the employer says otherwise.

Get ready for your internship interviews

Download CrackInterviewAI for Windows and use your 30 free minutes to practice project walkthroughs and behavioral answers.

Download for Windows · See USD plans from $3.99

Frequently asked questions

What technical questions are asked in a software engineering internship interview?

Mostly fundamentals: arrays, linked lists, hash maps, stacks, queues and trees, Big O, recursion, object-oriented basics, one easy-to-medium coding problem, and sometimes SQL joins, Git and how a web request works. Questions about your own projects usually take up part of the same interview.

Are internship coding interviews easier than full-time ones?

Usually, yes. Most internship problems are easy to medium and focus on fundamentals, but you still need to explain your approach clearly and test your code.

What if I have no internship experience yet?

Use class projects, hackathons, personal projects, clubs and part-time jobs. Interviewers care about what you built and how you worked, not whether it was paid.

Which programming language should I use?

Use the language you know best unless the company asks for a specific one. Python and Java are common choices because they are quick to write and widely understood.

How many practice problems should I solve?

There is no magic number. Covering each common pattern and being able to explain your solutions out loud matters more than a high count.

Do internship interviews include behavioral questions?

Yes. Most include at least a few, often "Tell me about yourself", a teamwork story and why you want the internship. Prepare them as carefully as the coding.

Keep exploring

Return to the CrackInterviewAI homepage to download the Windows app, or browse all guides on the interview prep blog.

Related guides