BPSC Tre 4.0 OOPS Concepts Practice Set

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

Asked in BPSC TRE 3.0
B.
C.
A.
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?

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (5). Who invented OOPS?

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

Que: (17). Which feature of oops is indicated by the following code?

Asked in BPSC TRE 3.0
                            class student{  int marks;  };
class topper:public student{  int age;  topper(int age){ this.age=age; } };
                        
C.
B.
A.
D.
Open question page

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

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (19). Why Java is Partially oops language?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page