Question 5
Consider the snippets: Code-1
Code-2
Code-3
Which statement is correct?
Only Code-1 throws an error
Only Code-2 throws an error
Only Code-3 throws an error
None throw an error
Consider the snippets: Code-1
Code-2
Code-3
Which statement is correct?
Only Code-1 throws an error
Only Code-2 throws an error
Only Code-3 throws an error
None throw an error
Correct answer
Only Code-3 throws an error
Question 5 of 20 in the IIT Madras BS Programming in Python (Python) End Term paper sat on 10 May 2026, in the January 2026 term (Programming In Python 06 May 26). It carries 3 marks.