Question
The sum of the ages of a father and his son is 54 years.
Six years ago, the father was 5 times as old as his son. Find their present ages.Solution
Let present age of father = F years Let present age of son = S years Given: F + S = 54 ...(1) Six years ago: Father’s age = F − 6 Son’s age = S − 6 Given: F − 6 = 5(S − 6) ⇒ F − 6 = 5S − 30 ⇒ F = 5S − 24 ...(2) Substitute (2) in (1): (5S − 24) + S = 54 6S − 24 = 54 6S = 78 S = 13 Then F = 54 − 13 = 41 Answers: Father’s present age = 41 years Son’s present age = 13 years
Which of the following best describes the primary function of Network Address Translation (NAT)?Â
In the Least Recently Used (LRU) page replacement algorithm, given the following reference string 4, 2, 4, 1, 5, 2, 3, 4, and assuming 3 frames, how man...
Which of the following is not a method of inter-process communication (IPC) in modern operating systems?Â
- In a relational database, which key uniquely identifies tuples within a table and can never contain NULL values?
Integrated Circuits (ICs) were the hallmark of which computer generation, leading to smaller, faster, and more reliable machines?
- What will the following Java code snippet output when executed, which uses a simple constructor and method overloading ? class Calculator { Â Â Â int add ...
Consider a Binary Search Tree (BST) with the following values inserted in sequence: 45, 32, 50, 15, 40, 47, 60. What will be the in-order traversal of t...
In terms of processor performance, which factor has the greatest impact on reducing instruction execution time for computationally heavy applications? ...
What will be the output of the following JavaScript code when executed?
let xhr = new XMLHttpRequest();
xhr.open("GET", "https://api.examp...
Which of the following best describes the concept of abstraction in object-oriented programming (OOP)?Â