1.

Both the functions randint and uniform accept ____________ parameters.(a) 0(b) 1(c) 3(d) 2This question was addressed to me in a job interview.The doubt is from Random module topic in portion Mapping Functions and Modules of Python

Answer»

Right CHOICE is (d) 2

Easiest explanation - Both of these functions, that is, randint and uniform are included in the RANDOM module and both of these functions accept 2 parameters. For example: random.uniform(a,b) where ‘a’ and ‘b’ SPECIFY the range.



Discussion

No Comment Found

Related InterviewSolutions