GoConqr has a new look! Let us know what you think.

Quiz

Random Module of Python

PathaPadha Support 5 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (5)

  1. 1How is Random module imported in Python ?
    1. Aimport random
    2. Bimport Random
    3. Cimport Random_Numbers
    4. Dimport random_numbers
  2. 2Which function is used to generate a random floating value between 0.0 and 1.0 ?
    1. Auniform( )
    2. Brandom( )
    3. Crandomize( )
    4. Drandint( )
  3. 3uniform(a, b) returns an integer value between a and b.
    1. ATrue
    2. BFalse
  4. 4randint(a, b) returns an integer value between a and b.
    1. ATrue
    2. BFalse
  5. 5What does getrandbits(k) , where k is number of bits, return ?
    1. Areturns float value between the min decimal and max decimal value from given bits
    2. Breturns integer value between the min decimal and max decimal value from given bits
    3. Creturns integer value between k and infinity.
    4. 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.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?