Question
The LCM of two numbers is 40 times its HCF. If the
product of the numbers is 1440, find their HCF.Solution
LCM = 40 x HCF formula used LCM x HCF = Product of no.'s let HCF be a LCM = 40a Now, 40a x a = 1440 40a2 = 1440 a2 = 36 a = 6
The ability of an object to take on many forms is known as:
An "object" is an instance of a:
In Python, if you want to call the constructor of a parent class explicitly, which method do you use?
What is a key benefit of encapsulation?
What is the main purpose of an interface in OOP?
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
The concept of showing only essential features of an object and hiding the complex implementation details is called:
Which of the following is a common way to achieve abstraction in OOP?
An abstract class:
Which type of polymorphism is achieved through method overloading (where multiple methods have the same name but different parameters)?