← Quiz: The Online Coding Assessment: all 10 questions
Quiz: The Online Coding Assessment · Question 7 of 10
Your code passes all sample tests but fails many hidden tests. What should you check first?
Your code passes all sample tests but fails many hidden tests. What should you check first?
- A.Whether the platform is broken
- B.Edge cases (n = 1, equal values, negatives, largest inputs) and the exact output format
- C.The colour theme of the editor
- D.Whether you used enough comments
Answer & explanation
Correct answer: Edge cases (n = 1, equal values, negatives, largest inputs) and the exact output format
Samples are few and easy; hidden tests target edge cases and limits.
Can you get the rest right without peeking?
Take the timed Quiz: The Online Coding Assessment quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →