Quiz
Random Module of Python
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (5)
1How is Random module imported in Python ?
- Aimport random
- Bimport Random
- Cimport Random_Numbers
- Dimport random_numbers
2Which function is used to generate a random floating value between 0.0 and 1.0 ?
- Auniform( )
- Brandom( )
- Crandomize( )
- Drandint( )
3uniform(a, b) returns an integer value between a and b.
- ATrue
- BFalse
4randint(a, b) returns an integer value between a and b.
- ATrue
- BFalse
5What does getrandbits(k) , where k is number of bits, return ?
- Areturns float value between the min decimal and max decimal value from given bits
- Breturns integer value between the min decimal and max decimal value from given bits
- Creturns integer value between k and infinity.
- Dreturns integer value between 0 and k.
Information
- Description
- Coding Python Quiz on Random Module of Python, created by PathaPadha Support on 27/10/2020.
- Author
- PathaPadha Support
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz