1.  Tuple

2.  Integer

3.  List

4.  Both tuple and integer

4
Correct Answer :

Integer


Explanation :
No Explanation available for this question

1.  Error, tuple slicing doesn’t exist

2.  [2,3]

3.  (2,3,4)

4.  (2,3)

4
Correct Answer :

(2,3)


Explanation :
No Explanation available for this question

1.  False

2.  True

3.  Error, < operator is not valid for tuples

4.  Error, < operator is valid for tuples but not if there are sub-tuples

4
Correct Answer :

False


Explanation :
No Explanation available for this question

1.  (‘Check’,’Check’,’Check’)

2.  * Operator not valid for tuples

3.  (‘CheckCheckCheck’)

4.  Syntax error

4
Correct Answer :

(‘CheckCheckCheck’)


Explanation :
No Explanation available for this question

1.  Now, a=(1,2,4)

2.  Now, a=(1,3,4)

3.  Now a=(3,4)

4.  Error as tuple is immutable

4
Correct Answer :

Error as tuple is immutable


Explanation :
No Explanation available for this question

1.  Too many arguments for sum() method

2.  The method sum() doesn’t exist for tuples

3.  12

4.  9

4
Correct Answer :

12


Explanation :
No Explanation available for this question

1.  No because tuple is immutable

2.  Yes, first element in the tuple is deleted

3.  Yes, the entire tuple is deleted

4.  No, invalid syntax for del method

4
Correct Answer :

Yes, the entire tuple is deleted


Explanation :
No Explanation available for this question

1.  Array of tuples

2.  List of tuples

3.  Tuples of lists

4.  Invalid type

4
Correct Answer :

List of tuples


Explanation :
No Explanation available for this question

1.  Invalid syntax for slicing

2.  [0,2]

3.  (0,1)

4.  (0,2)

4
Correct Answer :

(0,1)


Explanation :
No Explanation available for this question

Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python