Interview preparation · Foundation to advanced

Developer interview questions and answers

Prepare for software development interviews by connecting language fundamentals with working application behavior. This collection includes backend and frontend questions, resource lifetimes, asynchronous execution, API security, data consistency and useful testing decisions.

Practise Developer interviews

Topics in this question bank

Java and Spring; .NET, C# and ASP.NET; Python application development; JavaScript and TypeScript; React/frontend; Node.js/backend; MongoDB and Mongoose; Express.js; FastAPI; Next.js and App Router; PostgreSQL; APIs and application security; databases and system design; testing and code quality.

How to prepare your answers

Choose a Developer stack shortcut or the individual technologies relevant to your opportunity. Java/Spring, .NET/C#, Python and JavaScript/TypeScript are joined by dedicated MongoDB/Mongoose, Express.js, FastAPI, Next.js/App Router and PostgreSQL topics. Explain ownership, error handling and concurrency using the actual runtime contract. For design questions, connect an approach to its costs and failure behavior rather than naming a pattern alone.

In general preparation, choose at least three topics and your target level. For a specific job, enter the technologies required and your current skills. Keyword matching selects supported topics; it does not infer proficiency from a resume or generate new questions.

Sample Developer questions with expected answers

These examples are a starting point for focused interview preparation. Accept other technically sound approaches and check the primary references for the relevant environment and version.

Java & Spring · foundation

How should Java code compare object identity and logical equality?

Reference equality checks whether references identify the same object, while equals expresses the class's equality contract. Choose intentionally, and keep hashCode consistent when logically equal objects are used in hashed collections.

Follow-up: What if equals changes without hashCode?

A stronger answer: Explains collection invariants.

Read the primary reference

.NET & C# · foundation

How do C#, .NET and the CLR relate?

C# is a language, .NET supplies a platform and libraries, and its runtime executes managed applications under supported implementations. Distinguish language features from framework and deployment capabilities when selecting target versions.

Follow-up: Does every .NET application have to use C#?

A stronger answer: Separates ecosystem layers.

Read the primary reference

React & frontend · foundation

How do React props and state differ?

Props are inputs supplied by a parent; state is component-managed memory that triggers rendering when updated appropriately. Treat both as read-only during rendering. Derive values instead of storing redundant state that can become inconsistent.

Follow-up: When should two components share a common state owner?

A stronger answer: Models a single source of truth.

Read the primary reference

MongoDB & Mongoose · foundation

How should MongoDB document boundaries follow access patterns?

Model documents around data commonly read or changed together, while considering size, growth and update frequency. Embedding can simplify reads, but references may be preferable for independently changing or unbounded related data.

Follow-up: When would an ever-growing embedded array become a poor design?

A stronger answer: Connects document shape to actual reads, updates and bounded growth.

Read the primary reference

Express.js · foundation

How does middleware registration order affect an Express application?

Express processes matching middleware and routes in registration order. Put parsing, identity establishment and relevant controls before handlers that depend on them, and make it explicit whether each middleware responds or passes control onward.

Follow-up: What happens if a body parser is registered after a route that needs it?

A stronger answer: Explains actual execution flow instead of treating middleware as an unordered configuration list.

Read the primary reference

FastAPI · foundation

How does a FastAPI request model differ from a Python type annotation alone?

FastAPI uses declared models and parameter definitions to parse and validate incoming requests at runtime. Plain annotations elsewhere do not enforce arbitrary external data, and coercion or strictness must match the intended API contract.

Follow-up: How would you distinguish an omitted optional field from an explicit null?

A stronger answer: Explains the actual validation boundary and preserves update semantics.

Read the primary reference

Next.js & App Router · foundation

How do Next.js App Router Server Components and Client Components differ?

Server Components execute server-side work and can keep server resources out of the client bundle. Client Components support interaction and browser APIs; the boundary affects what code and data may cross, not just where a file is located.

Follow-up: Does a Client Component declaration imply every byte is rendered only in the browser?

A stronger answer: Distinguishes execution, rendering and bundle boundaries without oversimplifying prerendering.

Read the primary reference

PostgreSQL · foundation

What does PostgreSQL MVCC change about reading and updating rows?

MVCC lets transactions observe data according to snapshots and visibility rules while updates create new row versions. It reduces some reader/writer conflicts, but does not eliminate locks, isolation anomalies or the need to reclaim obsolete versions.

Follow-up: Why can a long-running transaction affect maintenance and other work?

A stronger answer: Links visibility rules, resource lifetime and cleanup rather than claiming readers never matter.

Read the primary reference

Using these questions as an interviewer

Use follow-ups to distinguish memorized terms from understanding. Ask what changes under concurrent requests, how a database invariant is enforced, which resource needs cleanup and what test would catch the failure being discussed.

In the interviewer workspace, enter role requirements and candidate skills, inspect the keyword-based skill map and build a plan. Reveal guides as needed, replace questions, record notes and assess the candidate yourself. The app does not provide semantic grading or a hiring score.

Start a focused practice session

Learn mode lets you reveal guides at your own pace. Practice asks you to answer first and provides a phrase-based concept check. Mock keeps guides hidden until you finish. Optional speech input and spoken questions depend on browser support; typed answers are always available in the workspace.

Regular practice is free without an account. Verified members can also access optional AI coaching, subject to usage limits and availability. Job and resume drafts stay in memory; optional member AI matching sends them to Gemini only after separate permission. Saved answers and notes use this browser's local storage. Export JSON or print the completed-session review when you need a copy.

Open Developer practice