Question
The present ages of A and B are in the ratio 5 : 3.
After 4 years, the ratio of their ages becomes 3 : 2. What will be A's age after 6 years?Solution
Let present ages be 5x and 3x. After 4 years: (5x + 4) / (3x + 4) = 3 / 2 2(5x + 4) = 3(3x + 4) 10x + 8 = 9x + 12 x = 4 Present age of A = 5x = 20 years A's age after 6 years = 20 + 6 = 26 years Hence, the correct answer is 26 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...