Question
A bag contains red, green, and blue balls, with a total
of 16 balls. The probability of drawing two blue balls in one draw is 3/8. How many blue balls are in the bag?Solution
Let number of blue balls in the bag be βxβ.According to question;xC2/16C2 = 3/8Or, x(x β 1) = 90Or, x2 β x β 90 = 0Or, x2 β 10x + 9x β 90 = 0Or, x(x β 10) + 9(x β 10) = 0Or, (x β 10)(x + 9) = 0Or, x = 10 or x = -9 (not possible)So, number of blue balls in the bag = 10
Time complexity of heap sort is:
Which type of database key is a candidate key that has not been chosen as the primary key?
Which data structure uses LIFO (Last In, First Out) principle?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
- Which of the following is the primary characteristic of Infrastructure as a Service (IaaS) in cloud computing?
Which of the following accurately describes the role of a "foreign key" in a relational database system?
Deletion in Red-Black Trees maintains balance using:
Which SQL command is used to remove only specific rows from a table while preserving the structure and other rows?
In the dynamic programming approach for LCS, the base cases are crucial for correctly initializing the dp table.
Consider the following Python co...
RISC stands for: