Test
Random Module of Python
Este test tiene tiempo límite, así que se abre en el reproductor de siempre.
Preguntas del test (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.
- AVerdadero
- BFalso
4randint(a, b) returns an integer value between a and b.
- AVerdadero
- BFalso
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.
Información
- Descripción
- Coding Python Test sobre Random Module of Python, creado por PathaPadha Support el 27/10/2020.
- Autor
- PathaPadha Support
- Idioma
- English
- Visitas
- 0
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test