MCQ Practice Single Best Answer Topic: Python Module MCQ

Q What will be the output after the following statements?
 import random as rd
print(rd.randint(4,7))

Question ID
#3558
Subchapter
Python Module MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A A random float value between 4 and 7, including 4 and 7
  • B A random float value between 4 and 7, excluding 4 and 7
  • C A random integer value between 4 and 7, excluding 4 and 7
  • D A random integer value between 4 and 7, including 4 and 7
Correct Answer: D

Explanation

A random integer value between 4 and 7, including 4 and 7

Share This Question

Share this MCQ with your friends or study group.