Question
If in Pune, number of staff members who work in Finance
department is 19 more than the number of staff members who work in Loan department in Dehradun, then what is the number of staff members who work in Credit department in Pune? Study the following table carefully. Some values are missing. Complete that based on given information in each question to answer the question. The table shows the number of staff members in Allahabad Bank in 5 different cities with total staff members being 2130. Table also shows the percentage of staff members working in 4 departments – Customer Services, Clerks, Loan and Finance with each staff members in only 1 department.Solution
% of staff members who work in Loan department in Dehradun = 100 – (20 + 22 + 20) = 38% Number of staff members who work in Loan department in Dehradun = 38% of 350 = 133 So, number of staff members who work in Credit department in Pune is 133 + 19 = 152 So number of staff members who work in Credit department in Pune = 380 – [152 + ((15 + 30)% of 380)] = 57
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?