Object Oriented Programming MCQs

Page No. 34

What is the type of elements of array of objects?


aClass


b Void


c String


dNull


View Answer Class

Which among the following is a mandatory condition for array of objects?


aAll the objects should be of different class


bAll the objects should be of same program classes


cAll the objects should be of same class


dAll the objects should have different data



What is an array of objects?


aAn array of instances of class represented by single name


b An array of instances of class represented by more than one name


cAn array of instances which have more than 2 instances


dAn array of instances which have different types



If same object name is given to different objects of different class then _____________


aIts compile time error


bIts runtime error


cIt’s not an error


dProgram suns smooth



A single object can be used __________________


aAs only two class types at a time


bAs only three class types at a time


cAs only one class type at a time


d As of as many class types as required



Which object can be used to access the standard input?


aSystem.inner


bcin


cSystem.stdin


d console.input


View Answer cin

Which among the following is not a use of object?


aDefining a member function


bAccessing data members


cCreating instance of a class


dUsing class members



Objects can be used _____________________


aTo access any member of a class


bTo access only public members of a class


cTo access only protected members of a class


dTo access only private members of a class



An object can be used to represent _________________


aA real world entity


bA real function


cSome real data only


dSome function only


View Answer A real world entity

Objects type ____________________


aCan be changed in runtime


bCan’t be changed in runtime


cCan be changed in compile time


dMay or may not get changed



Goto Page No.

Page 34 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