MCQ Answer

<p>Which can be the output of the following Python code?</p> <pre><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randrange(1,100,10))</span></pre>

Which can be the output of the following Python code?

import random
print(random.randrange(1,100,10))


निम्नलिखित पायथन कोड का आउटपुट कौन सा हो सकता है?

import random
print(random.randrange(1,100,10))


Topic : Modules in Python

A. 32

B. 67

C. 91

D. 80




Correct Answer is :

C. 91



Explanation
The output of this function can be any value which is a multiple of 10, plus 1. Hence a value like 11, 21, 31, 41…91 can be the output. Also, the value should necessarily be between 1 and 100. The only option which satisfies this criteria is 91.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz