Question
The downstream speed of a boat is 4 km/hr more than its
upstream speed and the ratio of the speed of the boat in still water to the speed of the stream is 5:2. Find the total time taken by boat to travel 42 km downstream and 30 km upstream?Solution
Let the speed of boat in still water be x km/hr and that of stream be y km/hr. ATQ, ⇒ (x + y) – (x – y) = 4 ⇒ y = 2 km/hr ⇒ x = 2 × 5/2 = 5 km/hr Required time = [42/(5+2)] + [30/(5−2)] = 16 hr
In Java, what will be the output of the following code snippet?
public class Test {
public static void main(String[] args) { <...
Which sorting algorithm is considered the most efficient for large datasets with no additional memory constraints?
What is a fundamental characteristic of a singly linked list?
Which cryptographic concept ensures that data integrity is preserved and cannot be altered during transmission?
Which of the following correctly describes the primary difference between Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS)?
...Which of the following is a core characteristic of Big Data?
In the context of asymmetric encryption, which of the following is a key feature of public-private key pairs?
- Computer Architecture
Which architectural feature is crucial for improving the performance of modern multi-core processors?
In a binary tree, what is the maximum number of children a node can have?
What is the base case in a recursive function?