MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following will not be returned by random.choice( 1 , )? |
| A. | 1 |
| B. | (space) |
| C. | , |
| D. | none of the mentioned |
| Answer» E. | |
| 2. |
Which of the following is equivalent to random.randrange(3)? |
| A. | range(3) |
| B. | random.choice(range(0, 3)) |
| C. | random.shuffle(range(3)) |
| D. | random.select(range(3)) |
| Answer» C. random.shuffle(range(3)) | |