1.

The function random.randint(4) can return only one of the following values. Which?(a) 4(b) 3.4(c) error(d) 5I had been asked this question in an interview for job.This is a very interesting question from Random Module in section Mapping Functions and Modules of Python

Answer»

The correct choice is (C) ERROR

To EXPLAIN I would SAY: Error, the function takes two arguments.



Discussion

No Comment Found

Related InterviewSolutions