Python Multiple Choice Questions

  1. Which of the following is a correct way to declare a variable in Python?
    1. int x = 5
    2. x = "hello"
    3. x := 5
    4. 5 = x
Answer :
B
Explanation:
Added By : Gaurav


  1. What is a Python Virtual Machine (PVM)?
    1. runtime engine of Python that compiled your compiled byte code
    2. runtime engine of Python that interprets your compiled byte code
    3. runtime engine of Python that convert source code into byte code
    4. None of the above
Answer :
B
Explanation:
Added By : Varun

  1. What is the extension of the Python byte code file?
    1. .py
    2. pyc
    3. .pyd
    4. None of the above
Answer :
B
Explanation:
Added By : Varun


  1. Python is
    1. Interpreter Programming language
    2. Compiled programming language
    3. Interpreter and Compiled programming language
    4. None of the above
Answer :
A
Explanation:
Added By : Varun

  1. Which of the following operating systems does Python run on?
    1. Mac OS X only
    2. Mac OS X, Windows only
    3. Mac OS X, Windows, Linux only
    4. Mac OS X, Windows, Linux, and Unix only
Answer :
D
Explanation:
Added By : Varun

  1. Which of the following is NOT an area where Python is commonly used?
    1. Web development (server-side)
    2. Software development
    3. Mathematics
    4. Graphic design
Answer :
D
Explanation:
Added By : Varun


  1. In which year was the Python programming language released?
    1. 1995
    2. 1991
    3. 2000
    4. 2005
Answer :
B
Explanation:
Added By : Gaurav

  1. Which individual created the Python programming language?
    1. Bill Gates
    2. Steve Jobs
    3. Van Rossum
    4. Dennis Ritchie
Answer :
C
Explanation:
Added By : Gaurav

Post Your Question
Social Sharing
Search