🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The judge ignores extra words
  2. B.The test cases fail, because the output does not match exactly
  3. C.You get half marks
  4. 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 →