Question
A family consists of father, mother, son and daughter.
At the time of father’s marriage, the mother was 7 years younger than her husband. The present age of the mother is three times the present age of her son. The ratio of the present ages of the son and daughter is 5:4. The present age of the daughter is 12 years. Find the present age of the father.Solution
ATQ, Present age of daughter = 12 years Son : Daughter = 5 : 4 ⇒ Son’s age = 12 × 5/4 = 15 years Mother’s present age = 3 × 15 = 45 years Mother is 7 years younger than father ⇒ Father’s present age = 45 + 7 = 52 years
Complete a simple hash function for a string s that sums the ASCII values of its characters and then takes the modulo of a prime number M.
def si...
Which is relational Database
Which of the following is a potential problem when multiple threads access and modify shared data concurrently without proper synchronization?
Complete the Java method to extract a substring from text starting at startIndex and having length characters.
public class StringUtil {
�...
What mechanism is primarily responsible for managing the sequence of function calls and their local variables in a recursive function?
In Java, a class can inherit from how many other classes directly?
If you have MAC address then to know the IP address you will use :
Which of the following operation is performed by Domain Name Server (DNS)?
Which TCP feature improves performance specifically over wireless networks where packet loss occurs due to noise, not congestion?
A data analyst frequently performs range queries (e.g., "find all records where salary is between X and Y"). Which type of indexing is generally most ef...