VOOZH about

URL: https://www.geeksforgeeks.org/quizzes/python-sets-quiz/

⇱ Quiz about Python Sets Quiz


Last Updated :
Discuss
Comments

Question 1

What is the output of the following program?

  • {1, 2, 3}

  • {1, 2, 3, 4}

  • {1, 2, 3, 4, 4}

  • Error

Question 2

What is the output of the following program?

  • {1, 2, 3, 4, 5}

  • {3, 4, 5, 1, 2, 3}

  • {1, 2, 3, 3, 4, 5}

  • Error

Question 3

What is the output of the following program?

  • {1, 2, 3, 4}

  • {1, 2, 3}

  • Invalid Syntax

  • Error

Question 4

What is the output of the following program?

  • {1, 2, 3, 4}

  • {1, 2, 3}

  • Invalid Syntax

  • None

Question 5

What is the output of the following program?

  • 3

  • 6

  • Unexpected

  • Error

Question 6

What is the output of the following program?

  • {0, 1, 2, 3, 4, 5}

  • {0, 1, 2, 3, 4, 5, 6, 8}

  • { 6, 8}

  • None

Question 7

What is the output of the following program?

  • {0, 1, 2, 3, 4, 5, 6, 8}

  • {0, 1, 3, 5, 6, 8}

  • {2, 4}

  • {0, 8, 6}

Question 8

What is the output of the following program?

  • {0, 1, 2, 3, 4, 5, 6, 8}

  • {0, 8, 6}

  • {2, 4}

  • {0, 1, 3, 5, 6, 8}

Question 9

What is the output of the following program?

  • {0, 1, 2, 3, 4, 5, 6, 8}

  • {2, 4}

  • {0, 8, 6}

  • {0, 1, 3, 5, 6, 8}

Question 10

What is the output of the following program?

  • {1, 2, 4, 4, 3, 3, 3, 6, 5}

  • {1, 2, 3, 4, 5, 6}

  • [1, 2, 3, 4, 5, 6]

  • [1, 2, 4, 4, 3, 3, 3, 6, 5]

There are 11 questions to complete.

Take a part in the ongoing discussion