MCQ Answer

Which of the following is equivalent to random.randint(3, 6)?

Which of the following is equivalent to random.randint(3, 6)?

निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है?
Topic : Modules in Python

A. random.choice([3, 6])

B. random.randrange(3, 6)

C. 3 + random.randrange(3)

D. 3 + random.randrange(4)




Correct Answer is :

D. 3 + random.randrange(4)



Explanation
random.randint(3, 6) can return any one of 3, 4, 5 and 6.
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 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 Best Website and Software Company in Allahabad