What to Ask When Interviewing Junior Developers

Questions that show how a junior developer learns, reads code and handles being stuck, a simple scorecard to rate the answers, and the questions to leave out.

The best junior developer interview questions test how a candidate learns, reads code and handles being stuck, not what they have memorised. Ask every candidate the same core questions, spend time on a project they built, have them explain or debug a short piece of code, and score each answer against a written guide before you compare anyone.

A junior hire is a bet on how fast someone will become useful. Trivia questions ("what is the difference between let and var?") tell you whether they revised last night. They say little about whether the person will figure out your codebase in their first month. The questions below are grouped by what they reveal, with notes on what a good answer sounds like.

Because otherwise you end up comparing a friendly chat with one candidate against a hard grilling of another, and choosing whoever you happened to like.

The US Office of Personnel Management, which publishes assessment guidance for federal hiring, describes structured interviews as ones that "employ rules for eliciting, observing, and evaluating responses". It notes that highly structured interviews "involve asking all applicants the same exact set of pre-defined lead and probe (i.e., follow-up questions)", and that "Interviews with higher degrees of structure show higher levels of validity, rater reliability, rater agreement" (OPM).

You do not need a federal-scale process. You need a page with your questions, what a good answer includes, and a rating for each. Follow-up questions can vary with the conversation; the core set stays fixed.

Pick four or five areas that matter for this role. For most junior developer roles:

Area What you are looking for Fundamentals Understands the basics of the language and tools they claim Reading and debugging code Can follow unfamiliar code and form a hypothesis about a bug Problem solving Breaks a problem into steps, asks clarifying questions Learning Has taught themselves something recently and can explain how Working with others Takes feedback, explains their thinking, asks for help sensibly Rate each area on a short scale, say 1 to 4, and write one line describing what a 1 and a 4 look like before the first interview. If two people interview, each rates separately and you compare afterwards. OPM describes the same pattern: panels where "each member rates applicant responses individually".

If you have not already filtered the applicant pile, our guide on how to shortlist tech applicants down to five covers that step.

Start here. Candidates are calmer talking about their own work, and their answers show depth quickly.

"Walk me through this project. What does it do, and who uses it?"

"Which part did you build yourself? Show me that code."

"What was the hardest bug you hit on this project? How did you find it?"

"If you started again, what would you change?"

"Why did you choose this database (or framework, or library)?"

What a good answer sounds like: specific. Names a file, an error message, a decision and its reason. "It was hard" is weak. "The booking times were off by 5 hours 45 minutes because the server stored UTC and I displayed it without converting" is strong.

Be wary of a candidate who cannot explain code in their own repository. Group projects are fine, as long as they can say which parts were theirs.

Ask them to explain, not recite:

"Explain what happens, step by step, when someone types a URL into a browser and presses enter. Go as deep as you can."

"What is the difference between a database index and no index, in terms of what the database does?"

"When would you use a list and when a dictionary or map? Give an example from something you built."

"What does Git do when you create a branch? When have you had a merge conflict, and what did you do?"

There is no single right depth. You are watching where their understanding stops and whether they say "I don't know" honestly at that point, or start guessing confidently.

Give them 15 to 25 lines of code in the language of the role, with one or two bugs. Choose code similar to your own codebase, not a puzzle.

"Read this and tell me what it does."

"A user reports that it fails when the list is empty. Where would you look?"

"How would you test this?"

Let them think aloud, and let them ask questions. A junior who asks "what should happen when the input is empty?" before changing anything is showing exactly the habit you want.

If you are deciding between a live exercise and a take-home task for this part, see take-home test or live coding.

"Tell me about something technical you learned in the last three months. How did you learn it?"

"Tell me about a time someone criticised your code or work. What did you do?"

"You are stuck on a task for two hours. What do you do?"

"How do you decide when to ask a senior for help?"

For the last two, the weak answers are both extremes: "I never ask, I figure it out" and "I ask straight away". Good answers describe trying a few specific things first, then asking with a clear summary of what they tried.

Personal questions unrelated to the work. Nepal's Labour Act, 2017 states in section 6: "No employer shall discriminate any labour on the ground of religion, colour, sex, caste, tribe, origin, language, ideological conviction or other similar ground." Questions about caste, religion, marriage plans or family background have no place in a technical interview. The same section allows preference "on the basis of inherent requirement of a work or service", so keep every question tied to the job. For anything beyond that, ask a labour lawyer.

Brainteasers. Puzzles about counting golf balls tell you how someone handles puzzles, not how they fix a failing API call.

"Where do you see yourself in five years?" Most juniors give a rehearsed answer. "What kind of work do you want to be doing a year from now?" gets a more honest one.

Questions you would not use to decide. If an answer would not change your rating, drop the question and use the time on code.

Total the ratings per area before you discuss candidates as a group, so the loudest opinion does not set the result. Then look at the weakest area for each finalist and ask: can we train this in the first three months, given who will mentor them? A junior strong on learning and code reading, weaker on one framework, is often a better hire than the reverse.

Write down the reason for the final decision. It helps when you compare the hire's first months against what you expected, and it sharpens the scorecard for next time. Our step-by-step guide to hiring IT staff in Nepal covers the reference check and contract that follow.

If you would rather have candidates screened before they reach you, Gen Alpha's recruitment service works on that part of the process.

How long should a junior developer interview be? Long enough to cover every area on your scorecard, which for most teams is one sitting of an hour or so, sometimes with a separate shorter screening call beforehand. Very long interview days tire juniors and mostly measure stamina. Tell the candidate the format and length in advance.

Should I let candidates search online during a coding question? For code reading and debugging, allowing documentation lookups is closer to real work and you learn how they search. For fundamentals questions, ask them to answer from what they know. Say which applies before each question.

How many people should interview a junior candidate? Two is a practical number: usually the person who will mentor them and one other developer or lead. Each should rate separately against the scorecard before they compare notes.

What if a candidate is very nervous? Start with their own project, which most people find easier, and tell them it is fine to think aloud or ask questions. Judge the content of the answers, not the delivery, unless the role involves a lot of client-facing talking.

Should I give feedback to candidates I reject? A short, specific line of feedback costs little, and most candidates value it. Keep it about the work ("the debugging exercise was the gap") and avoid anything that comments on personal characteristics.

All posts