Online Exam Preparation
MCQs Library
Browse subject-wise multiple choice questions, review answers quickly, and start a test from the same section.
Questions
| Code | Question | Option A | Option B | Option C | Option D | Answer |
|---|---|---|---|---|---|---|
| CS201 |
The Operator Function Of << And >> Operators Are Always The Member Function Of A Class.
|
True
|
False
|
B | ||
| CS201 |
The Operator Function Overloaded For An Assignment Operator (=) Must Be
|
Non-Member Function Of Class
|
Member Function Of Class
|
Friend Function Of Class
|
None Of The Given Options
|
B |
| CS201 |
The Operator Function Will Be Implemented As If Obj1 Drive The - Operator Whereas Obj2 Is Passed As Arguments To - Operator In The Statement Given Below. Obj3 = Obj1 - Obj2;
|
Member Function
|
Non-Member Function
|
Friend Function
|
None Of The Given Options
|
A |
| CS201 |
The Order Of Destruction Of An Object Is Equle To This Construction Order Where The Outer Object Is Destroyed First Before The Inner Data Members.
|
True
|
False
|
B | ||
| CS201 |
The Programs In Which We Allocate Static Memory Run Essentially On __________
|
Heap
|
System Cache
|
None Of The Given Options
|
Stack
|
D |
| CS201 |
The Prototype Of Friend Functions Must Be Written The Class And Its Definition Must Be Written
|
Inside Inside The Class
|
Inside Outside The Class
|
Outside Inside The Class
|
Outside Outside The Class
|
B |
| CS201 |
The Reference Data Types Are Used As Ordinary Variables Without Any Dereference Operator.
|
True
|
False
|
A | ||
| CS201 |
The Reserved Words Public And Private Comes Under The Category
|
Structures
|
Strings
|
Accessibility Modifiers
|
Types Of Functions
|
C |
| CS201 |
The Return Type Of The Operator Function For >> Operator Is __________.
|
Class For Which We Overload This Operator
|
Reference Of Ostream Class (Ostream&)
|
Reference Of Istream Class (Istream&)
|
Void
|
C |
| CS201 |
The Second Parameter Of Operator Functions For << And >> Are Objects Of The Class For Which We Are Overloading These Operators.
|
True
|
False
|
A | ||
| CS201 |
The Second Parameter Of Operator Functions For << And >> Are Objects Of The Class For Which We Are Overloading These Operators.
|
True
|
False
|
A | ||
| CS201 |
The Size Of Int Data Type Is
|
1 Bytes
|
2 Bytes
|
3 Bytes
|
4 Bytes
|
D |
| CS201 |
The Sizeof Operator Is Used To Determine The Size Of
|
Data
|
Variable
|
Data Type
|
None Of The Given
|
D |
| CS201 |
The Statement I++; Is Equivalent To
|
I = I + I;
|
I = I + 1;
|
3) : I = I - 1;
|
I --;
|
B |
| CS201 |
The Static Data Members Of A Class Are Initialized
|
At File Scope
|
Within Class Definition
|
Within Member Function
|
Within Main Function
|
B |
| CS201 |
The Static Data Members Of A Class Can Be Accessed By __________
|
Only Class
|
Only Objects
|
Both Class And Objects
|
None Of Given Options
|
A |
| CS201 |
The Stream Insertion And Extraction Operators Are Not Already Overloaded For
|
Built-In Data Types
|
User-Defined Data Types
|
Both Built-In And User-Defined Types
|
None Of The Given Options
|
B |
| CS201 |
The Template Functions Do Not Promote The Code Reuse
|
True
|
False
|
B | ||
| CS201 |
The Variables Having A Name Type And Size Are Just Like Empty Boxes.
|
True
|
False
|
A | ||
| CS201 |
There Are Mainly ___________ Types Of Software
|
2
|
3
|
4
|
5
|
A |