Question
Originally, Karan’s monthly income was Rs. 25,000, and he
used to spend and save in the ratio of 1:4. After a revision, he cut his expenses by 50% and boosted savings by 25%. Find the amount of hike in his income.Solution
ATQ,
Initially, expenditure of Karan = 25000 × (1/5) = Rs. 5,000
Initially, savings of Karan = 25000 × (4/5) = Rs. 20,000
After salary hike, expenditure = 5000 × (50/100) = Rs. 2,500
After salary hike, savings = 20000 × (125/100) = Rs. 25,000
So, increased salary = 2500 + 25000 = Rs. 27,500
Required salary hike = 27500 – 25000 = Rs. 2,500
Consider the following C code snippet:
#include
void printPattern(int n) {
if (n <= 0) {
�...
Which of the following is a common challenge in transitioning from a monolithic to a microservices architecture?
In Python, if a method in a subclass has the same name as a method in its superclass, which method will be called when invoked on an object of the subcl...
The following Java code attempts to demonstrate multiple inheritance, which is not directly supported for classes in Java. How can similar functionality...
The following C++ code has a common inheritance-related issue. How can it be debugged to ensure the derived class constructor properly initializes the b...
A recursive backtracking solution for the Subset Sum problem is generating duplicate subsets or missing valid subsets. Assuming the input array might co...
In a Breadth-First Search (BFS) algorithm for graph traversal, what is the primary role of a queue?
Which of the following is a characteristic of "tight coupling" between software modules?
In a perfectly balanced Binary Search Tree with N nodes, what is the worst-case time complexity for searching for an element?
What is a characteristic feature of a bipartite graph?