Category

Object Oriented Programming MCQs


Which feature allows open recursion, among the following?


aUse of this pointer


bUse of pointers


cUse of pass by value


dUse of parameterized constructor


View Answer Use of this pointer

Which of the two features match each other?


aInheritance and Encapsulation


bEncapsulation and Polymorphism


cEncapsulation and Abstraction


dAbstraction and Polymorphism



Which header file is required in C++ to use OOP?


aiostream.h


bstdio.h


cstdlib.h


dOOP can be used without using any header file



Which concept of OOP is false for C++?


aCode can be written without using classes


bCode must contain at least one class


cA class must have member functions


dAt least one object should be declared in code



Why Java is Partially OOP language?


aIt supports usual declaration of primitive data types


bIt doesn’t support all types of inheritance


cIt allows code to be written outside classes


dIt does not support pointers



When OOP concept did first came into picture?


a1970’s


b1980’s


c1993


d1995


View Answer 1970’s

How many classes can be defined in a single program?


aOnly 1


bOnly 100


cOnly 999


dAs many as you want


View Answer As many as you want

Which language does not support all 4 types of inheritance?


aC++


bJava


cKotlin


dSmall Talk


View Answer Java

Which Feature of OOP illustrated the code reusability?


aPolymorphism


bAbstraction


cEncapsulation


dInheritance


View Answer Inheritance

Pure OOP can be implemented without using class in a program. (True or False)


aTrue


bFalse


cA & B


d None of these


View Answer False

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.




BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2022, Designed & Developed by BolPakistan