Quiz: Python Part-1

To View Tricks: Login Required

Number of Questions: 37

Question: 1 -

In which year was the Python language developed?

Options:
  1. 1998

  2. 1989

  3. 1995

  4. 1990

  5. Answer:

    1989

    Solution:

    Python language was developed by Guido van Rossum in the Netherlands in 1989.


Question: 2 -

What do we use to define a block of code in Python language?

Options:
  1. None of these

  2. Key

  3. Indentation

  4. Brackets

  5. Answer:

    Indentation

    Solution not available.

Question: 3 -

What is the maximum possible length of an identifier?

Options:
  1. 16

  2. None of these

  3. 32

  4. 64

  5. Answer:

    None of these

    Solution:

    The maximum possible length of an identifier is not defined in the python language. It can be of any number.


Question: 4 -

In which language is Python written?

Options:
  1. php

  2. C

  3. C++

  4. Java

  5. Answer:

    C

    Solution:

    Python is written in C programming language, and it is also called CPython.


Question: 5 -

Which one of the following is the correct extension of the Python file?

Options:
  1. .py

  2. None of these

  3. .p

  4. .python

  5. Answer:

    .py

    Solution not available.