Question
A sum of money amounts to Rs 6050 in 2 years and Rs 6655
in 3 years at compound interest, interest being compounded annually. What is the rate of interest per annum?Solution
ATQ, Let the principal be P and the rate be r% p.a. Amount after 2 years = P(1 + r/100)Β² = 6050 Amount after 3 years = P(1 + r/100)Β³ = 6655 Divide the second by the first: [ P(1 + r/100)Β³ ] / [ P(1 + r/100)Β² ] = 6655 / 6050 β 1 + r/100 = 6655 / 6050 Simplify 6655/6050: Divide numerator and denominator by 5: 6655 Γ· 5 = 1331 6050 Γ· 5 = 1210 So, 1 + r/100 = 1331/1210 Notice 1331 = 11Β³ and 1210 = 11 Γ 110 β 1331/1210 = 11/10 So, 1 + r/100 = 11/10 β r/100 = 1/10 β r = 10%
Complete a simple hash function for a string s that sums the ASCII values of its characters and then takes the modulo of a prime number M.
def si...
Which is relational Database
Which of the following is a potential problem when multiple threads access and modify shared data concurrently without proper synchronization?
Complete the Java method to extract a substring from text starting at startIndex and having length characters.
public class StringUtil {
οΏ½...
What mechanism is primarily responsible for managing the sequence of function calls and their local variables in a recursive function?
In Java, a class can inherit from how many other classes directly?
If you have MAC address then to know the IP address you will use :
Which of the following operation is performed by Domain Name Server (DNS)?
Which TCP feature improves performance specifically over wireless networks where packet loss occurs due to noise, not congestion?
A data analyst frequently performs range queries (e.g., "find all records where salary is between X and Y"). Which type of indexing is generally most ef...