Datatype in Python MCQs Exercise I

Ques 1 Datatype


Which of the following is an immutable datatype?

A list
B tuple
C Both (a) and (b)
D None of the above.

Ques 2 Datatype


Which of the following is a mutable datatype?

A list
B tuple
C Both (a) and (b)
D None of the above.

Ques 3 Datatype


What is the output of the following Python Code?


x=(1,2,3,4,5) x[1]=3 print(x)

A Error
B (1,2,3,4,5)
C (1,3,3,4,5)
D (1,3,2,3,4,5)

Ques 4 Datatype


In which datatype are the *kwargs stored, when passed into a function?

A List
B Tuple
C Dictionary
D String