Question
What approximate value will come in place of the
question mark (?) in the following question? (Note: You are not expected to calculate the exact value.) (118.92 + 18.922 ) × 3.11 - 224.92 × 4.99 = ? ÷ 4.19Solution
ATQ, (118.92 + 18.922) × 3.11 - 224.92 × 4.99 = ? ÷ 4.19 (119 + 192) × 3 - 225 × 5 ~ ? ÷ 4 (119 + 361) × 3 - 1125 ~ ? ÷ 4 480 × 3 - 1125 ~ ? ÷ 4 1440 - 1125 ~ ? ÷ 4 315 ~ ? ÷ 4 ? ~ 315 × 4 ? ~ 1260
Which OOP concept allows a class to inherit properties and behaviors from another class?
The ability of an object to take on many forms is known as:
Which OOP principle is most closely related to the concept of "information hiding"?
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:
Which of the following best represents a real-world example of abstraction?
Which OOP principle binds data and the methods that operate on that data within a single unit?
Consider a BankAccount class with a balance field. To properly encapsulate balance, it should be declared as:
Which special method is automatically called when an object of a class is created, typically used for initializing the object's state?
What is the primary difference between an abstract class and an interface in Java (pre-Java 8)?
Which of the following is a benefit of encapsulation?