Question 5
Only code-1 is a correct implementation.
Only code-2 is a correct implementation.
Both code-1 and code-2 are correct implementations.
Both code-1 and code-2 are not correct implementations.
Only code-1 is a correct implementation.
Only code-2 is a correct implementation.
Both code-1 and code-2 are correct implementations.
Both code-1 and code-2 are not correct implementations.
Correct answer
Only code-1 is a correct implementation.
Question 5 of 13 in the IIT Madras BS Programming in Python (Python) Diploma Entry Qualifier paper sat on 7 Aug 2022, in the May 2022 term (IIT M DAD DS QUALIFIER EXAM QPC 07 Aug 2022 IBA NS). It carries 3 marks.