InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1921–1932 of 3610 questions

Interview Preparation & CodingIntermediate1 min read

What is a unit test?

A unit test checks a small unit of behavior in isolation, usually with controlled dependencies.

Interview Preparation & CodingIntermediate1 min read

How do you refactor code safely?

First establish behavior with tests, then make small changes that preserve the public contract and run the test suite after each step.