Question
A boat takes 28 hours for travelling downstream from
point A to point B and coming back to point C midway between A and B. If the velocity of the stream is 6km/hr and the speed of the boat in still water is 9 km/hr, what is the distance between A and B?Solution
Downstream speed = 9+6 = 15 Upstream speed = 9-6 = 3 Now total time is 28 hours If distance between A and B is d, then distance BC = d/2 Now distance/speed = time, so d/15 + (d/2)/3= 28 Solve, d = 120 km
What is false about linked list?
Which layer of the TCP/IP model is responsible for IP addressing and routing?
Which hazard occurs when there is a conflict in accessing a shared resource, such as a register file or an ALU, in an instruction pipeline?
Which consensus mechanism is used by Bitcoin, the first blockchain-based cryptocurrency?
In dynamic programming, what does "optimal substructure" mean?
What is a "token" in lexical analysis?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?
Which data visualization technique is commonly used to represent the frequency distribution of a large dataset?
An XML document is a string of ____.
Which of the following algorithm is most sensitive to outliers?