🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Technical Interviews: all 10 questions

Quiz: Technical Interviews · Question 8 of 10

After writing your code, what should you do before saying "done"?

After writing your code, what should you do before saying "done"?

  1. A.Ask for the next question
  2. B.Dry-run it on the example and on edge cases such as an empty array or duplicates
  3. C.Delete your comments
  4. D.Rewrite it in another language
Answer & explanation

Correct answer: Dry-run it on the example and on edge cases such as an empty array or duplicates

Testing aloud catches bugs and shows the interviewer how careful you are.

Can you get the rest right without peeking?

Take the timed Quiz: Technical Interviews quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →