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 |
In While Loop The Loop Counter Must Be Initialized
|
With In The Loop
|
Before Entering The Loop
|
At The End Of The Loop
|
None Of The Given Options
|
B |
| CS201 |
In___________ We Try To Have A Precise Problem Statement
|
Analysis
|
Design
|
Coding
|
None Of The Given
|
A |
| CS201 |
Initializer List Is Used To Initialize The Inner Objects At The Construction Time.
|
True
|
False
|
A | ||
| CS201 |
Initializing The Data Members In The Definition Of The Class Is __________
|
Syntax Error
|
Logical Error
|
Not An Error
|
None Of The Given Options
|
B |
| CS201 |
It Is A Way Of Reusing The Code When We Contain Objects Of Our Already Written Classes Into A New Class
|
True
|
False
|
A | ||
| CS201 |
It Is Possible To Define A Class Within Another Class.
|
True
|
False
|
A | ||
| CS201 |
Let Suppose
Union Intordouble{
Int Ival;
Double Charvar;
};
Main(){
Intordouble Vaz;
Int Size ;
Size = Sizeof(Vaz);
}
What Will Be The Value Of Variable ""Size"" If Int Occupies 4 Bytes And Double Occupies 8 Bytes?
|
2
|
4
|
8
|
12
|
C |
| CS201 |
Like Member Functions Can Also Access The Private Data Members Of A Class.
|
Non-Member Functions
|
Friend Functions
|
Any Function Outside Class
|
None Of The Given Options
|
B |
| CS201 |
Loader Loads The Executable Code From Hard Disk To Main Memory
|
True
|
False
|
A | ||
| CS201 |
Loader Transfers The Executable Code From Main Memory To Hard Disk.
|
True
|
False
|
B | ||
| CS201 |
Look At The Statement Given Below Int & A; And Tell What Will Happen ?
|
Compiler Will Compile Successfully
|
Compiler Will Show A Warning To You
|
Null Value Will Be Assigned To A
|
Compiler Will Generate An Error: ‘A Declared As Reference But Not Initialized
|
D |
| CS201 |
Loops Are ___________ Structure
|
Decision
|
Sequential
|
Repetition
|
None Of The Given Options
|
C |
| CS201 |
New And Delete Are Whereas Malloc And Free Are .
|
Functions Operators
|
Classes Operators
|
Operators Functions
|
Operators Classes
|
C |
| CS201 |
New And Delete Are Whereas Malloc And Free Are .
|
Functions Operators
|
Classes Operators
|
Operators Functions
|
Operators Classes
|
C |
| CS201 |
New And Delete Can Overload In C++
|
True
|
False
|
B | ||
| CS201 |
New And Delete Operators Cannot Be Overloaded As Member Functions.
|
True
|
False
|
B | ||
| CS201 |
New Operator Allocates Memory From Free Store And Return __________.
|
A Pointer
|
A Reference
|
An Integer
|
A Float
|
A |
| CS201 |
Ofstream Is Used For__________
|
Input File Stream
|
Output File Stream
|
Input And Output File Stream
|
All Of The Given
|
B |
| CS201 |
Operator Functions Written As Non-Members But Friends Of The Class Get Both The Operands As Their Arguments.
|
True
|
False
|
A | ||
| CS201 |
Operator Overloading Is Quite Similar To Function Overloading.
|
True
|
False
|
A |