Question
Glass S initially holds 200 ml of coke, while Glass T
contains 110 ml of soda. First, 40 ml of coke is transferred from Glass S to Glass T. Then, 30 ml of the resulting mixture from Glass T is taken and poured back into Glass S. What is the final ratio of coke to soda in Glass S?Solution
Glass S has coke = 200 ml
On taking 40 ml, coke remaining = 200 - 40 = 160 ml
On adding 40 ml coke in glass T, amount of mixture in glass T = 110 + 40 = 150 ml
Ratio of coke and soda in glass T = 40: 110 = 4: 11
Quantity of coke in 30 ml of mixture from glass T = 30 * (4/15) = 8 ml
Quantity of soda in 30 ml of mixture from glass T = 30 * (11/15) = 22 ml
Quantity of coke in glass S after addition of 30 ml from glass T = 160 + 8 = 168 ml
Quantity of soda in glass S after addition of 30 ml from glass T = 22 ml
Required Ratio = 168: 22 = 84: 11
Which of the following ACID properties ensures that either all operations within a transaction are completed successfully, or none are?
Which constraint ensures that a column contains only unique values, but allows NULL values?
Query optimization heuristics often include:
Given a `Queue` data structure with `enqueue` and `dequeue` operations. What is the element returned by the last `dequeue` operation in the following se...
During transaction before commit which of the following statements is done automatically in case of shutdown?
Indexes improve query performance but can degrade performance of:
The 'thrashing' in an operating system is related to:
Which property of a transaction ensures that either all operations within the transaction are completed successfully, or none of them are?
In a relational database, what is a candidate key?
In a relational database, which relationship allows multiple records in one table to be associated with multiple records in another table?