BPSC Tre 4.0 OOPS Concepts Practice Set
Que: (1). Which of the following is not true about polymorphism?
Que: (2). Which among the following represents correct constructor?
Que: (3). What is encapsulation in OOP?
Que: (4). Which among the following can show polymorphism?
Que: (5). Which among the following, for a pure OOP language, is true?
Que: (6). Which is the correct syntax of inheritance?
Que: (7). In which access should a constructor be defined, so that object of the class can be created in any function?
Que: (8). Why Java is Partially OOP language?
Why Java is Partially OOP language?
(b) It does not support pointers
(d) It doesn't support all types of inheritance
(a) It allows code to be written outside classes
(c) It supports usual declaration of primitive data types
Que: (9). Which feature of OOP reduces the use of nested classes?
Que: (10). The copy constructors can be used to
Que: (11). How many types of access specifiers are provided in OOP (C++)?
Que: (12). What is an abstraction in object-oriented programming?
Que: (13). What happens when an object is passed by reference?
Que: (14). Which access specifier is usually used for data members of a class?
Que: (15). Which header file is required in C++ to use OOP?
Que: (16). Who invented OOP?
Que: (17). When OOP concept did first come into picture?
Que: (18). Which feature of OOP is indicated by the following code?
class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };