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.


b is the correct option





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.


a is the correct option





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)


a is the correct option





Ques 4 Datatype


In which datatype are the *kwargs stored, when passed into a function?
  a) List
  b) Tuple
  c) Dictionary
  d) String


c is the correct option