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 8 of 10

Code Question Option A Option B Option C Option D Answer
CS304
This Pointers Are Not Accessible For Static Member Functions
True
False
Na
Na
A
CS304
Three Main Characteristics Of Object Oriented Programming Are
Encapsulation Dynamic Binding Polymarhpishm
Polymorphism Overloading Overriding
Encapsulation Inheritance Dynamic Binding
Encapsulation Inheritance Polymorphism
C
CS304
To Convert From A User-Defined Class To A Basic Type You Would Most Likely Use
A Built-In Conversion Operator
A One-Argument Constructor
An Overloaded = Operator
A Conversion Operator That‘S A Member Of The Class
C
CS304
Two Important Stl Associative Containers Are And
Set Map
Sequence Mapping
Setmet Multipule
Sit Mat
B
CS304
Unary Operators And Assignment Operator Are Right Associative
True
False
Na
Na
A
CS304
Using Encapsulation We Can Achieve
Information Hiding
Least Interdependencies Among Modules
Implementation Independenc
All Of Given Options
D
CS304
Vectors Contain Contiguous Elements Stored As A[An] __________
Variable
Array
Function
Datatype
B
CS304
Virtual Functions Allow You To
Create An Array Of Type Pointer-To-Base Class That Can Hold Pointers To Derived Classes
Create Functions That Can Never Be Accessed
Group Objects Of Different Classes So They Can All Be Accessed By The Same Function Code
Use The Same Function Call To Execute Member Functions Of Objects From Different Classes
D
CS304
We Achieve Independence Of Internal Implementation From Its External Interface Through-----------
Encapsulation
Information Hiding
Abstraction
Both Encapsulation And Information Hiding
B
CS304
We Can Call Base Class Constructor From Derived Class Constructor
From Derived Class Constructor Body
From The Initializer List Of Derived Class Constructor
From Any Member Function Of Derived Class
We Can Not Call The Base Class Constructor
A
CS304
We Can Get Only One Unique Value Which Can Be Used By All The Objects Of That Class By The Use Of
Static Variables
Dynamic Variables
Instance Variables
Data Members
A
CS304
We Can Use This Pointer In The Constructor In The Body And Even In The Initialization List Of Any Class If We Are Careful
True
False
Na
Na
B
CS304
We Can Use This Pointer In The Constructor In The Body And Even In The Initialization List Of Any Class If We Are Careful
True
False
Na
Na
B
CS304
We Capture The Object Attributes And Behavior In Object Oriented Programming Using---------------
Class
Function
Data Members
Instances
A
CS304
What A Derived Class Can Add?
New Data Members
New Member Functions And New Friend Functions
New Constructors And Destructor
All Of Given
D
CS304
What Is A Class?
A Class Is A Section Of Computer Memory Containing Objects
A Class Is A Section Of The Hard Disk Reserved For Object Oriented Programs
A Class Is The Part Of An Object That Contains The Variables
A Class Is A Description Of A Kind Of Object
D
CS304
What Is True About Function Templates?
The Compiler Generates Only One Copy Of The Function Template
The Compiler Generates A Copy Of Function Respective To Each Type Of Data
The Compiler Can Only Generate Copy For The Int Type Data
None Of The Given.
B
CS304
What Problem(S) May Occur When We Copy Objects Without Using Deep Copy Constructor?
Dangling Pointer
Memory Leakage(Object Is Not Deleted)
All Of The Given
System Crash
A
CS304
When A Subclass Specifies An Alternative Definition For An Attribute Or Method Of Its Superclass It Is The Definition In The Superclass
Overload
Overriding
Copy Riding
None Of Given
B
CS304
When A Variable Is Define As Static In A Class Then All Object Of This Class
Have Different Copies Of This Variable
Have Same Copy Of This Variable
Can Not Access This Variable
None Of Given
B