Object Oriented Programming MCQs

Page No. 35

Object cout and cin _________________


a Can be used directly with << and >> symbols respectively

✓


bCan be used directly with >> and << symbols respectively

✖


cMust be used as a function which accepts 2 arguments

✖


dMust be used as a function which accepts 3 arguments

✖



What are singleton objects?


aThe only two objects of a class throughout the program

✖


bThe only object of a class throughout the program

✓


cThe objects that are alive throughout the program

✖


dThe objects that are created and then deleted without use

✖



A factory object is used ______________________


aTo create new classes

✖


bTo create new function

✖


cTo create new data members

✖


dTo create new objects

✓


View Answer To create new objects

Which object can be used to contain other objects?


aFirst class object

✖


bDerived class object

✖


cContainer object

✓


dEnclosure object

✖


View Answer Container object

Immutable object are used ______________________


aTo set up as a fixed state

✓


bTo set up variable object

✖


cTo set up an object of abstract class

✖


dTo set up an object of derived class

✖



What is function object?


aAn object with a single function

✓


bAn object with only functions

✖


c An object with more than one function

✖


dAn object with no functions

✖



Which among the following is not a property of an object?


aIdentity

✖


bProperties

✖


cAttributes

✖


dNames

✓


View Answer Names

Which among the following is the main use of object?


aTo create instance of a function

✖


bTo create instance of a program

✖


c To create instance of class

✓


dTo create instance of structures

✖



Is it necessary that all the abstract methods must be defined from an abstract class?


aYes, depending on code

✖


bYes, always

✓


c No, never

✖


dNo, if function is not used, no definition is required

✖


View Answer Yes, always

How many abstract classes can a single program contain?


aAt most 1

✖


bAt least 1

✖


cAt most 127

✖


dAs many as required

✓


View Answer As many as required

Goto Page No.

Page 35 of 93

Alphabetical MCQs Categories
—

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


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"
—

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


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 © 2024, Designed & Developed by BolPakistan