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 3 of 12

Code Question Option A Option B Option C Option D Answer
CS201
Delete Operator Is Used To Return Memory To Free Store Which Is Allocated By The New Operator
True
False
A
CS201
Deleting An Array Of Objects Without Specifying [] Brackets May Lead To Memory Leak
True
False
A
CS201
Eof( ) Bad( ) Good( ) Clear( ) All Are Manipulators.
True
False
A
CS201
Explicitly Write Keyword Private In The Class Definition
True
False
A
CS201
For Cin The Source Is Normally A __________ And Destination Can Be .
File Native Data Type
Disk User-Define Type
Keyboard Variable
File User-Define Type
C
CS201
For Non-Member Operator Function Object On Left Side Of The Operator May Be
Object Of Operator Class
Object Of Different Class
Built-In Data Type
All Of The Given Options
B
CS201
For Operator >> The Second Parameter Must Also Be Passed By Reference.
True
False
A
CS201
For Which Array The Size Of The Array Should Be One More Than The Number Of Elements In An Array?
Int
Double
Float
Char
D
CS201
Friend Functions Are Of A Class
Member Functions
Public Member Functions
Private Member Functions
Non-Member Functions
D
CS201
Friend Functions Are Of A Class.
Member Functions
Public Member Functions
Private Member Functions
Private Member Functions
D
CS201
From Following; Which One Is The Correct Syntax Of An Array Initialize: Array Size Is 10 And It Is Of Double Data Type To Value 0?
Arr[10] = {0.0};
Double Arr[10]= 0.0;
Double Arr[10] = {0.0};
Double Arr[] = 0.0;
C
CS201
From The Following; Which One Is Used As An Assignment Operator?
Equal Sign ‘=’
Double Equal Sign ‘==’
Both Equal And Double Equal Sign
None Of The Given Options
A
CS201
Function Prototype Is Written
Within Main Function
After The Return Statement In Main
Before The Return Statement In Main
Before Call Of That Function
A
CS201
How Many Total Elements Must Be In Two-Dimensional Array Of 3 Rows And 2 Columns?
4
5
6
7
C
CS201
I. Int Arr[2][3] = {4 8 9 2 1 6} ; Ii. Int Arr[3][2] = {4 8 9 2 1 6} ; Iii. Int Arr[][2] = {{4 8} {9 2} {1 6}} ; Which Of The Following Option(S) Are Correct To Initialize A Two-Dimensional Array With 3 Rows And 2 Columns?
(Ii) Only
(Iii) Only
(Ii) And (Iii)
And (Iii)
A
CS201
If An Array Has 50 Elements What Is Allowable Range Of Subscripts?
0 – 49
1 – 49
0 – 50
1 – 50
A
CS201
If Int A = 50; Then The Value Of A/= 3; Will Be
15
16
17
18
B
CS201
If Int Sum = 54; Then The Value Of The Following Statement Is Sum = Sum - 3 ;
52
50
51
57
B
CS201
If Num Is An Integer Variable Then Num++ Means
Add 1 Two Times With
Add 1 With Num
Add 2 With Num
Subtract 2 From Num
B
CS201
If Overloaded Plus Operator Is Implemented As Non-Member Function Then Which Of The Following Statement Will Be True For The Statement Given Below? Obj3 = Obj1 + Obj2 ;
Obj2 Will Be Passed As An Argument To + Operator Whereas Obj2 Will Drive The + Operator
Obj1 Will Drive The + Operator Whereas Obj2 Will Be Passed As An Argument To + Operator
Both Objects (Obj1 Obj2) Will Be Passed As Arguments To The + Operator
Any Of The Objects (Obj1 Obj2) Can Drive The + Operator
A