Practice interview
Here are 5 random questions. Answer each one out loud as if the interviewer just asked it, then reveal the short answer and compare. Open the full answer for the detail and common mistakes.
- Question 1GitEasy
What is the difference between git fetch and git pull?
Reveal the short answer
git fetch downloads new commits from the remote without changing your working branch; git pull runs a fetch and then merges (or rebases) those commits into your current branch.
Read the full answer - Question 2Node.jsMedium
What are streams in Node.js and why should you use them?
Reveal the short answer
Streams process data piece by piece as it arrives instead of loading it all into memory, which lets you handle large files and network data efficiently; they come in Readable, Writable, Duplex and Transform types.
Read the full answer - Question 3BehavioralEasy
How do you answer "Why should we hire you?" as a developer?
Reveal the short answer
Connect two or three of your strongest, provable skills directly to the needs in the job description, give a short piece of evidence for each, and show genuine interest in the team’s work.
Read the full answer - Question 4ReactHard
How do you optimize performance in a React application?
Reveal the short answer
Measure first with the Profiler and Lighthouse, then reduce unnecessary renders, split code with lazy loading, virtualise long lists, and optimise images and bundle size.
Read the full answer - Question 5SQLMedium
How do you find the second highest salary in SQL?
Reveal the short answer
Use a subquery that takes the MAX salary below the overall MAX, or use DENSE_RANK() and pick rank 2, which also handles ties and generalises to the Nth highest.
Read the full answer