Home / Programming Questions / Python MCQs / Page 1

Python MCQs with answers Page - 1

Dear candidates you will find MCQ questions of Python here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

Code:
print 9//2
(A) 4.5
(B) 4.0
(C) 4
(D) Error
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

(A) more()
(B) gt()
(C) ge()
(D) rshift()
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

Code:
i = 0
while i < 3:
print i
print i+1
(A) 0 2 1 3 2 4
(B) 0 1 2 3 4 5
(C) 0 1 1 2 2 3
(D) 1 0 2 4 3 5
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

(A) re
(B) regex
(C) pyregex
(D) None of the above
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

(A) Lists
(B) Dictionary
(C) Tuples
(D) Class
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

(A) List
(B) Dictionary
(C) Tuple
(D) Array
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

Code:
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2)
(A) 8
(B) 16
(C) Indentation Error
(D) Runtime Error
R
Ram Sharma ·
Coach · 167.66K points
Bookmark
Report

(A) 27
(B) 9
(C) 3
(D) 1

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.