Question
The current ages of A and B are in the ratio of 8:15.
Eight years ago, the ratio of their ages was 6:13. What will be the ratio of their ages 8 years from now?Solution
Let present age of A and B be 8X years and 15X years respectively. According to question, (8X – 8)/(15X – 8) = 6/13 104X – 104 = 90X – 48 14X = 56 X = 4 Desired Ratio = (8X + 8) : (15X + 8) = 40:68 = 10:17
Which keyword is used in Java to indicate that a class is inheriting from another class?
Which of the following scenarios is best suited for implementation using a stack data structure?
In R, which function reshapes data from long to wide format?
In OOP, what is an instance of a class called?
Consider the following Java code:
public class LengthMix {
  public static void main(String[] args) {
    int[] numbers...
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
What does a star schema consist of?
What is the keyword used in Java to indicate that a class is inheriting from another class?
Binary trees are often used to represent hierarchical data. Which of the following is NOT a direct application of binary trees?
Consider the following C code snippet designed to calculate the sum of digits of a non-negative integer:
  #include
  in...