Q. Which of the following statements is used to create an empty set?

  • (A) { }
  • (B) ( )
  • (C) [ ]
  • (D) set()
πŸ’¬ Discuss
βœ… Correct Answer: (D) set()
Explanation: {} creates a dictionary, not a set. Only set() creates an empty set.
Explanation by: Tanmay
{} creates a dictionary, not a set. Only set() creates an empty set.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
86%
Success Rate