← 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?
- A.8.5
- B.9.5
- C.6.0
- 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 →