Question
A car covers a certain distance at the speed of 30 km/h
and comes back at the speed of 20 km/h. What is the average speed of the car for the entire journey?Solution
Let the distance be x km. Time taken to go = x / 30 hours, Time taken to return = x / 20 hours. Total time taken = x / 30 + x / 20 = (2x + 3x) / 60 = 5x / 60 = x / 12 hours. Average speed = Total distance / Total time = (2x) / (x / 12) = 24 km/h.
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?