Python MCQs with answer

 1. Who developed Python Programming Language?
A) Wick van Rossum
B) Rasmus Lerdorf
C) Guido van Rossum
D) Niene Stomach
answer:- (c)


2. Which of the following is not a keyword in Python?

A) and

B) as

C) assert

D) on

answer:- (d)


3. Which of the following is the correct extension of the Python file?
A) .python
B) .pl
C) .py
D) .p
answer:- (c)
4. Which of the following is not a valid variable name in Python?
A) my_variable
B) 2nd_variable
C) variable2
D) None of the above
answer:- (b)
5. Is Python case sensitive when dealing with identifiers?
A) no
B) yes
C) machine dependent
D) none of the mentioned
answer:- (b)

Post a Comment

0 Comments