Software developer interview questions and answers
Software developer interview questions in Tunisia: OOP, SQL, Git, REST APIs, algorithms, live coding, your final-year project and HR, with good answers.
- 12 min read
- 10 sections
On this page
- 01 How developer hiring runs in Tunisia
- 02 The HR questions in a developer interview
- 03 Questions about your final-year project and your projects
- 04 Technical questions: object-oriented programming
- 05 Technical questions: databases and SQL
- 06 Technical questions: Git, REST APIs and your framework
- 07 Algorithms and live coding
- 08 The English part
- 09 The mistakes that cost the interview
- 10 Practise out loud
In short
A software developer interview in Tunisia almost always combines an HR part and a technical part: an online test or live coding, questions on object-oriented programming, SQL, Git, REST APIs, your framework and algorithm complexity, and a deep discussion of your final-year project, often partly in English. The panel grades your reasoning more than the right answer: think out loud, give a concrete example, admit what you do not know and say how you would find it.
A developer interview is not a standard HR interview with a few technical questions added on. It is often two interviews in one: a part that checks you are someone people can work with, and a part that checks you can actually code. Both count, and many good developers fail the first because they only prepared the second.
This guide collects the questions a developer candidate meets in Tunisia, what each one tests, and what a good answer contains. The technical answers are deliberately short: the goal is not to relearn a course, but to know what the panel expects to hear.
How developer hiring runs in Tunisia
The format depends heavily on the type of employer.
IT services firms (SSII / ESN) and offshore companies work for foreign clients, often in France or elsewhere in Europe. The process is structured: an HR interview, a technical test, a technical interview with a lead or senior developer, and sometimes an interview with the end client itself. French is the usual working language, English is frequently checked, and your ability to talk to a client counts almost as much as your code.
Startups move faster and more directly. Often one long interview with a founder or the technical lead, a practical exercise done at home or live, and questions about what you have really built. They are looking for someone autonomous who can touch several things.
Large companies and banks sometimes add broader written tests, and put more weight on the degree and on stability.
The technical test usually takes one of these forms:
A timed online test, with a few algorithm exercises and multiple-choice questions on a language or SQL.
A take-home exercise, for example a small API or a small application, due within a few days.
Live coding, where you write code in front of the examiner, by screen share or on a whiteboard. It is the most feared part, and the easiest to improve with practice.
For the overall sequence, see the steps of the recruitment process.
The HR questions in a developer interview
They resemble the most common interview questions, with a flavour specific to the job.
"Tell me about yourself."
What is tested: your ability to summarise a technical background without reciting your CV. In ninety seconds the panel wants to know which technologies you really master, what you have worked on, and why you are here.
I am a computer engineer, I graduated this year. For my final-year project I built a booking management web application with Spring Boot and Angular, and I mainly handled the API and the database. The back-end is the part that interests me most, which is why your Java developer role caught my attention.
More in how to introduce yourself in an interview.
"Why software development?"
They check that the choice is yours, not an accident of course allocation. A strong answer names a concrete moment: the first project that worked, a problem you enjoyed solving, a tool you built for yourself.
"Why our company?"
Find out what it builds, for which clients or sector, with which technologies. At an IT services firm, show that you understand the model: working on client projects, adapting to different contexts. At a startup, talk about the product.
"Tell me about a difficult bug you fixed."
This is the developer's behavioural question. It tests your debugging method: reproduce the problem, isolate the cause, check one hypothesis at a time, fix it, then make sure it does not come back. Tell it with the STAR method and finish with what you learned.
"How do you react when someone criticises your code?"
Teams work with code reviews. They want to hear that you separate your code from yourself, that you ask for an explanation when you disagree, and that you change your mind when the argument is good.
"How do you keep learning?"
Name what you actually do: official documentation, a course you followed, a side project started to learn a technology. One true example beats a list of websites.
"What are your salary expectations?"
Research the market for your level and your stack beforehand, and give a reasoned range. See the guide to salary expectations.
Questions about your final-year project and your projects
For a fresh graduate, the final-year project (PFE) is often the heart of the technical interview. The panel uses it to measure how deep your knowledge goes, starting from something you are supposed to know perfectly.
"Walk me through your final-year project."
Start with the problem, not the technologies: what the application is for, and for whom. Then the architecture in two sentences, then your exact share of the work.
"Why did you choose this technology?"
"It is what my supervisor asked for" is honest but weak if it stops there. Show that you know at least one alternative and what it would have changed.
"What would you do differently?"
One of the most revealing questions. The panel wants a critical eye: missing tests, a database designed badly at the start, security added too late. A candidate who answers "nothing" shows they have not stepped back.
"What did you do yourself?"
In a project done in pairs, be precise and honest. The panel will dig into your part, and it is easy to see who really wrote the code. The guide to internship and final-year project interviews covers this in more depth.
Tip
Reread your own code before the interview. Detailed questions about a project finished months ago catch out many candidates who did write it.
Technical questions: object-oriented programming
"What are the principles of object-oriented programming?"
The four expected: encapsulation (hiding an object's internal state and exposing it only through its methods), inheritance (one class reuses and specialises another), polymorphism (the same call behaves differently depending on the object's actual type) and abstraction (exposing only what matters). A definition is not enough: give an example of each, from your own code if possible.
"What is the difference between an abstract class and an interface?"
In Java: a class can extend only one class, abstract or not, but can implement several interfaces. An abstract class can have instance fields, constructors and already implemented methods. An interface defines a contract; since Java 8 it can also contain default and static methods, but no instance state. A good answer adds when to choose which: an interface for behaviour shared by unrelated classes, an abstract class for a common base among closely related classes.
"Overloading or overriding?"
Overloading: several methods with the same name but different parameters in the same class, chosen at compile time. Overriding: a subclass replaces an inherited method with the same signature, chosen at run time according to the object's actual type. Overriding is what makes polymorphism possible.
"In Java, what is the difference between == and equals()?"
On objects, == compares references: is it the same object in memory. equals() compares content, if the class overrides it, as String does. Bonus point: if you override equals(), you must also override hashCode(), otherwise collections such as HashMap misbehave.
Technical questions: databases and SQL
"What is the difference between INNER JOIN and LEFT JOIN?"
INNER JOIN keeps only rows that have a match in both tables. LEFT JOIN keeps every row of the left table, with NULL values in the right-hand columns when there is no match. The expected example: listing all customers, including those who never placed an order, needs a LEFT JOIN.
"What is the difference between WHERE and HAVING?"
WHERE filters rows before grouping; HAVING filters groups after the GROUP BY, and can therefore use aggregates such as COUNT or SUM.
SELECT customer_id, COUNT() AS order_count FROM orders GROUP BY customer_id HAVING COUNT() > 5;
"What is an index for?"
An index speeds up searching on a column, like the index of a book. A good answer also names the cost: extra disk space, and slower inserts and updates, since the index has to be maintained. So you index the columns often used to filter or join, not all of them.
"Primary key, foreign key, normalisation?"
The primary key identifies each row uniquely and cannot be NULL. A foreign key refers to the key of another table and keeps the two consistent. Normalisation means organising tables to avoid redundancy and update anomalies. If you are asked for a sample query, a classic is finding the second highest salary: show one solution and explain it, rather than hunting for the most elegant one.
Technical questions: Git, REST APIs and your framework
"What is the difference between merge and rebase?"
Both bring the changes of one branch into another. merge keeps history as it is and creates a merge commit. rebase replays your commits on top of the other branch, which gives a linear history but rewrites those commits. The rule to quote: you do not rebase a branch you have already shared with others.
"What does git pull do?"
By default, a git fetch followed by a git merge of the remote branch. It can be configured to rebase instead.
"How do you resolve a conflict?"
Open the files involved, understand both versions, keep the right code (sometimes a mix of the two), test, then commit. The key word is "understand": a candidate who overwrites the other version without reading it is a risk.
"What is a REST API?"
An API that exposes resources identified by URLs and manipulated with HTTP methods: GET to read, POST to create, PUT to replace, PATCH to partially update, DELETE to remove. It is stateless: each request carries everything needed to process it, and the server keeps no session between two calls.
"Which HTTP status codes do you know?"
The essentials: 200 (success), 201 (resource created), 204 (success, no content), 400 (bad request), 401 (not authenticated), 403 (authenticated but not allowed), 404 (not found), 500 (server error). The difference between 401 and 403 is a frequent trick question.
"What does idempotent mean?"
A request is idempotent if sending it several times has the same effect as sending it once. GET, PUT and DELETE are; POST is not, since two submissions create two resources.
Questions about your framework
The panel asks about the one on your CV. Expect questions such as:
- "Explain the MVC pattern with your framework."
- "What is dependency injection, and why use it?"
- "How do you protect a route that requires being logged in?"
- "How does your application talk to the database?"
Only put frameworks on your CV that you can survive ten minutes of questions on. A technology listed but unknown costs more than a technology left out.
Algorithms and live coding
For a junior role, nobody asks for advanced algorithms. They check that you can break a problem down, write correct code, and talk about its efficiency.
"What is the complexity of your solution?"
Know how to express complexity in big O notation: going through an array once is O(n); two nested loops over the same array, O(n²); a binary search, O(log n), provided the array is sorted.
"Find whether an array contains a duplicate."
The naive solution compares each element with all the others, in O(n²). The expected solution goes through the array once, remembering the elements already seen in a set (HashSet in Java, set in Python), in O(n) on average, at the cost of extra memory. Stating that time-versus-memory trade-off is exactly what the panel wants to hear.
The classic exercises
- "Reverse a string without using the built-in function."
- "Check whether a word is a palindrome."
- "Count how many times each word appears in a text."
- "Write FizzBuzz."
Restate before you code. Repeat the problem in your own words and ask the useful questions: can the string be empty, does case matter?
Think out loud. Silence is your worst enemy in live coding. The examiner grades your reasoning as much as the result, and cannot grade what they do not hear.
Start simple, then improve. A naive solution that works, then a better one, beats a perfect solution that never gets finished.
Test at the end. Walk through your code on one example, then on an edge case such as an empty array.
The English part
At IT services firms and companies with foreign clients, part of the interview often switches to English without warning. Nobody asks for perfect English, but you need to present your project, explain a technical choice and understand a question.
I worked on the back-end of a booking application. I designed the REST API with Spring Boot and the database schema in MySQL, and I added authentication with JSON Web Tokens.
Prepare your introduction and the description of your final-year project in English, out loud. See interviewing in your second language.
The mistakes that cost the interview
Avoid
- Making up a technical answer. The panel knows the answer. "I am not sure, but I think… and I would check it in the documentation" scores far better than a wrong statement delivered with confidence.
- Coding in silence. Even a good solution loses points if the examiner could not follow the reasoning.
- An inflated CV. Every technology listed is a potential question.
- Not knowing your own final-year project. It is the part you are supposed to master best.
- Neglecting the HR part. An excellent developer who seems impossible to fit into a team does not get hired.
- Asking no questions. Prepare two about the team, the tools or the projects; see questions to ask at the end of an interview.
Do this
When you are stuck, say where you are stuck. "I know how to go through the list, I am looking for a way to avoid the second loop" lets the examiner help you, and how you use their hint is part of the assessment.
Practise out loud
Knowing the difference between LEFT JOIN and INNER JOIN is not enough. You need to explain it clearly, in thirty seconds, to someone who is listening and following up. That is a speaking skill, and it only improves by speaking.
The Talk2Hire AI interview simulator asks you the questions of your target role, technical and HR alike, follows up on your answers, and gives you a score out of 100, the recording and specific advice. You can also take a live interview with a technical expert or a recruiter who tells you what a panel would have thought. The plans are on the plans page.
Read next: how to prepare for a job interview and what changes in job interviews in Tunisia.
Reading about it is not practising it.
Take a real interview — an AI interviewer that asks follow-up questions, or a live session with a working recruiter. Every session ends with a recording and a scored report.