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: CS201 225 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 12

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