Question
'A' alone can do some work in 15 days. 'B' is 40% more
efficient than 'A'. 'A' worked alone for 8 days and left. How much time (in days) does 'B' need to finish the remaining work?Solution
Let the efficiency of 'A' be x units/day.
So, efficiency of 'B' = 1.4x units/day.
Total work = 15 × x = 15x units.
Work done by 'A' in eight days = 8 × x = 8x units.
Remaining work = 15x − 8x = 7x units.
Time taken by 'B' to finish the remaining work = ({7x/1.4x} = 5) days.
The ability of an object to take on many forms is known as:
The ability of an object to take on many forms, or the ability of a single interface to represent different underlying forms, is known as:
What is a "method" in the context of OOP?
The bundling of data (attributes) and methods (functions) that operate on the data into a single unit (class), and restricting direct access to some of ...
In OOP, a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and impleme...
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
Which of the following is a common way to achieve abstraction in OOP?
How is data hiding primarily achieved in OOP?
In Python, if you want to call the constructor of a parent class explicitly, which method do you use?
Which OOP principle binds data and the methods that operate on that data within a single unit?