Python Programming Multiple Choice Question - History And About
This section focuses on the "History and About" of the Python programming. These Multiple Choice Questions (mcq) should be practiced to improve the Python programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. Python was developed by
A. Guido van Rossum
B. James Gosling
C. Dennis Ritchie
D. Bjarne Stroustrup
View Answer
Ans : A
Explanation: A Dutch Programmer Guido van Rossum developed python at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language.
2. Python was developed in which year?
A. 1972
B. 1995
C. 1989
D. 1981
View Answer
Ans : C
Explanation: Python was introduced by Guido Van Rossum in 1989. So Option C is correct.
3. Python is written in which language?
A. C
B. C++
C. Java
D. None of the above
View Answer
Ans : A
Explanation: Python is written in C with default/traditional implementation as CPython. So, Option A is correct.
4. What is the extension of python file?
A. .p
B. .py
C. .python
D. None of the above
View Answer
Ans : B
Explanation: Python file is saved with an extension .py. So, Option B is correct.
5. Python is Object Oriented Programming Language.
A. True
B. False
C. Neither true nor false
D. None of the above
View Answer
Ans : A
Explanation: Yes python is object oriented language but not pure. It does not support strong encapsulation while it is one of the core features of an "object-oriented" programming language. So, Option A is correct.
6. Python 3.0 is released in which year?
A. 2000
B. 2008
C. 2011
D. 2016
View Answer
Ans : B
Explanation: Python 3.0 was released on December 3rd, 2008. So, Option B is correct.
7. Which of the following statements is true?
A. Python is a high level programming language.
B. Python is an interpreted language.
C. Python is an object-oriented language
D. All of the above
View Answer
Ans : D
Explanation: Python is high level, object oriented and interpreted programming language. So, Option D is correct.
8. What is used to define a block of code in Python?
A. Parenthesis
B. Indentation
C. Curly braces
D. None of the above
View Answer
Ans : B
Explanation: Python uses indentation to define block of code. Indentations are simply Blank spaces or Tabs which is used as an indicator that indented code is the child part. As curlybraces are used in C/C++/Java.. So, Option B is correct.
9. By the use of which character, single line is made comment in Python?
A. *
B. @
C. #
D. !
View Answer
Ans : C
Explanation: # is used for single line is made comment in Python. So, Option C is correct.
10. What is a python file with .py extension called?
A. package
B. module
C. directory
D. None of the above
View Answer
Ans : B
Explanation: python file with .py extension called module. So, Option B is correct.
Also check :
Discussion