← Quiz: The Online Coding Assessment: all 10 questions
Quiz: The Online Coding Assessment · Question 9 of 10
Your output prints "Answer: 5" but the expected output is "5". What happens?
Your output prints "Answer: 5" but the expected output is "5". What happens?
- A.The judge ignores extra words
- B.The test cases fail, because the output does not match exactly
- C.You get half marks
- D.The judge asks you to fix it
Answer & explanation
Correct answer: The test cases fail, because the output does not match exactly
Judges compare output exactly; extra text breaks every test case.
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 →