PG TRB COMPUTER INSTRUCTOR GRADE 1 STUDY MATERIAL - 01

1. The OOPs concept in C++, exposing only necessary information to users or clients is known as

A.  Abstraction

B.  Encapsulation

C.  Data hiding

D.  Hiding complexity

2. Which of the following is an abstract data type?

A.  Class

B.  Int

C.  String

D.  Double

3. Hiding the complexity is known as

A.  Abstraction

B.  Encapsulation

C.  Data hiding

D.  Composition

4. For Cat and Animal class, correct way of inheritance is

A.  class Cat: public Animal

B.  class Animal: public Cat

C.  Both are correct way

D.  None is correct way

5. In a class, encapsulating an object of another class is called

A.  Composition

B.  Inheritance

C.  Encapsulation

D.  None of these

6. In a class, encapsulating an object of another class is called

A.  Composition

B.  Inheritance

C.  Encapsulation

D.  None of these

7. Features not available in C++ object oriented programming is

A.  Virtual destructor

B.  Virtual constructor

C.  Virtual function

 D.  All

8. IS A relationship in C++ is

A.  Inheritance

B.  Encapsulation

C.  Composition

D.  None of these

9. If you want to write multiple functions in a class with same name, then what C++ feature will you use?

A.  Function overriding

B.  Encapsulation

C.  Function overloading

D.  None of these

10. Polymorphism types is/are

A.  Compile time

B.  Run time

C.  Both

D.  None of these

0 Response to "PG TRB COMPUTER INSTRUCTOR GRADE 1 STUDY MATERIAL - 01"

Post a Comment