Question
The sum of the ages of A and B is (3x + 10) years. 5
years ago, the ratio of their ages was 4:5. Find the present age of A, if B is 4 years older than A.Solution
Solution: Let A's age be y years and B's age be y + 4 years. According to the given condition, y + (y + 4) = 3x + 10 2y + 4 = 3x + 10 2y = 3x + 6 y = (3x + 6) / 2 5 years ago, the ratio of their ages was 4:5. So, (y - 5) / (y + 4 - 5) = 4/5 (y - 5) / (y - 1) = 4/5 Cross-multiply and solve for y: 5(y - 5) = 4(y - 1) 5y - 25 = 4y - 4 y = 21 Present age of A = 21 years
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: