What will be the output of the following Python code a={1,2,3} b={1,2,3} c=a.issubset(b) print(c)

1.  True

2.  Error, no method called issubset() exists

3.  Syntax error for issubset() method

4.  False

4

True

Explanation :
No Explanation available for this question

Is the following Python code valid ={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)

1.  False

2.  True

3.  Syntax error for issuperset() method

4.  Error, no method called issuperset() exists

4

False

Explanation :
No Explanation available for this question

What will be the output of the following Python code s=set() type(s)

1.

2.

3.  set

4.  class set

4

<class ‘set’>

Explanation :
No Explanation available for this question

The following Python code results in an error s={2, 3, 4, [5, 6]}

1.  True

2.  False

2

True

Explanation :
No Explanation available for this question

Set makes use of __________Dictionary makes use of ____________

1.  keys, keys

2.  key values, keys

3.  keys, key values

4.  key values, key values

4

keys, key values

Explanation :
No Explanation available for this question

Which of the following lines of code will result in an error

1.  s={abs}

2.  s={4, ‘abc’, (1,2)}

3.  s={2, 2.2, 3, ‘xyz’}

4.  s={san}

4

s={san}

Explanation :
No Explanation available for this question

What will be the output of the following Python code s={2, 5, 6, 6, 7} s

1.  {2, 5, 7}

2.  {2, 5, 6, 7}

3.  {2, 5, 6, 6, 7}

4.  Error

4

{2, 5, 6, 7}

Explanation :
No Explanation available for this question

Input order is preserved in sets.

1.  True

2.  False

2

False

Explanation :
No Explanation available for this question

Write a list comprehension for number and its cube for: l=[1, 2, 3, 4, 5, 6, 7, 8, 9]

1.  [x**3 for x in l]

2.  [x^3 for x in l]

3.  [x**3 in l]

4.  [x^3 in l]

4

[x**3 for x in l]

Explanation :
No Explanation available for this question

1.  {1, 2, 3, 4}

2.  {1, 2, 4, 3}

3.  {4, 1, 2, 3}

4.  Error

4