1) Which of the following statements correctly imports the random module in Python? a) import random b) from random import c) import random.random d) from random import random e) e f) f 2) The random module in Python provides functions for generating: a) Random integers b) Random floating-point numbers c) Random choices from a sequence d) All of the above 3) Which of the following functions is used to generate a random integer between a specified range? a) randrange() b) random() c) uniform() d) choice() 4) The randrange() function in the random module can generate random integers: a) From 0 to n-1 b) From 1 to n c) From a to b (inclusive) d) From a to b (exclusive) 5) The random() function in the random module generates a random floating-point number: a) Between 0 and 1 (exclusive) b) Between 0 and 1 (inclusive) c) Between -1 and 1 (exclusive) d) Between -1 and 1 (inclusive)

Табло

Визуален стил

Опции

Шаблон за превключване

Възстановяване на авто-записаната: ?