Question
How is data hiding primarily achieved in
OOP?Solution
By declaring member variables as `private` and providing `public` getter/setter methods.
Simplify
The sum of the squares of three natural numbers is 342. These numbers are in the ratio of 3:5:2. Determine the difference between the largest and smalle...
The number of books with ‘Aarav’ and ‘Bhavna’ together is 18 more than that with ‘Chirag’, while the number of books with ‘Bhavna’ and �...
How many whole numbers between 100 and 750 are multiples of both 18 and 24?
If a number 'a' is divisible by 18 and another number 'b' is divisible by 12, then (a2 – b2) is divisible by:
Rs 720 is to be divided among P, Q and R so that P gets 3/5 of Q’s share and R gets 1/3 of P’s share. Share of R is:
- A two-digit number has digits summing up to 10. On subtracting 36 from the number, the digits get interchanged. What is the original number?
Two friends, P and Q, each have the same amount saved. Q manages to save one-fourth of his income, while P saves one-third of his. Given that P spends R...
- The digits of a two-digit number add up to 9. If 27 is subtracted from the number, the digits switch places. What is the number?
There are 3 natural numbers. If the average of any 2 numbers is added with the third number 34, 30 and 28 will be obtained. Find the numbers.