Question bank, AI-assisted, Code comprehension
Read unfamiliar code
Here's a function from a codebase you've never seen. Without running it, explain what it does, predict its output and find what's wrong with it.
20 minutes, for junior, mid-level engineers
How the interview runs
- 1.Explain. What is this function meant to do?
- 2.Predict. What does chunk([1, 2, 3, 4, 5], 2) return? Trace it.
- 3.Bug + fix. What's wrong, and how do you fix it?
- 4.Edge cases. Which inputs would you test before shipping the fix?
What you're graded on
- Explained the intent20 pts
- Traced the output correctly30 pts
- Found and fixed the off-by-one30 pts
- Tested edge cases20 pts
Practice this one for real
Answer it phase by phase, then get the rubric score, what you missed and the model answer outline.
Unlock with Lifetime