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 Default Constructor Has No Arguments
|
True
|
False
|
A | ||
| CS201 |
The Default Constructor Is Defined By The C++ Compiler Automatically For Every Class That Has No Default Constructor (Parameterless Constructor) Defined Already.
|
True
|
False
|
A | ||
| CS201 |
The Default Value Of A Parameter Can Be Provided Inside The ____________________
|
Function Prototype
|
Function Definition
|
Both Function Prototype Or Function Definition
|
None Of The Given Options.
|
B |
| CS201 |
The Delete Operator Returns Nothing (Void) And Accepts A Pointer Of Type * To The Memory Block.
|
True
|
False
|
B | ||
| CS201 |
The Delete Operator Returns Nothing (Void) And Accepts A Pointer Of Void * To The Memory Block.
|
True
|
False
|
A | ||
| CS201 |
The Destructor Is Used To __________.
|
Allocate Memory
|
Allocate Memory
|
Create Objects
|
Allocate Static Memory
|
B |
| CS201 |
The Endl And Flush Are
|
Functions
|
Operators
|
Manipulators
|
Objects
|
C |
| CS201 |
The First Parameter Of Operator Function For << Operator _____________________.
|
Must Be Passed By Value
|
Must Be Passed By Reference
|
Can Be Passed By Value Or Reference
|
Must Be Object Of Class
|
B |
| CS201 |
The First Parameter Of Overloaded Stream Insertion Operator Is ___________ Where Second Parameter Is
|
Input Stream Object Of Class
|
Object Of Class Output Stream
|
Output Stream Object Of Class
|
Object Of Class Input Stream
|
C |
| CS201 |
The Function Call To A Default Constructor
|
Looks Like Any Function Call Except There Is No Return Value
|
Never Takes Any Arguments
|
Creates But Cannot Initialize An Object
|
Is Made Automatically When An Object Is Created
|
D |
| CS201 |
The Function Free() Returns Back The Allocated Memory Got Thorough Calloc And Malloc To .
|
Stack
|
Heap
|
Stack And Heap
|
None Of The Given Options
|
B |
| CS201 |
The Function Will Return A Reference To The Global Variable That Exists Throughout The Program And Thus There Will Be No Danger Of __________.
|
Garbage Collection
|
Dangling Reference.
|
Wastage Of Memory
|
System Crash
|
B |
| CS201 |
The Inner Data Members Of The Object Are Constructed And Then The Object Itself.
|
True
|
False
|
A | ||
| CS201 |
The Input/Output Streams; Cin And Cout Are
|
Operators
|
Functions
|
Objects
|
Structures
|
C |
| CS201 |
The Member Functions Of A Class Occupy Region In Memory For Object(S) Of Class.
|
Separate Each
|
Common All
|
Different Each
|
Different All
|
A |
| CS201 |
The Name Of An Array Represents Address Of First Location Of Array Element.
|
True
|
False
|
A | ||
| CS201 |
The New Operator
|
Is Used To Declare Objects Or Variables
|
Can Not Create And Initialize An Object
|
Can Allocate An Appropriate Amount Of Memory For An Object Or Variable
|
Returns An Address To An Object Or Variable
|
C |
| CS201 |
The New Operator Returns A Type * Accepts A Parameter Of Type Size_T.
|
True
|
False
|
B | ||
| CS201 |
The New Operator Returns A Void * Accepts A Parameter Of Type Size_T.
|
True
|
False
|
A | ||
| CS201 |
The Normal Source Of Cin Object Is
|
File
|
Disk
|
Keyboard
|
Ram
|
C |