Question
The speed of a bike increases by 3 km/hr after every 1
hour. If the distance travelled by the bike in 1st hour is 24 km, the find the total distance travelled by the bike in 10 hours.Solution
Since, the speed of the bike increases by 3 km/hr after every 1 hour, therefore the bike will travel 3 km extra after every 1 hour. Therefore, distance travelled by the bike in 1st hour = 24 km Distance travelled by the bike in 2nd hour = 24 + 3 = 27 km Distance travelled by the bike in 3rd hour = 27 + 3 = 30 km This form an AP i.e. 24, 27, 30………distance travelled in 16th hour Therefore, total distance travelled by the bike in 10 hours = sum of the AP Distance travelled in 10 hours = (n/2){2a + (n – 1)d} Where n = number of terms = 10, a = 1st term = 24 and d = common difference = 3 Therefore, distance travelled in 10 hours = (10/2){2 × 24 + (10 – 1) × 3} = (10/2)(48 + 27) = 375 km
In Java, which interface defines the basic operations for a queue, and which class is a common concrete implementation that supports these operations wi...
When performing matrix multiplication (C = A \times B) in a code flow, if matrix A is m \times n and matrix B is n \times p, what is the time complexity...
What is the primary goal of disk scheduling in operating systems?
What is the output of the following part of python program?
x = ("apple", "banana", "cherry")
print(x)Â
In data analysis, a "sparse matrix" is often used. What is the defining characteristic of a sparse matrix?
Which OOP principle focuses on showing only essential information and hiding the complex implementation details from the user?
The "load factor" of a hash table is a critical metric. What does it represent?
Which network security device typically enforces a policy based on IP, port and protocol and can operate at transport and application layer when deep in...
What is the primary goal of access authentication in computer systems?
Complete the while loop condition for an iterative binary search implementation.
def binary_search(arr, target):
  low = 0
 �...