21. |
Which of the following is a Python tuple?
|
||||||||
Answer:
Option (b) |
22. |
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
|
||||||||
Answer:
Option (b) |
23. |
What will be the output of the following Python code?
>>>t=(1,2,4,3) >>>t[1:3]
|
||||||||
Answer:
Option (c) |
24. |
What will be the output of the following Python code?
>>>t=(1,2,4,3) >>>t[1:-1]
|
||||||||
Answer:
Option (c) |
25. |
Tuples can’t be made keys of a dictionary.
|
||||
Answer:
Option (b) |
26. |
What is the data type of (1)?
|
||||||||
Answer:
Option (b) |
27. |
If a=(1,2,3,4), a[1:-1] is _________
|
||||||||
Answer:
Option (d) |
28. |
What type of data is: a=[(1,1),(2,4),(3,9)]?
|
||||||||
Answer:
Option (b) |
29. |
Which of these about a set is not true?
|
||||||||
Answer:
Option (d) |
30. |
Which of the following is not the correct syntax for creating a set?
|
||||||||
Answer:
Option (a) |