OOP Basic Multiple Questions and Answers.




11.Which concept of OOP is false for C++ ?
A. Code can be written without using classes
B. Code must contain at least one class
C. A class must have member functions
D. At least one object should be declared in code

12.Which header file is required in C++ to use OOP ?
A. iostream.h
B. stdio.h
C. stdlib.h
D. OOP can be used without using any header file

13.Which of the two features match each other ?
A. Inheritance and Encapsulation
B. Encapsulation and Polymorphism
C. Encapsulation and Abstraction
D. Abstraction and Polymorphism

14.Which feature allows open recursion, among the following ?
A. Use of this pointer
B. Use of pointers
C. Use of pass by value
D. Use of parameterized constructor

15. Which among the following is true?
A. The private members can’t be accessed by public members of the class
B. The private members can be accessed by public members of the class
C. The private members can be accessed only by the private members of the class
D. The private members can’t be accessed by the protected members of the class

«»


Read More :

Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS