Python Multiple Choice Question - Set 1

Question 1. Who developed Python programming language ?

  • A

    Wick Van Rossum

  • B

    Rasmus Lerdorf

  • C

    Guido Van Rossum

  • D

    Niene Stom

Answer:
C - Guido Van Rossum

Question 2. Which type of programming does python support ?

  • A

    Object oriented programming

  • B

    Structured programming

  • C

    Functional programming

  • D

    All of the above

Answer:
D - All of the above

Question 3. Is python case sensitive when dealing with identifiers ?

  • A

    No

  • B

    Yes

  • C

    Machine Dependent

  • D

    none of the mentioned

Answer:
A - No

Question 4. Is python code compiled or interpreted ?

  • A

    Python code is neither compiled nor interpreted

  • B

    Python code is both compiled and interpreted

  • C

    Python code is only compiled

  • D

    Python code is only interpreted

Answer:
D - Python code is only interpreted language.

Question 5. Which of the following is the correct extension of the python file ?

  • A

    .python

  • B

    .pl

  • C

    .py

  • D

    .p

Answer:
C - .py

Question 6. All keyword in python are in .......

  • A

    Capitalized

  • B

    Lower case

  • C

    Upper case

  • D

    None of the above

Answer:
D. None of the above

Question 7. Which will be the value of the following Python expression ? 4 + 3 % 5

  • A

    7

  • B

    3

  • C

    6

  • D

    2

Answer:
A - 7

Question 8. Which of the following is used to define a block of code in python language ?

  • A

    Indentation

  • B

    Key

  • C

    Brackets

  • D

    All of the above

Answer:

Question 9. Which keyword is used for function in python language ?

  • A

    Function

  • B

    Def

  • C

    Fun

  • D

    Define

Answer:
B - Def

Question 10. Python supports the creation of anonymous function at runtime, using a construct called ......

  • A

    pi

  • B

    anonymous

  • C

    lambda

  • D

    none of the above

Answer:
C - Lambda