Question
The monthly income of Vivek and Sohan together is Rs.
46000. The income of Vivek and Sohan is increased by 20% and 30% respectively. The new income of Sohan is Rs. 4000 more than the new income of Vivek. What is the new income of Sohan?Solution
Let the income of Vivek be x. Sohan’s income = 46000 - x New income of Sohan = New income of Vivek + 4000 Vivek’s new income = x * 120/100 Sohan’s new income = (46000 – x)*130/100 (46000 – x)* (130/100) = x * (120/100) + 4000 => (5980000 – 130)/100 = (120/100) + 4000 => (5980000 – 130x) = (120x + 400000) => 5980000 – 400000 = 120x + 130x => 5580000 = 250 Vivek’s income x = (5580000 /250) = 22320 Sohan’s income = 46000 – x = 23680 New Income of Sohan = 23680*(130/100) = Rs. 30784
Which of the following is the primary reason why polymorphism is useful in Object-Oriented Programming (OOP)?
Which of the following techniques is primarily used to address overfitting in machine learning models?
Which SQL command is used to remove only specific rows from a table while preserving the structure and other rows?
The amortized cost of appending an element at the end of a dynamic array is:
Which of the following best represents the main objective of the Requirements Analysis phase in the Software Development Lifecycle (SDLC)?
What is the output of the following recursive function call func(3) ?
int func ( int n) {Â Â Â Â Â Â Â
   if (n == 0 ) return 1 ; <...
Which design pattern is best suited for managing the creation of objects without specifying their concrete classes?
Which sorting algorithm is the most efficient for large datasets and uses a divide-and-conquer approach?
Which attack can be mitigated using DNSSEC (Domain Name System Security Extensions)?
Which of the following accurately describes the role of a "foreign key" in a relational database system?