Question
Two hats are picked at random, what is the probability
that one is blue and one is yellow? A box contains 6 red, 4 blue, 2 green and 4 yellow hats.Solution
Total number of hats = 6 + 4 + 2 + 4 = 16 Let S be the sample space. Then, n(S) = number of ways of drawing 2 hats out of 16 = ¹⁶C_2 = (16 × 15 )/( 2 × 1) = 120 Let E= event of drawing two hats so that one is blue and one is yellow. n(E) = ⁴C_1×⁴C_1= 4 × 4= 16 ∴ P (E) = (n(E))/(n(S)) = 16/120 = 2/15
What is the output of the following Python code snippet?
x = [1, 2, 3]
y = x
x.append(4)
print(y)
What is the purpose of the subnet mask in IP addressing?
Which isolation level allows transactions to read uncommitted changes made by other transactions?
Which company originally developed the Go programming language?
Conditional statements are also known as ________ statements.
What issue does the “Count to Infinity” problem relate to in distance-vector protocols?
Running time T(n) where 'n' is the input size of the recursive algorithm given as : T(n) = c + T(n-1), if n > 1 ; T(n) = d if n < 1. The order of the a...
The normal distribution is also known as the:
In 16-bit 2’s complement representation, the decimal number -28 is
What is a cache memory?