The following quiz provides Multiple Choice Questions (MCQs) related to Python Basics and the introduction of python. This Python Quiz is also Interview (campus interview, walk-in interview, company interview), Placement or recruitment, entrance examinations, and competitive examinations oriented. You can practice these below questions to improve your python skills. You can click on the View Answer button to check the answer if you needed. Let’s solve this Python Basics (Multiple Choice Questions) MCQ – Python Interview objective questions| Python Quiz.
01. In which year was the Python language developed?
- 1995
- 1972
- 1981
- 1989
Answer : D Explanation: Python language was developed by Guido van Rossum in 1989 (late 1980s).
02. Who developed the Python language?
- Zim Den
- Guido van Rossum
- Niene Stom
- Wick van Rossum
Answer : B Explanation: Python language was developed by Guido van Rossum in the Netherlands in the late 1980s.
03. How many keywords are there in python 3.7?
- 32
- 33
- 31
- 30
Answer : B Explanation: There are 33 keywords in Python 3.7. Keywords are reserved words of the programming language that can not be used as variables and that have by default some meaning in that language. So, Option B is correct.
04. Which one of the following is the correct extension of the Python file?
- .py
- .python
- .p
- None of these
Answer : A Explanation: “.py” is the extension of the python file.
05. What is output for − min(”hello world”)
- e
- a blank space character
- w
- hello world
Answer : B Explanation: python considers a blank space character as the minimum value in a string.
06. How to output the string “May the odds favor you” in Python?
- print(“May the odds favor you”)
- echo(“May the odds favor you”)
- System.out(“May the odds favor you”)
- printf(“May the odds favor you”)
Answer : A Explanation: print() function is used to display something to the user in python.
07. In which year was the Python 3.0 version developed?
- 2005
- 2000
- 2010
- 2008
Answer : D Explanation: Python 3.0 version was developed on December 3, 2008.
08. Which character is used in Python to make a single line comment?
- /
- //
- #
- ?
Answer : C Explanation: “#” character is used in the Python to make a single-line comment.
09. Python is often described as a:
- Batteries excluded language
- Gear included language
- Batteries included language
- Gear excluded language
Answer : C Explanation: Python programming language is often described as a “batteries included” language due to its comprehensive standard library
10. What do we use to define a block of code in Python language?
- Indentation
- Key
- Brackets
- None of these
Answer : A Explanation: Python uses indentation to define blocks of code. Indentations are simply spaces or tabs used as an indicator that is part of the indent code child as Curly braces are used in the C programming language.
Pingback: Python Variables and Data Types (Multiple Choice Questions) MCQ - Python Interview objective questions| Python Quiz - cozmocard
Pingback: Machine Learning MCQ Questions And Answers - cozmocard