qobjects = [ { question: "Which one of the following functions returns a random number from 0 to 100?", options: [ "random.rand(100)", "random.randint(100)", "random.choice(100)" ], correct: 1 }, { question: "Which one of the following functions returns a random floating number from 0 to 1?", options: [ "random.rand()", "random.float()", "random.r()" ], correct: 0 }, { question: "Consider the following code:
x=random.randint(100, size=(2))
What is true about the value of x?", options: [ "x will be a 2-D array containing random integers from 0 to 100", "x will be a 1-D array containing 100 random integers from 0 to 2", "x will be a 1-D array containing 2 random integers from 0 to 100" ], correct: 2 } ]