Question
4 years back, the combined age of 'Arvind' and 'Chirag'
was 9 years lower than the current total age of 'Arvind' and 'Bishma'. Seven years from now, the age total of 'Bishma' and 'Chirag' will be 63 years. What is 'Chirag's' current age?Solution
ATQ, Seven years hence from now, the sum of ages of 'Bishma' and 'Chirag' will be 63 years. So, sum of present age of 'Bishma' and 'Chirag' = 63 - (2 × 7) = 49 years Let present age of 'Chirag' be 'p' years. So, present age of 'Bishma' = (49 - p) years Let the sum of present ages of 'Arvind' and 'Bishma' be 'q' years. So, the present age of 'Arvind' = q - (49 - p) = (q + p - 49) years Four years ago from now, sum of ages of 'Arvind' and 'Chirag' was 9 years less than the sum of present ages of 'Arvind' and 'Bishma'. So, ATQ; (q + p - 49 - 4) + (p - 4) + 9 = q Or, q + 2p - 48 = q Or, 2p = 48 So, p = (48/2) = 24 So the present age of 'Chirag' = p = 24 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: