Online Exam Preparation

MCQs Library

Browse subject-wise multiple choice questions, review answers quickly, and start a test from the same section.

Course Codes

Select a course to load its MCQs.

Selected: CS304 192 MCQs
CS101 533 CS201 225 CS301 232 CS302 174 CS304 192 CS401 224 CS402 258 CS403 228 CS408 113 CS411 121 CS502 249 CS504 268 CS601 679 CS604 381 CS605 261 CS607 184 CS609 230 CS610 300 CS614 100 CS703 65

Questions

Showing page 5 of 10

Code Question Option A Option B Option C Option D Answer
CS304
In Case Of Dynamic Memory Allocation In A Class We Should Use
User Defined Default Constructor
User Defined Copy Constructor
Both Of These
None Of These
C
CS304
In Case Of Multiple Inheritance A Derived Class Inherits
Only The Public Member Functions Of Its Base Classes
Only The Public Data Members Of Its Base Classes
Both Public Data Members And Member Functions Of All Its Base Classes
Data Members And Member Functions Of Any Two Base Classes
C
CS304
In Constant Member Function The Type Of This Pointer Is
Constant Pointer
Constant Pointer To Object
Constant Pointer To Class
Constant Pointer To Constant Object
B
CS304
In Object Orientated Programming A Class Of Objects Cans __________ Properties From Another Class Of Objects
Utilize
Borrow
Inherit
Adopt
C
CS304
In Oop A Class Is An Example Of
Data Type
Abstract Type
User Defined Type
None Of The Given
C
CS304
In Order To Define A Class Template The First Line Of Definition Must Be
Template <Typename T>
Typename <Template T>
Template Class <Classname>
Class <Template T>
A
CS304
In Private -------------- Only Member Functions And Friend Classes Or Functions Of A Derived Class Can Convert Pointer Or Reference Of Derived Object To That Of Parent Object
Specialization
Inheritance
Abstraction
Composition
A
CS304
In Private Inheritance Derived Class Pointer Can Be Assigned To Base Class Pointer In
Main Function
In Derived Class Member And Friend Functions
In Base Class Member And Friend Functions
None Of The Given Options
C
CS304
In Public Inheritance The Public Members Of Base Class Become __________ In Derived Class
Public
Private
Protected
None Of The Given Options
A
CS304
Information Hiding Can Be Achieved Through__________
Encapsulation Inheritance
Encapsulation Polymorphism
Encapsulation Abstraction
Overloading
C
CS304
Inheritance Is A Way To
Organize Data
Pass Arguments To Objects Of Classes
Add Features To Existing Classes Without Rewriting Them
Improve Data-Hiding And Encapsulation
C
CS304
Is A Relationship
Inheritance
Polymarphism
Abstraction
Encapsulation
A
CS304
Is Creating Objects Of One Class Inside Another Class
Association
Composition
Aggregation
Inheritance
D
CS304
It Is Sometimes Useful To Specify A Class From Which No Objects Will Ever Be Created
True
False
Na
Na
B
CS304
Like Template Functions A Class Template May Not Handle All The Types Successfully
True
False
Na
Na
A
CS304
Memory Is Allocated To Non Static Members Only When
Class Is Created
Object Is Defined
Object Is Initialized
Object Is Created
C
CS304
Multiple Inheritance Can Be Of Type
Public
Private
Protected
All Of The Given
D
CS304
Non Template Friend Functions Of A Class Are Friends Of __________Instance/S Of That Class
All
One Specific
All Instances Of One Date Type
None Of The Given Options
B
CS304
Object Can Be Declared Constant With The Use Of Constant Keyword
True
False
Na
Na
A
CS304
One Purpose Of An Iterator In The Stl Is To Connect Algorithms And Containers
True
False
Na
Na
A