Question
The speed of a bike increases by 4 km/hr after every 1
hour. If the distance travelled by the bike in 1st hour is 20 km, the find the total distance travelled by the bike in 12 hours.Solution
Since, the speed of the bike increases by 4 km/hr after every 1 hour, therefore the bike will travel 4 km extra after every 1 hour. Therefore, distance travelled by the bike in 1st hour = 20 km Distance travelled by the bike in 2nd hour = 20 + 4 = 24 km Distance travelled by the bike in 3rd hour = 24 + 4 = 28 km This form an AP i.e. 20, 24, 28………distance travelled in 12th hour Therefore, total distance travelled by the bike in 12 hours = sum of the AP Distance travelled in 12 hours = (n/2){2a + (n – 1)d} Where n = number of terms = 12, a = 1st term = 20 and d = common difference = 12 Therefore, distance travelled in 12 hours = (12/2){2 × 20 + (12 – 1) × 4} = (12/2)(40 + 44) = 504 km
Standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?
When applying KVL to a circuit, how are voltage drops represented?
Attributes are made of more than one simple attribute.
- State true or false Implicit type casting in C is used to convert the data type of any variable without using the actual value that the variable holds.
Concatenate two strings by using which function?
Which is the correct format specifier for double type value in C?
State true/false
Trojan works in background and steal data which is sensitive
Which of the following algorithm is most sensitive to outliers?
Which type of polymorphism is achieved through inheritance and method overriding?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?