Professional Documents
Culture Documents
Fa3 Oop Lec
Fa3 Oop Lec
= TRUE
= PROCEDURAL PROGRAMMING
= TRUE
= MAIN METHOD
= FALSE
= TRUE
= FALSE
= PRIVATE VARIABLE
10. Class Variables are variables stored in the class and are available to all objects
of a class or objects of other classes if access is permitted
= TRUE
11. In Inheritance, the programmer can change one part of the code without affecting
other parts
= FALSE
12. Which among the following would destroy the encapsulation mechanism if it was
allowed in programming?
= Single Inheritance
= TRUE
15. If data members are private, what can we do to access them from the class
object?
16. The private members of the base class are visible in derived class but are not
accessible directly.
= TRUE
17. If base class contains 2 nested classes, will it be possible to implement single
level inheritance?
= YES ALWAYS
18. Which concept will result in derived class with more features (consider maximum
3 classes)?
= MULTIPLE INHERITANCE
2ND ATTEMPT
= OBJECT
= ABSTRACTION
= INHERITANCE
= System.out.println("#");
Other choices:
= System.out.println(#);
= System.out.println(false);
= System.out.println('#');
= CONSTRUCTOR
6. Local Variables are variables used in a method
= TRUE
7. Class Variables are variables stored in each object of a class, usually referred to
as the non-static member fields of a class.
= FALSE
= TRUE
= Standard Methods
= FALSE
11. If data members are private, what can we do to access them from the class
object?
= Data member's data type can be changed without changing any other code
16. Which among the following is false for single level inheritance?
= JAVA