Question
A bag contains 10 white and some black balls. If the
probability of drawing a black ball from the bag is 2 times that of drawing a white ball, find the number of black balls in the bag.Solution
Given, Number of white balls = 10 Let x be the number of black balls. Total number of balls in the bag = 10 + x Also, the probability of drawing a black ball from the bag is 1.8 times that of drawing a white ball. β x/(10 + x) = 2[10/(10 + x)] β x = 20 Hence, the number of black balls in the bag = 20.
Which IPC mechanism provides synchronization capabilities to prevent race conditions between processes?
Which data structure is ideal for implementing a LRU (Least Recently Used) cache?
What is the basic component of an electronic circuit that restricts the flow of current?
Which of the following is NOT a common exception class in Java?
a snowflake schema is a logical arrangement of tables in a multidimensional database such that the entity relationship diagram resembles a snowflake sha...
Which of the following is a common programming technique to prevent SQL injection attacks?
Which key is used to create a digital signature?
___ is used to reduce cache hit time.
What does the term "microprogramming" refer to in CPU control design?
Autovalue is a property of