Question
The probability of selecting a rotten egg randomly from
a basket of 1000 eggs is 0.16. What is the number of rotten eggs in the basket?Solution
Total number of eggs in the basket = n(S) = 1000 Let E be the event of selecting a rotten egg from the basket. Number of outcomes favourable to E = n(E) P(E) = n(E)/n(S) 0.16 = n(E)/1000 ⇒ n(E) = 1000 × 0.16 ⇒ n(E) = 160 Therefore, the number of rotten eggs in the basket = 160
Which of the following integrity constraints ensures that every non-null foreign key value must reference an existing primary key value in another tabl...
Hashing is used for:
The amortized cost of appending an element at the end of a dynamic array is:
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5Â Â Â Â Â Â Â Â Â Â Â Â Â Â
Â
In asymmetric encryption, which of the following statements is correct?
Which algorithm constructs a suffix tree in linear time?
What is the primary purpose of a B+ Tree in a database management system?
Which sorting algorithm has O(n log n) average case?