Question 7
Assume s is a str variable. What is the type of the expression "".join(sorted(set(s.lower()))) ?
int
set
list
bool
str
NoneType
The code raises an error.
Assume s is a str variable. What is the type of the expression "".join(sorted(set(s.lower()))) ?
int
set
list
bool
str
NoneType
The code raises an error.
Correct answer
str
Question 7 of 18 in the IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIA4 26 Oct). It carries 4 marks.