CARVIEW |
Random variables
Let's Test Your Knowledge
Question 2
If A and B are two mutually exclusive events, then P (A U B) =?
P(A)-P(B)
P(A)+P(B)
0
P(A)/P(B)
Question 3
If 4 bulbs are there each of which can be defective or non-defective then what is the total number of possible outcomes?
16
8
2
4
Question 4
Which of the following is a random variable?
The number of heads when flipping three coins
The sum of the first five prime numbers
The product of 2 and 3
The color of the sky
Question 5
Which of the following is a discrete random variable?
The height of students in a class
The number of students absent in a day
The time it takes to run a mile
The weight of a fruit
Question 6
If a die is rolled, what is the probability of rolling a number greater than 4?
1/2
1/3
1/6
2/3
Question 9
In the context of algorithms, a random variable is used to:
Assign unique IDs to variables
Count the total execution time
Map outcomes of a random experiment to numerical values
Determine the number of iterations in a loop
Question 10
What is the expectation of a random variable used for in a randomized algorithm?
Worst-case performance
Average-case performance
Space complexity
Time complexity in the best case
There are 10 questions to complete.