COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Yes
|
|
No
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -What type of data is: a=[(1, 1), (2, 4), (3, 9)]? Explanation: The variable a has tuples enclosed in a list making it a list of tuples. 9.
Detailed explanation-2: -6. What type of data is: arr = [(1, 1), (2, 2), (3, 3)]? Explanation: Variable arr has tuples enclosed in a list. Hence it is list of tuples.
Detailed explanation-3: -What will be the output of the following Python code, if s1= 1, 2, 3? Clarification: Every set is a subset of itself and hence the output of this line of code is true.
Detailed explanation-4: -3. Which of the following Python statements will result in the output: 6? Explanation: The output that is required is 6, that is, row 2, item 3. This position is represented by the statement: A[1][2].