1.  True

2.  False

2
Correct Answer :

False


Explanation :
No Explanation available for this question

1.  Error, no method called update for set data type

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

3.  Error, list can’t be added to set

4.  Error, duplicate item present in list

4
Correct Answer :

{1, 2, 3, 4, 5}


Explanation :
No Explanation available for this question

1.  {2,3}

2.  Error, duplicate item present in list

3.  Error, no method called intersection_update for set data type

4.  {1,4,5}

4
Correct Answer :

{2,3}


Explanation :
No Explanation available for this question

1.  {1,2,3}

2.  Error, copying of sets isn’t allowed

3.  {1,2}

4.  Error, invalid syntax for remove

4
Correct Answer :

{1,2}


Explanation :
No Explanation available for this question

1.  {1,2,3}

2.  Error, invalid syntax for add

3.  {1,2,3,4}

4.  Error, copying of sets isn’t allowed

4
Correct Answer :

{1,2,3}


Explanation :
No Explanation available for this question

1.  0

2.  {1,2,3,4}

3.  {1,2,3}

4.  Nothing is printed

4
Correct Answer :

Nothing is printed


Explanation :
No Explanation available for this question

1.  {1,2}

2.  Error as difference between a set and frozenset can’t be found out

3.  Error as unsupported operand type for set data type

4.  frozenset({1,2})

4
Correct Answer :

{1,2}


Explanation :
No Explanation available for this question

1.  5

2.  23

3.  18

4.  Invalid syntax for sum method, too many arguments

4
Correct Answer :

23


Explanation :
No Explanation available for this question

1.  {2,4,6}

2.  Error, set comprehensions aren’t allowed

3.  {8, 2, 10, 4, 6}

4.  {8,10}

4
Correct Answer :

{8, 2, 10, 4, 6}


Explanation :
No Explanation available for this question

1.  8

2.  Error, unsupported operand ‘+’ for sets

3.  6

4.  Nothing is displayed

4
Correct Answer :

Error, unsupported operand ‘+’ for sets


Explanation :
No Explanation available for this question

Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python