BPSC Tre 4.0 OOPS Concepts Practice Set

Que: (1). Which among the following, for a pure OOP language, is true?

A.
B.
C.
D.
Open question page

Que: (2). In which access should a constructor be defined, so that object of the class can be created in any function?

A.
B.
C.
D.
Open question page

Que: (3). When OOP concept did first come into picture?

A.
B.
C.
D.
Open question page

Que: (4). Which access specifier is usually used for data members of a class?

A.
B.
C.
D.
Open question page

Que: (5). Who invented OOP?

A.
B.
C.
D.
Open question page

Que: (6). In multilevel inheritance, which is the most significant feature of OOP used?

A.
B.
C.
D.
Open question page

Que: (7). The copy constructors can be used to

A.
B.
C.
D.
Open question page

Que: (8). Which among the following can show polymorphism?

A.
B.
C.
D.
Open question page

Que: (9). How many types of access specifiers are provided in OOP (C++)?

A.
B.
C.
D.
Open question page

Que: (10). Which header file is required in C++ to use OOP?

A.
B.
C.
D.
Open question page

Que: (11). What happens when an object is passed by reference?

A.
B.
C.
D.
Open question page

Que: (12). Which among the following represents correct constructor?

A.
B.
C.
D.
Open question page

Que: (13). What is encapsulation in OOP?

A.
B.
C.
D.
Open question page

Que: (14). Which feature of OOP reduces the use of nested classes?

A.
B.
C.
D.
Open question page

Que: (15). What is an abstraction in object-oriented programming?

A.
B.
C.
D.
Open question page

Que: (16). Which is the correct syntax of inheritance?

A.
B.
C.
D.
Open question page

Que: (17). 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; } };
                        
A.
B.
C.
D.
Open question page

Que: (18). Which of the following is not true about polymorphism?

                            Which of the following is not true about polymorphism?

(b) It is feature of OOP

(c) Ease in readability of program

(d) Increases overhead of function definition always

(a) Helps in redefining the same functionality
                        
A.
B.
C.
D.
Open question page

Que: (19). 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
                        
A.
B.
C.
D.
Open question page