You drive to the work 5 days a week for a year (50 work week…
You drive to the work 5 days a week for a year (50 work weeks). On any given day, you get a traffic ticket with probability , independently of the other days. Let be the total number of tickets you get in the year. Choose the expected value of from the choices below.
Read DetailsI want to store, in a variable named MYCOMMANDLINE, a string…
I want to store, in a variable named MYCOMMANDLINE, a string representing the following command line: echo $RANDOM I now want to be able to execute that command line, by using the variable MYCOMMANDLINE, in a non-interactive and non-login subshell. Provide the command line(s) to do so. Make sure that you get a new random number each time that you run the command.
Read DetailsA new test has been developed to determine whether a given s…
A new test has been developed to determine whether a given student is overstressed. It is known that 99.5% of all students are overstressed. This test is 95% correct if the student is not overstressed (i.e. conditional probability of the test indicating the student is not overstressed, when indeed he is not overstressed, is 0.95). This test is 85% correct if the student is in fact overstressed. Given that a particular student tests negative for stress (i.e. test shows that such student is not overstressed), choose the probability that the test results are correct (i.e. this student is indeed not overstressed) from the choices below?
Read DetailsA class has 250 undergraduate students and 50 graduate The p…
A class has 250 undergraduate students and 50 graduate The probability of an undergraduate (or graduate) student getting a grade A is 1/3 (or 1/2, respectively). Let be a random variable representing the number of students that get an A in this class. From the choices below, choose the expected value of , ().
Read DetailsLet us say we have two functions that represent the time tak…
Let us say we have two functions that represent the time taken for program execution of two different programs. Which of the following statements is/are true about the two programs? Assume n is the size of input. Select all that apply:
Read DetailsWe draw the top 7 cards from a well-shuffled standard 52-car…
We draw the top 7 cards from a well-shuffled standard 52-card deck. From the choices below, choose the probability that the 7 cards include exactly 3 aces, or exactly 2 kings, or both. Note: The 52-card deck contains 4 aces and 4 kings.
Read Details