This Python Quiz we take very basic MCQs, these MCQs are related to Data type, History of Python, Variable and More. So First off all try to solve Question himself and after that you can see Answer. So Let' Start Python Online Test. 

Important Python MCQs | Python Basic Question answer 


1. Who developed the Python language?

A. James Gosling

B. Guido Van Rossum

C. Dennis M. Ritchie

D. Brendan Eich


2. In which year was the Python language developed?

A. 1995

B. 1972

C. 1981

D. 1989

 

3. Which of the following is an invalid variable?

A. my_string_1

B. 1st_string

C. foo

D. _


4. In which language,Python written?

A. English

B. PHP

C. C

D. All of the above


5. Which one of the following is the correct extension of the Python file?

A. .py

B. .python

C. .p

D. None of these


6. Which character is used in Python to make a single line comment?

A. /

B. //

C. #

D. !

 Python फ्री टेस्ट हिन्दी में देने के लिए यहाँ click करें

7. Which of the following cannot be a variable?

A. __init__

B. in

C. it

D. on



8. 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


9. What is the answer to this expression, 22 % 3 is?

A. 7

B. 1

C. 0

D. 5


10. Which one of the following is not a keyword in python language?

A) True

B) and

C) switch

D) def

Also Read :


Comment answer : Evaluate following Expression
                                  print(2**3)

A. 9

B. 6

C. 8

D. Error 


11. What will be the output of the following code ?

                       a=5
                       b=15
                       print(b/a)

A. 3.0

B. 3

C. 45

D. 1/3

 

12. What dataype is the object below ?

L = [1, 23, ‘hello’, 1]

A. List

B. Dictionary

C. String

D. Tuple


13. Which of the following is not a valid relational operator?

A) <

B) =

C) >=

D) <=


14. Which is an incorrect variable name?

A) Id_No2

B) ID_NO

C) IdNo

D) Id No


15. What will be the output of the following code ?
                                   name="satyam"
                                   age=23
                                   print(name+age)

A) satyam23

B) name+age

C) error

D) None