Quiz: Python Part-1

To View Tricks: Login Required

Number of Questions: 37

Question: 36 -

What happens when '2' == 2 is executed?

Options:
  1. Ture

  2. False

  3. ValueError occurs

  4. TypeError occurs

  5. Answer:

    False

    Solution:

    It only evaluates to false.


Question: 37 -

Which of the following data types is shown below?

 

L = [2, 54, 'javatpoint', 5]  

What will be the output of this statement?

Options:
  1. Stack

  2. List

  3. Tuple

  4. Dictionary

  5. Answer:

    List

    Solution:

    Any value can be stored in the list data type.