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

Quiz: Refactoring with AI · Question 4 of 10

The AI wrote cgpa 9.0 where the old code had cgpa = 9.0. Which test input reveals it?

The AI wrote cgpa > 9.0 where the old code had cgpa >= 9.0. Which test input reveals it?

  1. A.8.5
  2. B.9.5
  3. C.6.0
  4. D.9.0
Answer & explanation

Correct answer: 9.0

Only a value exactly at the boundary behaves differently.

Can you get the rest right without peeking?

Take the timed Quiz: Refactoring with AI quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →