Question
Difference between the ages of A and B is same as the
difference between the ages of B and C. The difference between the ages of A and C is 7 years. If their sum of age is 33, then find the ratio of ages of three people.Solution
According to question, => A – B = B – C => A + C = 2B-----(1) => A – C = 7 ------(2) => A = 7 + C => A + B + C = 33 => 2B + B = 33 => B = 11 Now, => A + B + C = 33 => A + 11 + C = 33 => A + C = 22 ----(3) Soving equation 2 and 3, Age of A = 14.5 Age of C = 7.5 Required ratio = 14.5:11:7.5 = 29:22:15
What is the output of the following code: x = 5; y = 2; print(x ** y)?
Which Python keyword is used to define a function?
Which of the following is correct for a single-line comment in C++?
In Java, which method is used to start a thread?
Which Java keyword is used to inherit a class?
In C, what will be the output of the following code?
int a = 5;
printf("%d", a++);
Which Python keyword is used to handle exceptions?
Which of the following algorithms is commonly used in Machine Learning for clustering tasks?
ch data structure is used in Depth-First Search (DFS)?
Which Python statement is used to create an empty set?