Google News
logo
Python - Quiz(MCQ)
1 .
Who is inventor of Python ?
A)
Larry Wall
B)
Mark Jukervich
C)
Guido van Rossum
D)
Dennis Ritchie

Correct Answer : Option (C) :  

Guido van Rossum

2 .
Python initial release date ?
A)
1991
B)
1992
C)
1995
D)
1996

Correct Answer : Option (A) :   1991

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

Correct Answer : Option (D) :  

All of the above.

4 .
What symbol can you use to comment out one line of code?
A)
*
B)
#
C)
//
D)
(comment)

Correct Answer : Option (B) :  

5 .
What is the difference between a class and an object in Python?
A)
There is no difference between a class and an object
B)
Classes are made from iterations while objects are not.
C)
Objects are created from classes.
D)
Objects are not able to be called. 

Correct Answer : Option (C) :  

Objects are created from classes. 

6 .
Which of the following is not a class method?
A)
Non-static
B)
Static
C)
Bounded
D)
Unbounded

Correct Answer : Option (A) :  

Non-static 

7 .
In python which keyword is used to start function ?
A)
function
B)
def 
C)
try
D)
import

Correct Answer : Option (B) :  

def 

8 .
Which of the following environment variable for Python is an alternative module search path?
A)
PYTHONPATH
B)
PYTHONSTARTUP
C)
PYTHONCASEOK
D)
PYTHONHOME 

Correct Answer : Option (D) :  

PYTHONHOME

9 .
Which of the following functions print the output to the console?
A)
echo
B)
output
C)
print
D)
console.log

Correct Answer : Option (C) :  

print 

10 .
Which module in Python supports regular expressions?
A)
re 
B)
regex
C)
pyregex
D)
None of the above

Correct Answer : Option (A) :  

re