top of page

Python Interview Questions - Basics

What is Python?
  1. Binary language

  2. Scripting language

  3. Programming language

  4. Computer language

Answer

Answer is 3

Python is a high-level, general-purpose programming language


Why was the programming language named as Python?
  1. The developer's love for snakes

  2. It is named after the British comedy group Monty Python

  3. Both of the above

  4. None of the above

Answer

Answer is 2

Python is named after a British comedy group called the Monty Python. Van Rossum thought he needed a name that was short, unique, and slightly mysterious, so he decided to call the language Python.


Who developed Python programming language?
  1. Brendan Eich

  2. Guido van Rossum

  3. James Gosling

  4. Rasmus Lerdorf

Answer

Answer is 2

  1. Brendan Eich developed Javascript

  2. Guido van Rossum developed Python programming language

  3. James Gosling developed Java programming language

  4. Rasmus Lerdorf developed PHP





In which year was Python developed?
  1. 1995

  2. 2001

  3. 1991

  4. 1994

Answer

Answer is 3

  1. Java and Javascript was developed in 1995

  2. Scala was developed in 2001

  3. Python was developed in 1991

  4. PHP was developed in 1994


What type of programming language is python?
  1. Interpreted programming language

  2. interactive programming language

  3. Object-oriented programming language

  4. All of the above

Answer

Answer is 4

Python is an interpreted, interactive, object-oriented programming language.


What is the extension of Python files which contains the source code?
  1. .p

  2. .python

  3. .py

  4. .pyc

Answer

Answer is 3

.py files contain the source code of a program. Whereas . pyc file contains the bytecode of your program.



Is Python interpreted or compiled language?
  1. Python is neither interpreted or compiled

  2. Python is both interpreted and compiled

  3. Python is only interpreted

  4. Python is only compiled

Answer

Answer is 2

Python is both compiled and interpreted language. Python code is first compiled and then interpreted line by line. The compiled code gets deleted as soon as the code gets executed in Python.


In which language is Python written?
  1. C

  2. C++

  3. PHP

  4. Java

Answer

Answer is 1

Python is written in C language.


What are the the rules that define python programming language called?
  1. Code

  2. Comments

  3. Syntax

  4. Procedures

Answer

Answer is 3

How is a block of code defined in python?
  1. ( ... )

  2. { … }

  3. spaces ot tab

  4. Enter

Answer

Answer is 3 Python uses indentation which are spaces or tabs to define blocks of code.




🔥 LLM Ready Text Generator 🔥: Try Now

Subscribe to get all the updates

© 2025 Metric Coders. All Rights Reserved

bottom of page