Subject : OOPS using C++ (MC0066)<br><br>Provided by <a href='http://www.

program
mer2programmer.net'>www.programmer2programmer.net</a><br><br><b><u>PART A</u></b
><br><br><table border='0' width='600' id='table1_0_0'><tr><td width='41' align=
'left' valign='top'><b>Q.1 </b></td><td width='749' align='left' valign='top' co
lspan='2'>Which statement is used to declare <br>templates?</td></tr><tr><td wid
th='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign=
'top'><b>A) </b></td><td width='711' align='left' valign='top'>template<T class>
</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34'
align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='t
op'>template<class T></td></tr><tr><td width='41' align='left' valign='top'>&nbs
p;</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' a
lign='left' valign='top'>template class <T></td></tr><tr><td width='41' align='l
eft' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>D) </b>
</td><td width='711' align='left' valign='top'>template T<class></td></tr></tabl
e><table border='0' width='600' id='table1_0_1'><tr><td width='41' align='left'
valign='top'><b>Q.2 </b></td><td width='749' align='left' valign='top' colspan='
2'>Is to used to change a sentence str into <br>upper case</td></tr><tr><td widt
h='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='
top'><b>A) </b></td><td width='711' align='left' valign='top'>toUpperCase (str)<
/td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34'
align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='to
p'>strupr (str)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td
><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='
left' valign='top'>stmcat (str)</td></tr><tr><td width='41' align='left' valign=
'top'>&nbsp;</td><td width='34' align='left' valign='top'><b>D) </b></td><td wid
th='711' align='left' valign='top'>All of these</td></tr></table><table border='
0' width='600' id='table1_0_2'><tr><td width='41' align='left' valign='top'><b>Q
.3 </b></td><td width='749' align='left' valign='top' colspan='2'>The command li
ne parameters used by a <br>C++ program is</td></tr><tr><td width='41' align='le
ft' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>A) </b><
/td><td width='711' align='left' valign='top'>argc</td></tr><tr><td width='41' a
lign='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>
B) </b></td><td width='711' align='left' valign='top'>argv</td></tr><tr><td widt
h='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='
top'><b>C) </b></td><td width='711' align='left' valign='top'>Both A) and B)</td
></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' ali
gn='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>
Neither A) nor B)</td></tr></table><table border='0' width='600' id='table1_0_3'
><tr><td width='41' align='left' valign='top'><b>Q.4 </b></td><td width='749' al
ign='left' valign='top' colspan='2'>____ is a data type, which is used to define
<br>a heterogeneous set of data types or a set of <br>data items belonging to d
ifferent data types</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;
</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' ali
gn='left' valign='top'>void</td></tr><tr><td width='41' align='left' valign='top
'>&nbsp;</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='
711' align='left' valign='top'>char</td></tr><tr><td width='41' align='left' val
ign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>C) </b></td><td
width='711' align='left' valign='top'>structure</td></tr><tr><td width='41' ali
gn='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>D)
</b></td><td width='711' align='left' valign='top'>array</td></tr></table><tabl
e border='0' width='600' id='table1_0_4'><tr><td width='41' align='left' valign=
'top'><b>Q.5 </b></td><td width='749' align='left' valign='top' colspan='2'>The
short cut keys used to run the C++ <br>program is</td></tr><tr><td width='41' al
ign='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>A
) </b></td><td width='711' align='left' valign='top'>CTRL + F8</td></tr><tr><td
width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' vali
gn='top'><b>B) </b></td><td width='711' align='left' valign='top'>CTRL + F9</td>
</tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' alig
n='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>C
TRL + F5</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td wi

dth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' v
align='top'>ALT + F5</td></tr></table><table border='0' width='600' id='table1_0
_5'><tr><td width='41' align='left' valign='top'><b>Q.6 </b></td><td width='749'
align='left' valign='top' colspan='2'>The && and // operators</td></tr><tr><td
width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' vali
gn='top'><b>A) </b></td><td width='711' align='left' valign='top'>compares two n
umeric values</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><
td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='le
ft' valign='top'>combines two numeric values</td></tr><tr><td width='41' align='
left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>C) </b
></td><td width='711' align='left' valign='top'>compares two Boolean values</td>
</tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' alig
n='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>c
ombines two Boolean values</td></tr></table><table border='0' width='600' id='ta
ble1_0_6'><tr><td width='41' align='left' valign='top'><b>Q.7 </b></td><td width
='749' align='left' valign='top' colspan='2'>Which of these is not valid in ci-f
?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34
' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='
top'>I+47 as integer value</td></tr><tr><td width='41' align='left' valign='top'
>&nbsp;</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='7
11' align='left' valign='top'>2000 as string constant</td></tr><tr><td width='41
' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'>
<b>C) </b></td><td width='711' align='left' valign='top'>12.5 as float constant<
/td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34'
align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='to
p'>None of these</td></tr></table><table border='0' width='600' id='table1_0_7'>
<tr><td width='41' align='left' valign='top'><b>Q.8 </b></td><td width='749' ali
gn='left' valign='top' colspan='2'>Given-char str [256]; <br>how many characters
at most can be actually <br>stored in the array?</td></tr><tr><td width='41' al
ign='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>A
) </b></td><td width='711' align='left' valign='top'>256</td></tr><tr><td width=
'41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='to
p'><b>B) </b></td><td width='711' align='left' valign='top'>255</td></tr><tr><td
width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' val
ign='top'><b>C) </b></td><td width='711' align='left' valign='top'>0</td></tr><t
r><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left
' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of
these</td></tr></table><table border='0' width='600' id='table1_0_8'><tr><td wid
th='41' align='left' valign='top'><b>Q.9 </b></td><td width='749' align='left' v
align='top' colspan='2'>Dynamic memory can be deallocated using</td></tr><tr><td
width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' val
ign='top'><b>A) </b></td><td width='711' align='left' valign='top'>destructor fu
nction</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td widt
h='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' val
ign='top'>delete keyword</td></tr><tr><td width='41' align='left' valign='top'>&
nbsp;</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711
' align='left' valign='top'>a heap</td></tr><tr><td width='41' align='left' vali
gn='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>D) </b></td><td
width='711' align='left' valign='top'>None of these</td></tr></table><table bord
er='0' width='600' id='table1_0_9'><tr><td width='41' align='left' valign='top'>
<b>Q.10 </b></td><td width='749' align='left' valign='top' colspan='2'>____ impl
ies a kind of " relationshipâ </td></tr><tr><td width='41' align='left' valign='top'>
&nbsp;</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='71
1' align='left' valign='top'>Aggregation</td></tr><tr><td width='41' align='left
' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>B) </b></t
d><td width='711' align='left' valign='top'>Polymorphism</td></tr><tr><td width=
'41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='to
p'><b>C) </b></td><td width='711' align='left' valign='top'>Containership</td></
tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' align=
'left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Non

e of these</td></tr></table><table border='0' width='600' id='table1_0_10'><tr><
td width='41' align='left' valign='top'><b>Q.11 </b></td><td width='749' align='
left' valign='top' colspan='2'>Function is used to draw a circle in graphics <br
>mode</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width
='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' vali
gn='top'>arc ( ... )</td></tr><tr><td width='41' align='left' valign='top'>&nbsp
;</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' al
ign='left' valign='top'>circle ( ... )</td></tr><tr><td width='41' align='left'
valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>C) </b></td>
<td width='711' align='left' valign='top'>ellipse ( ... )</td></tr><tr><td width
='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='t
op'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td><
/tr></table><table border='0' width='600' id='table1_0_11'><tr><td width='41' al
ign='left' valign='top'><b>Q.12 </b></td><td width='749' align='left' valign='to
p' colspan='2'>____ is a class whose instances themselves <br>are classes</td></
tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' align=
'left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>Par
ametrized class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td
><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='
left' valign='top'>Monolithic class</td></tr><tr><td width='41' align='left' val
ign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>C) </b></td><td
width='711' align='left' valign='top'>Metaclass</td></tr><tr><td width='41' ali
gn='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>D)
</b></td><td width='711' align='left' valign='top'>None of these</td></tr></tab
le><table border='0' width='600' id='table1_0_12'><tr><td width='41' align='left
' valign='top'><b>Q.13 </b></td><td width='749' align='left' valign='top' colspa
n='2'>Which of these is an example of an <br>assignment operator?</td></tr><tr><
td width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' v
align='top'><b>A) </b></td><td width='711' align='left' valign='top'>&&</td></tr
><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='l
eft' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>||</t
d></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' al
ign='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'
>= =</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width=
'34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valig
n='top'>=</td></tr></table><table border='0' width='600' id='table1_0_13'><tr><t
d width='41' align='left' valign='top'><b>Q.14 </b></td><td width='749' align='l
eft' valign='top' colspan='2'>To solve the problem of ambiguity when <br>inherit
ing from a common base class, the ____ <br>keyword is applied before its name in
the <br>derived class header</td></tr><tr><td width='41' align='left' valign='t
op'>&nbsp;</td><td width='34' align='left' valign='top'><b>A) </b></td><td width
='711' align='left' valign='top'>abstract</td></tr><tr><td width='41' align='lef
t' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><b>B) </b></
td><td width='711' align='left' valign='top'>virtual</td></tr><tr><td width='41'
align='left' valign='top'>&nbsp;</td><td width='34' align='left' valign='top'><
b>C) </b></td><td width='711' align='left' valign='top'>static</td></tr><tr><td
width='41' align='left' valign='top'>&nbsp;</td><td width='34' align='left' vali
gn='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these<
/td></tr></table><table border='0' width='600' id='table1_0_14'><tr><td width='4
1' align='left' valign='top'><b>Q.15 </b></td><td width='749' align='left' valig
n='top' colspan='2'>The default access permission for a class <br>member is</td>
</tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td width='34' alig
n='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>p
rivate</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;</td><td widt
h='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' val
ign='top'>protected</td></tr><tr><td width='41' align='left' valign='top'>&nbsp;
</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' ali
gn='left' valign='top'>public</td></tr><tr><td width='41' align='left' valign='t
op'>&nbsp;</td><td width='34' align='left' valign='top'><b>D) </b></td><td width
='711' align='left' valign='top'>None of these</td></tr></table><table border='0

</td><td width='34' align='left' valign='top'><b>C) </b></td><td width= '711' align='left' valign='top'>+</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp.</td><td width='34' al ign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top' >Aggregation</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.17 </b></td><td width='749' align='left' vali gn='top' colspan='2'>____ function sets the fill pattern and color</td></tr><tr> <td width='41' align='left' valign='top'>&nbsp. <br>a day object and a year object is an example of</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td widt h='711' align='left' valign='top'>Instantiation</td></tr><tr><td width='41' alig n='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>floodfill ()</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.' width='600' id='table1_0_15'><tr><td width='41' align='left' valign='top'><b>Q .</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></tabl e><table border='0' width='600' id='table1_0_20'><tr><td width='41' align='left' .</td><td width='34' align='left' valig n='top'><b>B) </b></td><td width='711' align='left' valign='top'><</td></tr><tr> <td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><t d width='711' align='left' valign='top'>fillstyle ()</td></tr></table><table bor der='0' width='600' id='table1_0_17'><tr><td width='41' align='left' valign='top '><b>Q.19 </b></td><td width='749' align='le ft' valign='top' colspan='2'>The function not use to concatenation of <br>two st rings is</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.20 </b></td><td width='749' align='left' valign='top' colspan='2'>Making a date obj ect frorn a month object.</td><td width='34' align='left' valign ='top'><b>B) </b></td><td width='711' align='left' valign='top'>Encoding pointer within other loop</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign= 'top'>setcolor ()</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.< /td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' alig n='left' valign='top'>Pointer pointing to the object</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</ td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align ='left' valign='top'>setfillstyle ()</td></tr><tr><td width='41' align='left' va lign='top'>&nbsp.</td><t d width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='lef t' valign='top'>Specialization</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.</td><td width='34' align='left' valign='top'>< b>D) </b></td><td width='711' align='left' valign='top'>In the sorting operation </td></tr></table><table border='0' width='600' id='table1_0_16'><tr><td width=' 41' align='left' valign='top'><b>Q.18 </b></td><td width='749' align='left' valign='top' colspan='2'>Redirec tion of files is implemented by using <br>____ operator</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>></td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.16 </b></td><td width='749' align='left' valign='top' colspan='2'>The most comm on bug with pointer is</td></tr><tr><td width='41' align='left' valign='top'>&nb sp.</td><td width='34' align='left' valign='top '><b>A) </b></td><td width='711' align='left' valign='top'>>></td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>Invalid address in pointer address</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.< /td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' alig n='left' valign='top'>strcat</td></tr><tr><td width='41' align='left' valign='to p'>&nbsp.</td><td wi dth='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' v align='top'>strcpy</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='l eft' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='table1_0_18'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><td w idth='711' align='left' valign='top'>get()</td></tr></table><table border='0' wi dth='600' id='table1_0_19'><tr><td width='41' align='left' valign='top'><b>Q.

</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' vali gn='top'>Protected items are accessible from objects out side the class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td widt h='711' align='left' valign='top'>Object</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>a.</td><td width=' 34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign ='top'>const keyword</td></tr><tr><td width='41' align='left' valign='top'>&nbsp .display ( ).23 </b></td><td width='749' align='left' valign='top' colspan='2'>____ is a self contained unit or module of <br>data and code</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b ></td><td width='711' align='left' valign='top'>Public items are not accessible from own class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b>< .</td><td width ='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' vali gn='top'>Protected items are accessible from derived class</td></tr></table><table border='0' width='600' id='table1_0_21'><tr><td wi dth='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' al ign='left' valign='top'># define directive</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp. which of these is an incorrect <br>way to access the static display function d efined <br>in class A?</td></tr><tr><td width='41' align='left' valign='top'>&nb sp.</td><td wi dth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' v align='top'>None of the above</td></tr></table><table border='0' width='600' id= 'table1_0_22'><tr><td width='41' align='left' valign='top'><b>Q.24 </b></td><td width='749' align='left' valign='top' colspan='2'> If a is an object of class A and b is a pointer <br>to the object a .</td><td width='34' align='left' v align='top'><b>B) </b></td><td width='711' align='left' valign='top'>public</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp.< /td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' alig n='left' valign='top'>Private items are accessible from derived class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>D) </b></td><td width='711' align='left' valign='top'>Member</td></tr ></table><table border='0' width='600' id='table1_0_23'><tr><td width='41' align ='left' valign='top'><b>Q.</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.21 </b></td><td width='749' align='left' valign='top' colspan ='2'>Out of following choose the correct one</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.22 </b></td><td width='749' align='left' valign='top' colspan='2'>Items declared as _ are private within a <br>class and are available for access in the derived <br>class to.</td><td width='34' align=' left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='table1_0_24'><tr><t d width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C ) </b></td><td width='711' align='left' valign='top'>Function</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.display</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></t d><td width='711' align='left' valign='top'>Class</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>private</td></tr><tr>< td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='to p'><b>C) </b></td><td width='711' align='left' valign='top'>A:display( )</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' alig n='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>p rotected</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></t d><td width='711' align='left' valign='top'>(*b).valign='top'><b>Q.25 </b></td><td width='749' align='l eft' valign='top' colspan='2'>____ is used in C++ to create a symbolic <br>const ant</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.

</td><td width='34' ali gn='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'> None of these</td></tr></table><table border='0' width='600' id='table1_0_27'><t r><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='l .30 </b></td><td width ='749' align='left' valign='top' colspan='2'>An array element is accessed using< /td></tr><tr><td width='41' align='left' valign='top'>&nbsp.29 </b></td><td width='749' align='left' valign='top' colspan='2'>___ _ variables -are automatically initialized <br>to zero</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td widt h='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' val ign='top'>Both B) and C)</td></tr></table><table border='0' width='600' id='tabl e1_0_29'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>Int</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.27 </b></td><td width='749' align='left' valign='top' colspan='2'>An event that causes suspension of normal <br>application execution is called</td></tr><tr><td width='41' align='left' va lign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='to p'>a first-in first-out approach</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td ><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align=' left' valign='top'>Object</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.26 </b></td><td width='749' align='left' valign ='top' colspan='2'>_____occupies 4 bytes storage space</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width='34' align= 'left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Uns igned Int</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) < /b></td><td width='711' align='left' valign='top'>Member</td></tr></table><table border='0' width='600' id='table1_0_28'><tr><td width='41' align='left' valign= 'top'><b>Q.</td><td width='34' align='left' va lign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Template</td ></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='71 1' align='left' valign='top'>Function</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Float</td></tr></table><table border='0' width='600' id='table1_0_2 6'><tr><td width='41' align='left' valign='top'><b>Q.28 </b></td><td width='749' alig n='left' valign='top' colspan='2'>____ decribes the data and its behaviour or <b r>functionality</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B ) </b></td><td width='711' align='left' valign='top'>Abnormality</td></tr><tr><t d width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Static</td ></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</ td></tr></table><table border='0' width='600' id='table1_0_25'><tr><td width='41 ' align='left' valign='top'><b>Q.</td><td width='34' ali gn='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'> Global</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>Register</td></tr><tr> <td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><t d width='711' align='left' valign='top'>Exception</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td>< td width='711' align='left' valign='top'>Class</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'>< b>C) </b></td><td width='711' align='left' valign='top'>the member name</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td wi dth='711' align='left' valign='top'>the dot operator</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>B) </b></td><td width='711' align='left' valign='top'>Long int</td></ tr><tr><td width='41' align='left' valign='top'>&nbsp./td><td width='711' align='left' valign='top'>typedef keyword</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.

</td><td wid th='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' va lign='top'>superclass</td></tr></table><table border='0' width='600' id='table1_ 0_32'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>virtual</td></tr><tr>< td width='41' align='left' valign='top'>&nbsp.</td><td width='34 ' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign=' top'>Multiple Inheritance</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.</td><td width='34' align= 'left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Non e of these</td></tr></table><table border='0' width='600' id='table1_0_33'><tr>< td width='41' align='left' valign='top'><b>Q.32 </b>< /td><td width='749' align='left' valign='top' colspan='2'>____ class cannot be i nstantiated.31 </b></td><td width='749' align=' left' valign='top' colspan='2'> ____ function appears to perform different <br>a ctivities depending on the kind of data to be <br>sent to it.</td><td width='34' alig n='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>a bstract</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34 ' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign=' top'>continue</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' v align='top'><b>B) </b></td><td width='711' align='left' valign='top'>friend</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>C) </b></td><td width='711' align='left' valign='top'>Data Extraction</td></ tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align=' left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Stat ic</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td>< td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='le ft' valign='top'>Both A) and B)</td></tr><tr><td width='41' align='left' valign= .34 </b></td><td width='749' align=' left' valign='top' colspan='2'>Which of these interfaces of an object must <br>b e defined when creating an instance of a <br>template?</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width='34' align=' left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>brea k</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</t d><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align= 'left' valign='top'>None of the above</td></tr></table><table border='0' width=' 600' id='table1_0_31'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='71 1' align='left' valign='top'>Pointers to class members</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='t op'>The "inheritance" intert'acc</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.eft' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>an in dex number</td></tr></table><table border='0' width='600' id='table1_0_30'><tr>< td width='41' align='left' valign='top'><b>Q.35 </b></td><td width='749' align='left' valign= 'top' colspan='2'>The ____ statements can not be used <br>outside a loop</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>Overloaded</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>D) </b></td><td width='711' align='left' valign='top'>All of these</t d></tr></table><table border='0' width='600' id='table1_0_34'><tr><td width='41' align='left' valign='top'><b>Q.33 </b></td><td width='7 49' align='left' valign='top' colspan='2'>Which of these is not a feature of C++ ?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td wi dth='711' align='left' valign='top'>The "parameter" interface</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>The "public" interface </td></tr><tr><td width='41' align='left' valign='top'>&nbsp. though <br>pointers can be declared to it</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>A) </b></td><td width='711' align='left' valign='top'>Virtual</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.

</td><td width='34' align='left' valign='top'><b> .</td><td width='34' a lign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top '>Derived</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>D) </b></td><td width='711' align='left' valign='top'>Static</td></tr ></table><table border='0' width='600' id='table1_0_38'><tr><td width='41' align ='left' valign='top'><b>Q.</t d><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align= 'left' valign='top'>ios</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.</td><td width='34' align='left' valign='top'><b>B) </b></t d><td width='711' align='left' valign='top'>Virtual</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.36 </b></td><td width='749' align='left' valign='top' colspan='2'>If "sum 10 20 30" is typed at the command <br>prompt what is the value of*argv [3] in the < br>main ( )?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><t d width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='lef t' valign='top'>30</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td> <td width='711' align='left' valign='top'>32</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' vali gn='top'>ostream</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.37 </b></td><td width='749' align='left' valign='top' colspan='2'>Virtu al functions which are declared with <br>the keyword virtual in the ____ class</ td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Base</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td wi dth='711' align='left' valign='top'>Source</td></tr></table><table border='0' wi dth='600' id='table1_0_37'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td wi dth='711' align='left' valign='top'>16</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>ofstream</td></tr></table><table border='0' width='60 0' id='table1_0_39'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align ='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>is tream</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.'top'>&nbsp.39 </b></td><td width='749' align='left' valign='top' colspan='2'>is the base class in the 1/0 stream class <br>hierarchy of C++</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp.38 </b></td><td width='749' align='left' valign='top' colspan='2'> ___ function is used as a limit to the <br>compiler to expand and substitute the body of <br>the function in place of the call</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td widt h='711' align='left' valign='top'>Friend</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b >C) </b></td><td width='711' align='left' valign='top'>Inline</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td>< td width='711' align='left' valign='top'>None of these</td></tr></table><table b order='0' width='600' id='table1_0_36'><tr><td width='41' align='left' valign='t op'><b>Q.< /td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' alig n='left' valign='top'>20</td></tr><tr><td width='41' align='left' valign='top'>& nbsp.</ td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align ='left' valign='top'>Destination</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td wid th='711' align='left' valign='top'>None of these</td></tr></table><table border= '0' width='600' id='table1_0_35'><tr><td width='41' align='left' valign='top'><b >Q.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711 ' align='left' valign='top'>undefined</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.40 </b></t d><td width='749' align='left' valign='top' colspan='2'>The max permissible char acters in a <br>variable name is</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b ></td><td width='711' align='left' valign='top'>64</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp.

41 </b></td><td width='749' align='left' valign='top' cols pan='2'>Object oriented programming</td></tr><tr><td width='41' align='left' val ign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='t op'>throw</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. the keyword to b e <br>used is </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='le ft' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None o f these</td></tr></table><table border='0' width='600' id='table1_0_43'><tr><td width='41' align='left' valign='top'><b>Q. 45 </b></td><td width='749' align='left' valign='top' colspan='2'>If a data item in a class is defined as ____.</td><td width='34' align='left' valign= 'top'><b>C) </b></td><td width='711' align='left' valign='top'>ostream</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.44 </b></td><td width='749' align='lef t' valign='top' colspan='2'>To handle exceptions.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Colon (:)</td></tr><tr><td width='41' align='left' val ign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>Comma (.)</td></tr><tr><td width='41' align='left' valign='top'>&nb sp. <br>then only one such item is created for the < br>entire class.D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></t able><table border='0' width='600' id='table1_0_40'><tr><td width='41' align='le ft' valign='top'><b>Q. no matter how many objects there <br>are</td></tr><tr><td width ='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>Software development technique</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></ td><td width='711' align='left' valign='top'>ios</td></tr><tr><td width='41' ali gn='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>istream</td></tr><tr><td wid th='41' align='left' valign='top'>&nbsp.</td><td width='34' align='lef t' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Set of operations</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.)</td></tr><tr><td width='41 ' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Private</ td></tr><tr><td width='41' align='left' valign='top'>&nbsp.43 </b></td><td width='749' align='left' valign='top' colsp an='2'>The base class for stream class is</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left .</td><td width='34' a lign='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top '>Protected</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.42 </b></td><td width='749' align='left' valign='top' colspan='2'>Which of the following do you think is used to <br>separate the base classes in a base cl ass list?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td w idth='711' align='left' valign='top'>Set of blocks</td></tr></table><table borde r='0' width='600' id='table1_0_41'><tr><td width='41' align='left' valign='top'> <b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width= '711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='table1_0_44'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'> <b>D) </b></td><td width='711' align='left' valign='top'>Tilde (~)</td></tr></ta ble><table border='0' width='600' id='table1_0_42'><tr><td width='41' align='lef t' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Semi-colon (.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Set of instructions</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp.< /td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' alig n='left' valign='top'>DETECT</td></tr><tr><td width='41' align='left' valign='to p'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>catch</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='t op'><b>A) </b></td><td width='711' align='left' valign='top'>Public</td></tr><tr ><td width='41' align='left' valign='top'>&nbsp.

</ td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align ='left' valign='top'>Homogeneous data</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.</td></tr></table><table border=' 0' width='600' id='table1_0_47'><tr><td width='41' align='left' valign='top'><b> Q.</td><td w idth='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>It cannot be modified</td></tr><tr><td width='41' align='left' vali gn='top'>&nbsp.48 </b></td><td width='749' align='left' valign='top' colspan='2'>Out of the f ollowing choose the correct <br>statement.</td><td width='34' al ign='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top' >Un declared data</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align ='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'># include <headerfile> are written in multiple line</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. what is the value of x after <br>executing the expression x = ++y ?</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp. when both base <br>class have function with same name</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='le ft' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>You ca n not call the function</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.46 </b></td><td width='7 49' align='left' valign='top' colspan='2'>Which of these statements about the 't his' <br>pointer is false?</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.</td><td width='3 .</td><td width='34' al ign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top' >2</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.49 </b></td><td width='749' align='left' valign='top' colspan='2'>Array is collection of</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.47 </b></td><td width='749' align='left' valign='top' colspan='2'>In multi ple inheritance.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table bord er='0' width='600' id='table1_0_46'><tr><td width='41' align='left' valign='top' ><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b>< /td><td width='711' align='left' valign='top'>String constant can be split</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'> <b>D) </b></td><td width='711' align='left' valign='top'>Escape sequences are de noted by\operator</td></tr></table><table border='0' width='600' id='table1_0_48 '><tr><td width='41' align='left' valign='top'><b>Q.50 </b></td><td width='749' align='left' valign='top' colspan='2'> If y = 2.' valign='top'>Static</td></tr></table><table border='0' width='600' id='table1_ 0_45'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='7 11' align='left' valign='top'>It stores the address of the class instance to enable pointer access of' (lie members to the member functions of the class</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td>< td width='711' align='left' valign='top'>Heterogeneous data</td></tr></table><ta ble border='0' width='600' id='table1_0_49'><tr><td width='41' align='left' vali gn='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width ='711' align='left' valign='top'>It is not accessible by static member functions</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign ='top'><b>A) </b></td><td width='711' align='left' valign='top'>Declared data</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>You can not derive such functions.</td><td width='34' align='left' valign='top'><b>C) </b></td><td widt h='711' align='left' valign='top'>Indicate the base class name in the calling statement</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td>< td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='le ft' valign='top'>/ / is used to indicate white spaces</td></tr><tr><td width='41 ' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>You have to call the function indicating the derived class in the statement</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp.

</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='t op'>Allow to use all member function of base class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='71 1' align='left' valign='top'>goto construct</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp.</td><td width='34' align='left ' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>gets</td ></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td wid th='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' va lign='top'>1</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width ='711' align='left' valign='top'>~</td></tr><tr><td width='41' align='left' vali gn='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b> </td><td width='711' align='left' valign='top'>Nested if -then-else construct</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.51 </b></td><td width='749' align='left' valign='top' colspan='2'>____ function operator is used to identify a <br>destructor</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></t d><td width='711' align='left' valign='top'>&</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.</t .</td><td width ='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' vali gn='top'>Not supported in c++</td></tr></table><table border='0' width='600' id= 'table1_0_54'><tr><td width='41' align='left' valign='top'><b>Q.function</td></tr><tr><td width='41' ali gn='left' valign='top'>&nbsp.4' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign= 'top'>3</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.52 </b></td><td width='749' align='left' valign='top' colspan=' 2'>The string.h file does not contain .</td><td width='34' align='left' valign='top'><b>D) </ b></td><td width='711' align='left' valign='top'>None of these</td></tr></table> <table border='0' width='600' id='table1_0_51'><tr><td width='41' align='left' v align='top'><b>Q.</td><td width='34' al ign='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top' >switch-case construct</td></tr><tr><td width='41' align='left' valign='top'>&nb sp.</td><td width='34 ' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign=' top'>clearscreen</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' al ign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top' >Does not allow to redefine member functions</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.53 </b></td><td width='749' alig n='left' valign='top' colspan='2'>_____ statement in C++ can be use to <br>accom plish multi-way branching</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>All of these</td></tr></table><table border='0' width= '600' id='table1_0_53'><tr><td width='41' align='left' valign='top'><b>Q.55 </b></td><td width='749' align='left' valign='top' colspan='2'>Name the function that is used to clear the <br>screen and position the cursor at 0.</td><td width='34' ali gn='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'> None of these</td></tr></table><table border='0' width='600' id='table1_0_52'><t r><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b ></td><td width='711' align='left' valign='top'>Can not add new member functions </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign=' top'><b>B) </b></td><td width='711' align='left' valign='top'>strcat</td></tr><t r><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>strcmp</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>>></td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.</td><t d width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='lef t' valign='top'>None of these</td></tr></table><table border='0' width='600' id= 'table1_0_50'><tr><td width='41' align='left' valign='top'><b>Q.54 </b> </td><td width='749' align='left' valign='top' colspan='2'>Deriving new class</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp. 0 in the <br>graphics mod e</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.

</td><td width='34' align='left' valign ='top'><b>D) </b></td><td width='711' align='left' valign='top'>Protected</td></ tr></table><table border='0' width='600' id='table1_0_57'><tr><td width='41' ali gn='left' valign='top'><b>Q.</td><td width='34' align='left' vali gn='top'><b>B) </b></td><td width='711' align='left' valign='top'>Default parame ter</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b> C) </b></td><td width='711' align='left' valign='top'>Global</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='to p'><b>A) </b></td><td width='711' align='left' valign='top'>cputs ()</td></tr><t r><td width='41' align='left' valign='top'>&nbsp.60 </b></td><td width='749' align='left' valign='top' colspan='2'>Which operator o btains memory from the <br>operating system and returns a pointer to its <br>str .56 </b></td><td width='749' align='left' valign='top' colspan=' 2'>____ function writes string of text to the <br>window</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp.</td><td width='34' al ign='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top' >window cputs ()</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.ios::end ).</td><td width='34' align='left' valign='top'><b>C) </b></td><td widt h='711' align='left' valign='top'>cleardevice</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='71 1' align='left' valign='top'>moves the put pointer 5 bytes backward from the end of the file</td></tr><tr><td width='41' align='left' valign='top'>& nbsp.59 </b></td><td widt h='749' align='left' valign='top' colspan='2'>___ parameter receives the argumen t <br>passed to it and works on it directly</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp.d><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align= 'left' valign='top'>clrscr ( )</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.</t d><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align= 'left' valign='top'>window putch ()</td></tr></table><table border='0' width='60 0' id='table1_0_56'><tr><td width='41' align='left' valign='top'><b>Q.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td ><td width='711' align='left' valign='top'>Private</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp.57 </b></t d><td width='749' align='left' valign='top' colspan='2'>The default access for m embers of a class is <br>____</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </ b></td><td width='711' align='left' valign='top'>None of these</td></tr></table> <table border='0' width='600' id='table1_0_55'><tr><td width='41' align='left' v align='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711 ' align='left' valign='top'>moves the put pointer 5 bytes forward from the beginning of the file</td></tr></table><table border='0' width='600' id='tab le1_0_58'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='3 4' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign= 'top'>moves the get pointer 5 bytes backward from the end of the file</td></tr><tr><td width='41' align='left' valign='top'>& nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='7 11' align='left' valign='top'>None of these</td></tr></table><table border='0' w idth='600' id='table1_0_59'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711 ' align='left' valign='top'>moves the get pointer 5 bytes forward from the beginning of the file</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.</td><td width='34' align='left ' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>putch</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b> </td><td width='711' align='left' valign='top'>Value parameter</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width ='711' align='left' valign='top'>Public</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign ='top'>Reference parameter</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.58 </b></td><td width='749' align='left' valign='top ' colspan='2'>What is the use of the following statement? <br>Seekg (-5.

</td><t d width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='lef t' valign='top'>alloc</td></tr><tr><td width='41' align='left' valign='top'>&nbs p.</td><td width='34' align='left' valign='top'><b>B ) </b></td><td width='711' align='left' valign='top'>Protected</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>Run Run</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td> <td width='711' align='left' valign='top'>new</td></tr></table><table border='0' width='600' id='table1_0_60'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><t d width='711' align='left' valign='top'>Conversion function in source</td></tr>< /table><table border='0' width='600' id='table1_0_62'><tr><td width='41' align=' left' valign='top'><b>Q.</td><td width='34' align='left' vali gn='top'><b>C) </b></td><td width='711' align='left' valign='top'>Private</td></ tr><tr><td width='41' align='left' valign='top'>&nbsp.65 </b></td><td width='749' align='left' v align='top' colspan='2'>What is the output of the following <br>expression when executed? int y--5.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' a lign='left' valign='top'>malloc</td></tr><tr><td width='41' align='left' valign= 'top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td ><td width='711' align='left' valign='top'>Public</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b> A) </b></td><td width='711' align='left' valign='top'>Run Linking</td></tr><tr>< td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>A) </b></td><td width='711' align='left' valign='top'>static</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.ating point?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 61 </b></td><td width='749' align='left' valign='top' colspan='2'>The first oper ation to be done after <br>scanning source file is</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='7 11' align='left' valign='top'>Constructor in source</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.64 </b></td><td width='749' align='left' valign='top' colspan='2'>____ members can be accessed by <br>members and objects of the class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.62 </b></td><td width='749' align='left' valign='top' colspan='2'>What is used to convert a cla ss type to Basic <br>type?</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>dynamic</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.63 </b></td><td width='749' align='left' valign='top' co lspan='2'>C++ uses binding of ______ functions by <br>default</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp. int x = y > <br>= 2 ? y < 10 ? I : 0 1 cout < < X .</td></tr .</td><td width='34' align='l eft' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>virtu al</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td>< td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='le ft' valign='top'>None of these</td></tr></table><table border='0' width='600' id ='table1_0_61'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align= 'left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Sta tic</td></tr></table><table border='0' width='600' id='table1_0_64'><tr><td widt h='41' align='left' valign='top'><b>Q.</td>< td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='le ft' valign='top'>None of these</td></tr></table><table border='0' width='600' id ='table1_0_63'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' v align='top'><b>B) </b></td><td width='711' align='left' valign='top'>Run compili ng</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b >B) </b></td><td width='711' align='left' valign='top'>Constructor destination</ td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td wid th='711' align='left' valign='top'>get</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' a lign='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top '>Conversion function in destination</td></tr><tr><td width='41' align='left' va lign='top'>&nbsp.

</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Text</td></tr><tr><td width='41' align='left' valign= 'top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>de name (): be name1()+be name2() {}</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp.69 </b></td><td width='749' align='left' valign='top' colspan='2'>Sepa rate code to handle the error is written <br>in which section?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>de name () : be name1 () be name2 () {}</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign ='top'>Derived class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp .</td><td wid th='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' va lign='top'>= .</td><td width='34' align ='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>de name1 ()+dename2(): be name1()+be name2(){}</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. bename2() {}</td></tr></table><table border='0' width='600' id='table1_0_67'><tr ><td width='41' align='left' valign='top'><b>Q.</td> <td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='l eft' valign='top'>ASCIL</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.</td><td width='34' align='l eft' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>10</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='lef t' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>Base cl ass</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.68 </b></td><td width='749' align ='left' valign='top' colspan='2'>class used to derive other class are</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>0</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.70 </b></td><td width='74 9' align='left' valign='top' colspan='2'>To write data that contains variables o .</td><td width='34' align='left' valign='top'><b>D) </b></td> <td width='711' align='left' valign='top'>Inherit class</td></tr></table><table border='0' width='600' id='table1_0_68'><tr><td width='41' align='left' valign=' top'><b>Q.de anme2(): be name1().67 </b></td><td width='749' align='left' valign='top' colspan='2'>The syntax for multiple inheritance is</td></tr><tr><td width='41' align='left' vali gn='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' al ign='left' valign='top'>Abstract class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.><tr><td width='41' align='left' valign='top'>&nbsp.I</td></tr></table><table border='0' width='600' id='table1_0_65' ><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></ td><td width='711' align='left' valign='top'>Sequential</td></tr></table><table border='0' width='600' id='table1_0_66'><tr><td width='41' align='left' valign=' top'><b>Q.</td><td width='34' align='left' valign='top'>< b>D) </b></td><td width='711' align='left' valign='top'>de name1 ().</td><td width='34' align='left' vali gn='top'><b>A) </b></td><td width='711' align='left' valign='top'>Exception</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp.66 </b></td><td width='749' a lign='left' valign='top' colspan='2'>Which files are created by storing a block of <br>memory?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td wid th='711' align='left' valign='top'>Binary</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp.</td><td width='34' alig n='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>T ry</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left ' valign='top'>Catch</td></tr></table><table border='0' width='600' id='table1_0 _69'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' al ign='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top' >1</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>Throw</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.

</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='t able1_0_74'><tr><td width='41' align='left' valign='top'><b>Q.74 </b></td><td width='749' align='left' valign='top' colspan='2'> The _ concept of OOP allows hiding of both <br>the data fields and the methods t hat act on the <br>data.</td><td width='34' align='left' valign ='top'><b>C) </b></td><td width='711' align='left' valign='top'>125535</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align= 'left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Enc apsulation</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign ='top'>the number of parameters</td></tr><tr><td width='41' align='left' valign= 'top'>&nbsp.73 </b></td><td width='749' align='lef t' valign='top' colspan='2'>When overloading a function in the same <br>class.71 </b></td><td width='749' align='left' valign='top' colspan='2'>To write dat e directly in to an ASCII file. <br>using the insertion operator (<<).</td><td width='34' align='left' valign='top'><b>D) </b></td><td wid th='711' align='left' valign='top'>the name of the function</td></tr></table><ta ble border='0' width='600' id='table1_0_73'><tr><td width='41' align='left' vali gn='top'><b>Q.</td><td width='34' align='left' valign='t op'><b>B) </b></td><td width='711' align='left' valign='top'>Polymorphism</td></ tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b> D) </b></td><td width='711' align='left' valign='top'>ofstream</td></tr></table> <table border='0' width='600' id='table1_0_71'><tr><td width='41' align='left' v align='top'><b>Q.</td><td width='34' align='left' valign='top'><b>B) </b></td><td wi dth='711' align='left' valign='top'>ostream</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></ td><td width='711' align='left' valign='top'>65535</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b> B) </b></td><td width='711' align='left' valign='top'>131040</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' a lign='left' valign='top'>istream</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b>< /td><td width='711' align='left' valign='top'>Inheritance</td></tr><tr><td width ='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'>< b>B) </b></td><td width='711' align='left' valign='top'>the types of the paramet ers</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='71 1' align='left' valign='top'>write ()</td></tr><tr><td width='41' align='left' v align='top'>&nbsp. w hich of these has to be the same?</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td w idth='711' align='left' valign='top'>the return type</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. you should <br>use</td></tr><tr ><td width='41' align='left' valign='top'>&nbsp.</td>< td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='le ft' valign='top'>seekg ()</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.72 </b></td><td width='749' align='left' valign='top' colspan=' 2'>The highest address for 640k memory is</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp. we need a n <br>object of class</td></tr><tr><td width='41' align='left' valign='top'>&nbs p.</td><td width='34' align='left' valign='top'><b>D) </b></td>< td width='711' align='left' valign='top'>Put ()</td></tr></table><table border=' 0' width='600' id='table1_0_70'><tr><td width='41' align='left' valign='top'><b> Q.</td><td width='34' align='left' valign='top'><b>C) </b> </td><td width='711' align='left' valign='top'>ios</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp.75 </b></td><td wi .</td><td width='34' align='le ft' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None o f these</td></tr></table><table border='0' width='600' id='table1_0_72'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>the inser tion operator</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. inside the object</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp.f type <br>float to an object of type of stream.

super classes</td></tr><tr><td width='41' align='left' valign='top'>&n bsp. sub classes</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C ) </b></td><td width='711' align='left' valign='top'>there are multiple paths fr om one derived class to another</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </ b></td><td width='711' align='left' valign='top'>X(&X)</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.77 </b></td><td width='749' align='left' valign='top' colspan='2'>Base classes are ___ while derived classes <br>are ___ _</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='l eft' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>windo w ()</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td>< td width='711' align='left' valign='top'>detectgraph ()</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>C) </b></td><td width='711' align='left' valign='top'>X(X&)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' vali gn='top'>Any where in the program code</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td>< td width='711' align='left' valign='top'>(X&)</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.78 </ b></td><td width='749' align='left' valign='top' colspan='2'>The first graphic l ibrary function to be <br>executed is</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.</td><td width= '34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valig n='top'>None of these</td></tr></table><table border='0' width='600' id='table1_ 0_78'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top '><b>B) </b></td><td width='711' align='left' valign='top'>initgraph ()</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.76 </b></td><td width='749' align='left' valign='top' colspan='2'>An abstract class is useful when</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.</td><td width='34' align='left' val ign='top'><b>D) </b></td><td width='711' align='left' valign='top'>X(X)</td></tr ></table><table border='0' width='600' id='table1_0_75'><tr><td width='41' align ='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table border='0' widt h='600' id='table1_0_77'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) < .</td><td width='34' align='lef t' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>general izations.</td><td width='34' align='left' valign='top'><b>B) </b></td><td w idth='711' align='left' valign='top'>generalizations.</td><td w idth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>no classes should be derived from it</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp.dth='749' align='left' valign='top' colspan='2'> Which of the following is used to identify <br>the copy constructor?</td></tr><tr><td width='41' align='left' v align='top'>&nbsp. specializations</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td> <td width='711' align='left' valign='top'>Before use of functions in the program code</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.79 </b></td><td width='7 49' align='left' valign='top' colspan='2'>The user define header file can be inc luded</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</t d><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align= 'left' valign='top'>You want to defer the declaration of the class</td></tr></table><table border='0' width='600' id='table1_0_76'><tr><td wi dth='41' align='left' valign='top'><b>Q.</td><td width='34 ' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign=' top'>specializations.</td><td width='34' align='left' valign='top'><b>A) </b ></td><td width='711' align='left' valign='top'>no objects should be instantiate d from it</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' vali gn='top'>In the first few line of program code</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp.

can not be initialized</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'>< b>A) </b></td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valig n='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</ td></tr></table><table border='0' width='600' id='table1_1_1'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' ali gn='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'> 1). for (int i = 0 . 3).</td></tr><tr><td width='41' ali gn='left' valign='top'>&nbsp. 3)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.4 </b></td><td width=' 749' align='left' valign='top' colspan='2'>In C++ <br>1. 3).< /td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' alig n='left' valign='top'>person *P [10] = new person. 2).80 </b></td><td width='749' align ='left' valign='top' colspan='2'>Can be viewed as a "fill in the blanks" <br>ver sion of a class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' alig n='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>p erson *p ~ new person [10].</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='t op'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td>< /tr></table><br><br><b><u>PART B</u></b><br><br><table border='0' width='600' id ='table1_1_0'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>tag-name. i < 10.</td><td width='34' align='left' valign='top'><b>C) </b></td><t d width='711' align='left' valign='top'>key word.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width=' 711' align='left' valign='top'>Meta class</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp.hâ .</td ><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align=' left' valign='top'>Template</td></tr><tr><td width='41' align='left' valign='top '>&nbsp. for (int i = 0 .</td><td width='34' align='left' valign='top'><b>C) </b> </td><td width='711' align='left' valign='top'>Both A) and B)</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' vali gn='top'><b>B) </b></td><td width='711' align='left' valign='top'>2).1 </b></td><td w idth='749' align='left' valign='top' colspan='2'>Which of these code fragments g ives the <br>correct way to declare an array of pointers to <br>object of class 'person' and initialize them using <br>a predefined function 'getdata ( ) ?</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp. i + +) p[i]->getdata ( ).</td><td width='34' align=' left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>key word. i++) p[i]->getdata</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp. can not be initial ized</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. can be initialized</td></tr></table><table border='0' width='600' id='tabl e1_1_3'><tr><td width='41' align='left' valign='top'><b>Q. 4)</td></tr></table><table border='0' width='600' id='tabl e1_1_2'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C) </b></ td><td width='711' align='left' valign='top'>Friend class</td></tr><tr><td width ='41' align='left' valign='top'>&nbsp.</td><td width= '34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valig n='top'>tag-name. User defined header files are defined a s are specified as # <br>include â abc./b></td><td width='711' align='left' valign='top'>As first few line before main function of program code</td></tr></table><table border='0' width='600' id='table1_0_79'><tr ><td width='41' align='left' valign='top'><b>Q. can be initialized</td></tr><tr><td width='41' align='left' va lign='top'>&nbsp. i < 10 . 4)</td ></tr><tr><td width='41' align='left' valign='top'>&nbsp. 3)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.3 </b></td><td width=' 749' align='left' valign='top' colspan='2'>The ____ can be used to declared stru cture <br>variable and ____ within the template.2 </b></td><td width='749' align='left' valign=' top' colspan='2'>Which of the following are legal C++ <br>variable names? <br>1) Counter 1 <br>2) 123 <br>3) register <br>4) tor_sal</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. User define header file <br>2.</td><td widt h='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' val ign='top'>1).

</td><td width='34' align='left' valign='top'><b >A) </b></td><td width='711' align='left' valign='top'>i) . &&</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) only</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp.5 </b></t d><td width='749' align='left' valign='top' colspan='2'> A home ___ house that _ ___ a family & <br>pets</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.</td><td width='34' align='left' valign='top'><b>B) </b></td> <td width='711' align='left' valign='top'>is part of.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='t op'>i) ~ a. &&.</td><td width='34' align='left' val ign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these </td></tr></table><table border='0' width='600' id='table1_1_6'><tr><td width='4 1' align='left' valign='top'><b>Q. iii) .</td><td width='34' alig n='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>N one of these</td></tr></table><table border='0' width='600' id='table1_1_5'><tr> <td width='41' align='left' valign='top'><b>Q.# <br>include â abc.</td><td width='34' align='l eft' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>&&1 + +1 < =1 =</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. is a</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp.7 </b></td><td width='749' align='left' valign ='top' colspan='2'>Which of these gives the correct <br>hierarchy of C++ operato rs from highest to <br>lowest precedence ?</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp. + =. < =. has a '</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp. a local ly-access ib le variable <br>with glo bal lifetime C.d. < =.8 </b></td><td widt h='749' align='left' valign='top' colspan='2'>Match the flollowing terms in Set A with <br>their definitions in Set B Set-A i) Static variable <br>ii) Register variable iii) Extern variable Set-B a.hâ <br>3. a local I yacce <br>ssib le variable with local scope</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. a temporary variable <br>used for fast and frequent access d.</td ><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align=' left' valign='top'>Only 3 are correct</td></tr></table><table border='0' width=' 600' id='table1_1_4'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Only 2 an d 3 are correct</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. iii) .d. is a</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='to p'><b>B) </b></td><td width='711' align='left' valign='top'>++. The template written for a base class can be <br>used in erived class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b>< /td><td width='711' align='left' valign='top'>+. ii) .c</td></tr><tr><td width='41' align='left' valign='t .</td><t d width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='lef t' valign='top'>Only 1and 2 are correct</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td w idth='711' align='left' valign='top'>ii) only</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.b.</td><td width='34' align='left' valign='top'><b>C) </ b></td><td width='711' align='left' valign='top'>Both A) and B)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. ii) . +</td></tr></table><table border='0' width='600' id='t able1_1_7'><tr><td width='41' align='left' valign='top'><b>Q. <br>global variable defined in a file and referred to <br>in other files b.6 </b></td><td width='749' align=' left' valign='top' colspan='2'>Which of the following is a valid signature <br>f or overloading the preincrement operator? <br>i) void operator ++ ( ) <br>ii) vo id operator ++ (float)</td></tr><tr><td width='41' align='left' valign='top'>&nb sp. &&</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>++.</td><td width='34' align='left' valign='top'><b>B) </b></td ><td width='711' align='left' valign='top'>Only 1 and 3 are correct</td></tr><tr ><td width='41' align='left' valign='top'>&nbsp.a </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign=' top'><b>C) </b></td><td width='711' align='left' valign='top'>is a.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>has a.

c. stack segment </td></tr><tr><td width='41' align='left' valign='top'>&nbsp. data segment</td></tr><tr><td width='41' align='left' valign='top' >&nbsp. ii) . ::</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>what is the output of the above code?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' vali gn='top'>Compilation error</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.</td><td width='34' align='left' valign=' top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td> </tr></table><table border='0' width='600' id='table1_1_8'><tr><td width='41' al ign='left' valign='top'><b>Q.il cout <br><< P.</td ><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align=' left' valign='top'>gnirts</td></tr><tr><td width='41' align='left' valign='top'> &nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='71 1' align='left' valign='top'>string</td></tr><tr><td width='41' align='left' val ign='top'>&nbsp. <br>cout<<â Enter the integerâ .11 </b></td><td width='749' align='left' valign='top' col span='2'>The output of the following code if input is <br>32767 #include<iostrea m.</td><td width='34' align= 'left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>*. i< length .</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='7 11' align='left' valign='top'>32767</td></tr></table><table border='0' width='60 0' id='table1_1_11'><tr><td width='41' align='left' valign='top'><b>Q.</td><td w idth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>-. <br>}</td></tr><tr><td wid h='41' align='left' valign='top'>&nbsp.a</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp. data segment</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. char *s = "string": int length = <br>strlen (s).b.13 </b></td><td width='749' align='left' valign ='top' colspan='2'>What is the Output of the following <br>function <br>int f.</td><td width='34' align='left' valign='top'><b >D) </b></td><td width='711' align='left' valign='top'>Function.</td><td width='34' align='left' val ign='top'><b>A) </b></td><td width='711' align='left' valign='top'>:: : +</td></ tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>if(n>=5) <br>return i..</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Run time error</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.9 </b></td><td width='749' align='left' valign='top ' colspan='2'>____ and____ operators can not be over <br>loaded</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>grurt</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp. stack segment</ td></tr></table><table border='0' width='600' id='table1_1_12'><tr><td width='41 ' align='left' valign='top'><b>Q.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. i++) P[i] stlength .</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='t op'>Function.op'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>Program. <br>static int i =1.10 </b></td><td width='749' al ign='left' valign='top' colspan='2'>Consider the following c++ program <br>segme nt <br>char p[20]. <br>cout>> â The next number in the series isâ << <br>**union.</td><td width='3 4' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign= 'top'>.h> <br>void main() <br>{ <br>int union. iii) .</td><td width='34' align='left' valign='top'><b>C) </b></td><td width ='711' align='left' valign='top'>i) .:*</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' .12 </b></t d><td width='749' align='left' valign='top' colspan='2'>The life time of static storages are for ____ <br>and storage is done in _____</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td></tr></table><table border='0' width='600' id='table1_1_9'> <tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign=' top'><b>A) </b></td><td width='711' align='left' valign='top'>23768</td></tr><tr ><td width='41' align='left' valign='top'>&nbsp. < br>int n =5.</td><td width='34' align='left' valign='top'><b>D) </b ></td><td width='711' align='left' valign='top'>No output is printed</td></tr></ table><table border='0' width='600' id='table1_1_10'><tr><td width='41' align='l eft' valign='top'><b>Q. <br>for (i = 0. <br>cin>union.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='7 11' align='left' valign='top'>Program. <br>else <br>return n.

x=7</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign ='top'>5</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td w idth='711' align='left' valign='top'>/ and //</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>// and /</td></tr><tr><td width='41' align='left' valign='top'>&nbs p.17 </b></td><td width='749' align='left' valign='top' colspan='2'>Wh at is the value of a and x? <br>int i=5.15 </b></td><td width='749' align='left' valign='top' colspan='2'>Assuming the Nbr variable has to be <br>declared as a reference variable.< /td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' alig n='left' valign='top'>8</td></tr></table><table border='0' width='600' id='table 1_1_13'><tr><td width='41' align='left' valign='top'><b>Q. which of the <br>following is a vali d way to do it?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. istream <br>4.16 </b></td><td width='749' align='left' valign='top' colspan='2'> In C++ ___ denotes escape characters and <br>___ denotes single lin e comment</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='t op'>Only 2.</td><td width='34' align='left' vali gn='top'><b>A) </b></td><td width='711' align='left' valign='top'>a=5.</td><td width='34' align ='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>a= 5. </td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' ali gn='left' valign='top'>Only 1</td></tr></table><table border='0' width='600' id= 'table1_1_14'><tr><td width='41' align='left' valign='top'><b>Q. 3 and 4</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>Only 1 and 2</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' a lign='left' valign='top'>/ and */</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp. x=5</td></tr></table><table border='0' width='600' id ='table1_1_17'><tr><td width='41' align='left' valign='top'><b>Q.</td ><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align=' left' valign='top'>int &Nbr.</td><td width='34' align='left' valign='top '><b>D) </b></td><td width='711' align='left' valign='top'>All of above</td></tr ></table><table border='0' width='600' id='table1_1_15'><tr><td width='41' align ='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C) </b></ td><td width='711' align='left' valign='top'>int & Nbr:</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp. <br>a=i++.</td><td width='34' align='left' valign='top'><b>D) </ b></td><td width='711' align='left' valign='top'>* and /n</td></tr></table><tabl e border='0' width='600' id='table1_1_16'><tr><td width='41' align='left' valign ='top'><b>Q. x=7</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td widt h='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' val ign='top'>a=6.</td><td wi dth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' v align='top'>6</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.14 </b></td><td width= '749' align='left' valign='top' colspan='2'>The base class of flow of data is <b r>1.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width= '711' align='left' valign='top'>int& Nbr. iostream <br>2. ostream</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='to p'>&nbsp. the <br>base class constructor is executed fo llowed by <br>its own constructor <br>ii) ___ are applied in the reverse order i .</td>< td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='le ft' valign='top'>7</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>x=++i.< /td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' alig n='left' valign='top'>a=5. x=6</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='le ft' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Only 2 </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.18 </b></td><td width='749' align='left' valign='top' colspan='2'>Fill in the blanks <br>i) Whe n an object of a _____ is created. ios <br>3.</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp.

</td><td width='34' align='left' valign='top'><b>C) </b></td>< td width='711' align='left' valign='top'>2).</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='t op'>functions. 3).</t d><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align= 'left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>B) </b></td><td wi dth='711' align='left' valign='top'>ii) only</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.</td>< td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='le ft' valign='top'>? :</td></tr><tr><td width='41' align='left' valign='top'>&nbsp .</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' al ign='left' valign='top'>None of these</td></tr></table><table border='0' width=' 600' id='table1_1_21'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b> B) </b></td><td width='711' align='left' valign='top'>derived class.21 </b></td><td width='749' align='left' valig n='top' colspan='2'>Which of the following operators can be <br>overloaded in C+ + ?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td wi dth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' v align='top'>=</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 4) and 5)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. inline function</td></tr></table ><table border='0' width='600' id='table1_1_18'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' a lign='left' valign='top'>i) only</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width= '711' align='left' valign='top'>abstract class.</td><td width='34' align='left' valign=' top'><b>D) </b></td><td width='711' align='left' valign='top'>objects.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' a lign='left' valign='top'>class.</td><td width='34' align='left' valign='top'><b>C) </b></td> <td width='711' align='left' valign='top'>class. object</td></tr><tr><td width='41' align='left' valign='top'>&nbs p.</td><td width='34' alig n='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>1 ). constructors</td></tr><tr><td width='41' align='left' valign='to p'>&nbsp.n a <br>class hierarchy</td></tr><tr><td width='41' align='left' valign='top'>&n bsp. templates</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp. 2).</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>friend class. 4) and 5)</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp. functions</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp. object</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='t op'>base class. destructors </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b ></td><td width='711' align='left' valign='top'>Both A) and B)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.19 </b></td><td width='749' align='left' valign='top' colspan= '2'> ____ describes data and its functionality <br>and its member are called____ </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign ='top'>></td></tr><tr><td width='41' align='left' valign='top'>&nbsp.22 </b>< /td><td width='749' align='left' valign='top' colspan='2'>The different modes fo r opening files are <br>1) in <br>2) out <br>3) inout <br>4) ate <br>5) app</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp. class</td ></tr></table><table border='0' width='600' id='table1_1_19'><tr><td width='41' align='left' valign='top'><b>Q. 2).</td><td width='34' align='left' vali gn='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these< /td></tr></table><table border='0' width='600' id='table1_1_20'><tr><td width='4 1' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign=' top'><b>D) </b></td><td width='711' align='left' valign='top'>1). 3) and 4)</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.20 </b></td><td width='749' align='left' valign=' top' colspan='2'>Consider the following command given at <br>the DOS prompt _ CA > multiply 10 20 30 Here <br>"multiply" is _ <br>i) the name of the function per forming <br>multiplication <br>ii) the name of the file containing the program < br>for multiplication</td></tr><tr><td width='41' align='left' valign='top'>&nbs p. 2) and 3)</td> .

<br>char strl[] = {â 39 March Roadâ }.</td><td w idth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>2) and 3)</td></tr><tr><td width='41' align='left' valign='top'>&nb sp.24 </b></td><td width='749' align='left' valign='top' colspan='2'>What is the result in the variable len after <br>execution of the following statements? <br> int len.compute</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign ='top'><b>A) </b></td><td width='711' align='left' valign='top'>11</td></tr><tr> <td width='41' align='left' valign='top'>&nbsp. getdata //Huser enters 10.getdata //H 10.</td><td width='34' a lign='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top '>14</td></tr></table><table border='0' width='600' id='table1_1_24'><tr><td wid th='41' align='left' valign='top'><b>Q.46 above and get-breadth of a <br>triangle computed if base and height are equal < br>to 10</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign ='top'>output of I and 2 and then infinite loop</td></tr></table><table border=' 0' width='600' id='table1_1_23'><tr><td width='41' align='left' valign='top'><b> Q.</td><td wi dth='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' v align='top'>main() f Shapes (10.26 </ b></td><td width='749' align='left' valign='top' colspan='2'>The advantages of O OP are <br>1) increased programming productivity <br>2) increased maintenance co st <br>3) decreased programming productivity <br>4) Decreased maintenance cost</ td></tr><tr><td width='41' align='left' valign='top'>&nbsp. for ( .</td><td width='34' align='left' valign='top'><b>C) </b ></td><td width='711' align='left' valign='top'>output of I and 2 & then termina tes</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. n .</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' al ign='left' valign='top'>main shape tri. tri.</td><td width='34' a lign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top '>Only 1)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width= '34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valig n='top'>Compilation errors</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.</tr></table><table border='0' width='600' id='table1_1_22'><tr><td width='41' a lign='left' valign='top'><b>Q.</td><td width='34' align=' left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>13</ td></tr><tr><td width='41' align='left' valign='top'>&nbsp. ) <br>if (n > 2) <br>continue.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>12</td></t r><tr><td width='41' align='left' valign='top'>&nbsp. 10). s1.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='7 11' align='left' valign='top'>Runtime errors</td></tr><tr><td width='41' align=' left' valign='top'>&nbsp.</td></tr><tr><td w dth='41' align='left' valign='top'>&nbsp. 10 cout << tri. <br>else <br>cout << n +.compute</td></tr><tr><td width='41' align='left' valign='top'>&nbsp .</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Only 2)</td></tr><tr><td width='41' align='left' valig n='top'>&nbsp. s2 & sl.</td><td width='34' align='left' valign='top'><b>D) </b></td><td w idth='711' align='left' valign='top'>1) and 4)</td></tr></table><table border='0 . </td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' ali gn='left' valign='top'>None of the above</td></tr></table><table border='0' widt h='600' id='table1_1_25'><tr><td width='41' align='left' valign='top'><b>Q.23 </b></td><td width='749' align='left' valign='t op' colspan='2'>What is the output of the following code <br>fragment when execu ted? int n = 1.25 </b></td><td width='749' align='left' valign='top' colspan='2'>How would you make use of the class <br>defined in Q.compute</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 10 should be entered by H user cout << * s2. <br>len=strlen( strl). cout << s.</td><td w idth='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>main shape s1 * s2.

i nt height) // Line 1 <br>public: compute ( int b.</td><td width='34' align='left' valign='top'><b>A) </b></td><td wi dth='711' align='left' valign='top'>2).â <<name. <br>3) /9Addition /z = x+y.</td><td width='34' align='left' valign='to p'><b>C) </b></td><td width='711' align='left' valign='top'>1).>>y. <br>"Run-time polymorphism is implemented by <br>using <br>i) Operator overload ing <br>ii) Inheritance <br>iii) Virtual functions <br>iv) Function overloading< /td></tr><tr><td width='41' align='left' valign='top'>&nbsp. type-casting is required</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp.' width='600' id='table1_1_26'><tr><td width='41' align='left' valign='top'><b>Q .</td><td width='34' align='left' valign='top'><b>B) </b></td><td widt h='711' align='left' valign='top'>Line 2 has to be modified to allow compute to return a real number upto 2 digits of precision</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. '\'n').</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='to p'>ii) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. int h) // Line2 <br>return l/2 *b*h // line3 <br>getdata cin>>base>>height.29 </b></td><td width='749' align='left' valign='top' colspan=' 2'>In the following code segment.27 </b></td><td width='749' align='left' valign='top' colspan='2'>Identify the statements that have error <br>1) cout << â x=â x.</td></tr><tr><td width='41' align='left' valig ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width=' 711' align='left' valign='top'>There are no errors .</td><td width='34' al ign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top' >scatift"%s".getline (str. height = 0.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 2) . 4)</td></tr></table><table border='0' width='600' id='table1_1_27'><tr><td width='41' align='left' valign='top'><b>Q. '\n'). 3)</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp. <br>Shape ( ) 1 base = 0.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left ' valign='top'>Computation at line 3 will always result in zero. now the function is required that will call compute ( ) and get the result</td></tr></table><table border='0' width='600' id='table1_1_29'><tr><td w idth='41' align='left' valign='top'><b>Q. // line4</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width ='711' align='left' valign='top'>iii) and iv)</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp. 3).</td><td width='34' align='le ft' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>1).</td ><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align=' left' valign='top'>i) and iv)</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='t op'>None of these</td></tr></table><table border='0' width='600' id='table1_1_30 .</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.getLine (str.</td><td width='34' align='left' valign='top'><b>D) </ b></td><td width='711' align='left' valign='top'>None of these</td></tr></table> <table border='0' width='600' id='table1_1_28'><tr><td width='41' align='left' v align='top'><b>Q. locate the <br>errors and correct them this co de is written to <br>calculate area of a triangle using the formula <br>A =1/2 * base * height // upto two digits of <br>precision <br>class Shape ( int base. 3).</td><td width='34' align='left' valign='top'><b >C) </b></td><td width='711' align='left' valign='top'>cin. </td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 25.</td><td w idth='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Both A) and B)</td></tr><tr><td width='41' align='left' valign='top '>&nbsp. 4)</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp. 4)</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) < /b></td><td width='711' align='left' valign='top'>1). from <br>the user into char str [25] in C ++?</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>2) cin>>x.28 </b></td><td width='749' align='le ft' valign='top' colspan='2'>Fill in the blanks from the given set of <br>words. <br>4) cout<</n â Name.30 </b></td><td width='749' align='left ' valign='top' colspan='2'>Which of these is the correct way to accept <br>a sen tence of 25 characters maximum. str). </td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' ali gn='left' valign='top'>cin. 2).

int severity).</td><td width='34' align='left' valign='top'><b>A) </ b></td><td width='711' align='left' valign='top'>i) only</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' al ign='left' valign='top'>1) â b).</td><td width='34' align='left' valign='top'><b>A ) </b></td><td width='711' align='left' valign='top'>1) â c).</td><td width ='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' vali .</td><td width='34' align='left' valign='top'><b>A) </b></t d><td width='711' align='left' valign='top'>Inheritance</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Both A) and B)</td></tr><tr><td width='41' align='left' valign='to p'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Polymorphism</td></tr></table><table border='0' width='600' id='tab le1_1_31'><tr><td width='41' align='left' valign='top'><b>Q. 2) â a). 3) â a)</td></tr></table><table border='0' 600' id='table1_1_32'><tr><td width='41' align='left' valign='top'><b>Q. 3) â a)</td></tr><tr><td width='41' align='left' valign='top .33 </b>< /td><td width='749' align='left' valign='top' colspan='2'>Which of these declara tions of functions <br>that use default arguments is wrong'?</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left ' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Both i) and ii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td wid th='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' va lign='top'>None of these</td></tr></table><table border='0' width='600' id='tabl e1_1_34'><tr><td width='41' align='left' valign='top'><b>Q.31 </b></td><td width='749' align='left' valign='top' colspan='2'>What does the following code represent? <b r>Class A <br>{}.</td><td width='34' align='le ft' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' 34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign ='top'>1) â c). <br>class B <br>{A a.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width= '711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='table1_1_33'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign ='top'><b>A) </b></td><td width='711' align='left' valign='top'>void Error (char *msg.</td><td width='34' align=' left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>Cont ainership</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>i) app <br>ii) binary <br>iii) ate <br>iv) out</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.35 </b></td><td width ='749' align='left' valign='top' colspan='2'>Identify the valid modes for openin g files <br>in C++.</td><td width='34' align='left' valign='top '><b>B) </b></td><td width='711' align='left' valign='top'>Derived class</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711 ' align='left' valign='top'>void Error (char*msg = "Bomb". int severity = 0).'><tr><td width='41' align='left' valign='top'><b>Q. 3) â b)</td></ <td width='41' align='left' valign='top'>&nbsp. 34 </b></td><td width='749' align='left' valign='top' colspan='2'>Which of these is true? <br>i) Private members can be accessed only by the <br>class in which they are declared and by any <br>friend classes & functions <br>ii) Protected me mbers are private within the <br>class in which they are declared & are availabl e <br>for private access in the derived class</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.}</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp. 2) â b).</td><td width='34' align='left' valign='to p'><b>B) </b></td><td width='711' align='left' valign='top'>ii) only</td></tr><t r><td width='41' align='left' valign='top'>&nbsp. 2) â c). 2) â b). 3) â c)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>1) â a).32 </b></td><td widt h='749' align='left' valign='top' colspan='2'>Match the following <br>Set â A <br>1) :: <br>2) :: <br>3) <br>Set â B <br>a) Pointer â to member declarator <br>b) Pointer member operator <br>c) Scope resolution operator</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>& nbsp.

and 5)</td></tr></table><table border='0' width='600' id ='table1_1_38'><tr><td width='41' align='left' valign='top'><b>Q.gn='top'>ii) and iv)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp . i++) C in >> n[i].</td><td width='34' align='left' valign='top'><b>D) </b> </td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>C) </b></td><td width ='711' align='left' valign='top'>1).39 </b></td><td width='749' align='left' valign='top' colspan='2'>Which of these is not a corre ct way to <br>initialize arrays in C++?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 4). 4)</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp. 2)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 2.</td><td width='34' align='l eft' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>1). 3)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><t d width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='lef t' valign='top'>3).</td><td width='34' al ign='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top' .</td><td width='34 ' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign=' top'>1). 2).</td><td width='34' align='left' valign='top'><b>A) </b>< /td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>A) </b></td>< td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>C) </b></td><td wi dth='711' align='left' valign='top'>static int n[2] [31 = 1 1 2. 3)</td></tr></table><table border='0' width='600' id='table1_1_36'><tr><td w idth='41' align='left' valign='top'><b>Q.</td><td width='34' align=' left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>1). 2 ). 2).37 </b></td><td width='749' align='left ' valign='top' colspan='2'>Identify the situations where inline <br>expansion ma y not work <br>1) If a loop. 3). 4.</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' al ign='left' valign='top'>i) and iv)</td></tr><tr><td width='41' align='left' vali gn='top'>&nbsp. 3)</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>B) </b></td><td width='711' align='left' valign='top'>2).</td><td width='34' align='left' valign='top'>< b>B) </b></td><td width='711' align='left' valign='top'>1). 2). 3</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width ='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' vali gn='top'>char name [5] = "0011". If functions contain static variables <br>4. i<=5.38 </b></td><td width='749' align='left' valign='top' colspan='2 '>The ostream class includes <br>1) Put() <br>2) get() <br>3) putline() <br>4) g etline() <br>5) write() <br>6) read()</td></tr><tr><td width='41' align='left' v align='top'>&nbsp. If functions are recursiv e</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 3) and 5)</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td ><td width='711' align='left' valign='top'>char n(5). For (int i=1. 1 1. 3)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. a switch or goto exists in functions <br>returning values <br>2) If a return statement exists.</td><td width='34' align='left' vali gn='top'><b>C) </b></td><td width='711' align='left' valign='top'>2).36 </b></td><td width='749' align='left' valign='top' colspan='2'>Which statement are true with respect to <br>static data members? <br>1) It id initia lized to zero when the first object <br>of its class is created <br>2) Only one copy of that member is created for <br>the entire class <br>3) It is visible and its lifetime is only within the <br>class</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 3). 4)</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp. for functions not <br>returning valv es <br>3. 3). 4) and 6)</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.</td ><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align=' left' valign='top'>2). 3) and 4)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 4)</td></tr></table>< table border='0' width='600' id='table1_1_37'><tr><td width='41' align='left' va lign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>All of i) to iv)</td></tr></table><table b order='0' width='600' id='table1_1_35'><tr><td width='41' align='left' valign='t op'><b>Q.

<br>change ). 1). 1). <br>}</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp. <br>cin<<z.3 </b></td><td width='749' align='left' valign='to p' colspan='2'>What would be the output from the <br>following program when the input is -1? <br>void change(void) <br>{ <br>int x.</td><td width='34' align='left ' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>3).</td><td width='34' alig n='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>O nly 2 and 3 are correct</td></tr><tr><td width='41' align='left' valign='top'>&n bsp. 5)</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>All 1. </td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' ali gn='left' valign='top'>Only 1 and 3 are correct</td></tr><tr><td width='41' alig n='left' valign='top'>&nbsp. 3)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='3 4' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign= 'top'>All of the above</td></tr></table><table border='0' width='600' id='table1 _2_1'><tr><td width='41' align='left' valign='top'><b>Q. z. <br>x = 1. <br>} <br>void ma in() <br>{ <br>int x. 1). 2). <br>cout<< x << endl. 4). 2 and 3 are correct</td></tr></table><br><br>< b><u>PART C</u></b><br><br><table border='0' width='600' id='table1_2_0'><tr><td width='41' align='left' valign='top'><b>Q. 3).</td><td width='34' align='left' valig n='top'><b>C) </b></td><td width='711' align='left' valign='top'>None of the abo ve</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>1</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></ td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top' ><b>D) </b></td><td width='711' align='left' valign='top'>4). 3). 5)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></t d><td width='711' align='left' valign='top'>-1</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp.>None of the above</td></tr></table><table border='0' width='600' id='table1_1_3 9'><tr><td width='41' align='left' valign='top'><b>Q.40 </b></td><td width='749' align='left' valign='top' colspan='2'> in C++ <br>1. 2). 4). 4)</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp. 2). 3)</td ></tr></table><table border='0' width='600' id='table1_2_2'><tr><td width='41' a lign='left' valign='top'><b>Q. 5). <br>x = 0 <br>cout>> â Enter a numberâ .</td><td width='34' align='left' valign='top'><b>D) < /b></td><td width='711' align='left' valign='top'>2</td></tr></table><table bord er='0' width='600' id='table1_2_3'><tr><td width='41' align='left' valign='top'> <b>Q.1 </b></td><td width='749' align='lef t' valign='top' colspan='2'>A pure virtual function is a virtual function <br>th at <br>1) causes its class to be abstract <br>2) returns nothing <br>3) is used in a base class <br>4) takes no arguments</td></tr><tr><td width='41' align='lef t' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td wi dth='711' align='left' valign='top'>5).</td><td width='34' align='left' valign='top'><b >B) </b></td><td width='711' align='left' valign='top'>2).</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Only 1 and 2 are correct</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp.4 </b></td><td width='749' align='left' valign='top' colspan='2'>Spot the e . 2)</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp. A member function in base class can be used <br>by objects if derived class <br>2. Base class can not use any data members o f <br>derived class</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.2 </b></td><td width='74 9' align='left' valign='top' colspan='2'>What is the correct sequence of excepti on <br>handling? <br>1) Controls enters the try block <br>2) The member function throws an exception <br>3) Control transfers to the exception handler <br>follo wing the try block <br>4) Code is executing normally outside try block <br>5) An statement in the try block causes an error <br>in a member function</td></tr><t r><td width='41' align='left' valign='top'>&nbsp. 4). The protection can be d ecreased in derived <br>classes <br>3.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>A) </b></td><td widt h='711' align='left' valign='top'>0</td></tr><tr><td width='41' align='left' val ign='top'>&nbsp.

3)</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp. 3)< /td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' alig n='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>i ii) only</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td w idth='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>i) and ii)</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.</td><td width='34' align='left' valign='top'><b>A) </ b></td><td width='711' align='left' valign='top'>i) and iii)</td></tr><tr><td wi dth='41' align='left' valign='top'>&nbsp.< /td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' alig n='left' valign='top'>Compilation errors at line 1.</td><td width='34' al ign='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top' >ii) only</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.display ( ). <br>Hline 3 main ( ) ( test *p.</td><td width='34' align='lef t' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>2).B:: showA (). 6 and 7</td></tr><t r><td width='41' align='left' valign='top'>&nbsp.7 </b></td><td width='749' align='left' valign='top' colspan='2'>What are the adv antages of linked list? <br>1) We can preserve the physical order through <br>we have a random logical order.</td><td width='34' align='left' valign ='top'><b>B) </b></td><td width='711' align='left' valign='top'>ii) and iv)</td> </tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>cout << b. 2). 3).getdata ( ).8 </b></td><td . //line 3 <br>i) compilation error in line 1 <br>ii ) compilation error in line 2 <br>iii) compilation error in line 3</td></tr><tr> <td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left ' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>Compilat ion errors at line I and 6</td></tr><tr><td width='41' align='left' valign='top' >&nbsp.5 </b></td><td width='749' align='left' va lign='top' colspan='2'>Which of the following statements is false? <br>i) Pointe r of its base class can point to an <br>object of the derived class <br>ii) A ba se pointer pointing to the derived class <br>object can access base class variab les <br>iii) A pointer of a derived class can point to an <br>object of the base class <br>iv) this pointer is not modifiable</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.showC //Hline 2 <br>x. 3). <br>2) Optimum use of memory <br>3) New nodes can be inserted at any point <br>4) Nodes cannot be deleted</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp. <br>class C :pu blic A. 4)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. public B <br>void main () <br>b.</td><td width='34' align='left' valign='top '><b>A) </b></td><td width='711' align='left' valign='top'>1).</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of t hese</td></tr></table><table border='0' width='600' id='table1_2_4'><tr><td widt h='41' align='left' valign='top'><b>Q. <br>Hline 2public : void getdata cin >> m. 4)</td></tr></table><table border='0' width='600' i d='table1_2_7'><tr><td width='41' align='left' valign='top'><b>Q. <br>Hline 4void display ( ) cout << in. 6 and 7</td></tr><tr ><td width='41' align='left' valign='top'>&nbsp. 3.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='to p'>1).</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) only</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp. 4. 5. <br>class B <br>int b. <br>x. <br>Hline 5 p = new test. <br>public: void showB. <br>Hline 7 (*p).</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>ii) and iii) catch</td></tr></table><table border='0' width='600' id='table1_2_6'><tr><td width='41' align='left' valign='top'><b>Q. 2).</td>< td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='le ft' valign='top'>1).rrors in the following program <br>Hline 1Class test1 int m. <br>public : void showA <br>cout << a.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='7 11' align='left' valign='top'>Compilation errors at line 5. <br>Hline 6 p.</td><td wi dth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' v align='top'>None of these</td></tr></table><table border='0' width='600' id='tab le1_2_5'><tr><td width='41' align='left' valign='top'><b>Q.showB //Hline 1 <br>Char x.6 </b></td><td width= '749' align='left' valign='top' colspan='2'>What is the output after executing t he <br>code below'? <br>class A <br>int a .

<br>3.< /td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' alig n='left' valign='top'>1 and 2</td></tr><tr><td width='41' align='left' valign='t op'>&nbsp. 4)</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.width='749' align='left' valign='top' colspan='2'>Assume a class C with objects obj1. ii) . iv) a</td></tr><tr><td width='41' alig n='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width ='711' align='left' valign='top'>2.a.</td><td width='34' align='left' valign='top'><b>B) </b></td><td widt h='711' align='left' valign='top'>3). 6. 120</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. < br>fact = 1 <br>i = 2 <br>while(i < =6) <br>fact *= i.</td><td width='34' align='left' valign='top'><b>C) </b> </td><td width='711' align='left' valign='top'>2. obj2 <br>and obj3.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.d. <br>modifier2) <br>{ body of the loop}.</td><td width='34' align='left' val ign='top'><b>D) </b></td><td width='711' align='left' valign='top'>1.d. do <br>{ body of the loop} while (condition). 3</td></tr><tr><td width='41' align='left' v align='top'>&nbsp. 6. ii) .11 </b></td><td width='749' align='left' valign='top' colspan ='2'>What would be output by the following <br>segment of C++? <br>int fact I.</td><td width='34' align='left' valign='top'><b>D) </b></td>< td width='711' align='left' valign='top'>All the above</td></tr></table><table b order='0' width='600' id='table1_2_9'><tr><td width='41' align='left' valign='to p'><b>Q. <br>i++. 24.e. iii) . 120</td></tr><tr><td width='41' align='l eft' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' al ign='left' valign='top'>i) .10 </b></td><td width='749' align='left' valign='top' colspan='2'>Match the categories of graphics function <br>in Set.c.b. t est condition2.c. iv) d</td></tr><tr><td width= '41' align='left' valign='top'>&nbsp. 24.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.9 </b></td><td width='749' align='left' valign='top' colspan='2'>S elect correct Syntaxes <br>1. test <br>conditon1. in) . putch</td></tr><tr><td width='41' align='left' valign='top'>&nbsp . modifier <br> expression. For the statement obj3=obj1-obj2 to <br>work correctly.b.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left ' valign='top'>i) . modifier1. 4)</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp. 1. 4)</td></tr></table><t able border='0' width='600' id='table1_2_8'><tr><td width='41' align='left' vali gn='top'><b>Q. which <br>of the follow .</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>1. <br>cout << fact . initialization2. 2 4</td></tr></table><table border='0' width='600' id='table1_2_11'><tr><td width= '41' align='left' valign='top'><b>Q.<br>A with an example listed in Set-B <br>Set-A <br>i) Text-mode Graphics function <br>ii) Graphics-i-node Drawi ng function <br>iii) Graphics-mode Text output function <br>iv) Graphics-mode po sition function <br>Set-B <br>a. 6. the overloaded operator must <br>1) take two arguments <br>2) return a value <b r>3) create a named temporary object <br>4) use the object of which it is a memb er as an <br>operand</td></tr><tr><td width='41' align='left' valign='top'>&nbsp . go to xy <br>C. 2)</td></tr><tr><td width='41' align='left' valign=' top'>&nbsp. circle <br>b.</td>< td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='le ft' valign='top'>1</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. iii) .c.</td><td width='34' align='left' valign='top'><b> D) </b></td><td width='711' align='left' valign='top'>1). while (test condition) <br>{ body of the loop} <br>4.) <br>2. putpixel <br>d. 2. iv) b</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. test condition. 120. 6. for (initialization1. for (initialization. 1.</td><td width='34 ' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign=' top'>2.</td><td width='34' align='left' valign='top'><b>C) </b></t d><td width='711' align='left' valign='top'>2).</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' al ign='left' valign='top'>1).12 </b></td><td width='749' align='left' val ign='top' colspan='2'>Given the skeleton C++ code below. g etmax x <br>e.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></tabl e><table border='0' width='600' id='table1_2_10'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='to p'><b>B) </b></td><td width='711' align='left' valign='top'>i) . 2. ii) . 24. 720</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.

name[0]. <br>9. dispdata(). â myclass (). b 1. int num <br>5.getdata(). <br>12. <br>What are the valid ways to access the <br>members?< /td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>17.rollno.} <br>8.mark</td></tr></table><table border='0' width='600' id='table1_2_14'><tr><td width='41' align='left' valign='top'><b>Q. void main(){ <br>15.ro llno.} <br>11. //line 1 <br>class B private A // line 2 <br>class C :class A . a1. <br>18. compiler error is caused as class A is abstract and hence it can't be instantiated</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp.</td><td width='34' align='left' valign=' top'><b>D) </b></td><td width='711' align='left' valign='top'>* std.</td><td widt h='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' val ign='top'>ii) and iv)</td></tr><tr><td width='41' align='left' valign='top'>&nbs p. a1.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' a lign='left' valign='top'>ii) and iii)</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.dispdata(â ). myclass b1(5). myclass(int n) { num = n.rollno.grade. std. grade.b1.h> <br>2. especially the concepts of <br>encapsulation and data security</td></tr ><tr><td width='41' align='left' valign='top'>&nbsp.14 </b></td><td width='749' align='left' valign='top' colspan='2'>Gi ven the following code <br>struct std <br>{ <br>char name[20]. //line 3 <br>void main ( ) ~ A //line 4</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp. a1 getpdata().rollno. * std. std.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='to p'>std. std. } <br>In the above progr .</td><td width='34' align='l eft' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) an d iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.dispdata(). <br>19. { cin>> num. { cout<< endl<<â NUMBER=â <<num.15 </b></td><td width='749' align='le ft' valign='top' colspan='2'>Carefully go through the following program <br>1. <br>int ro llno. * std. void getdata() <br>10. std.mark</td></tr><tr><td widt h='41' align='left' valign='top'>&nbsp. std. std. # include <iostrem.mark[0]</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='71 1' align='left' valign='top'>All of the above</td></tr></table><table border='0' width='600' id='table1_2_12'><tr><td width='41' align='left' valign='top'><b>Q. public <br>6. myclass() {num = 0. <br>14.dispdata().</td><td width='34' align='left' valign='top'><b>D) </b></td>< td width='711' align='left' valign='top'>All of i) to iv)</td></tr></table><tabl e border='0' width='600' id='table1_2_13'><tr><td width='41' align='left' valign ='top'><b>Q. myclass a1 <br> 6.name.name std.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='7 11' align='left' valign='top'>In line 3. b1. * std.ing statements is false? <br>abstract class A.</td><td width='34' align='lef t' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>In line 4.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left ' valign='top'>std.} <br>7.</td><td width='34' align='left' valign='top'><b>B) < /b></td><td width='711' align='left' valign='top'>In line 2.grade. class B is private derivation of class A and hence public members of class A remain private in class B and can be accessed by the member functions of B only</td></tr><tr><td width='41' align='left' valign='top' >&nbsp. it has to use an object to access any <br> member of the class <br>ii) Friend functions can have objects as <br>arguments < br>iii) Friend class can have access to the p rivate <br>data of the class which made it as a friend <br>iv) Friend functions and classes defeat the <br>purpose of OOP. grade. class myclass{ <br>3. * std.mark[0]</td></tr><tr><td width='41' align ='left' valign='top'>&nbsp. class C is public derivation of class A and so class A's public member are accessible to the objects of class C</td></tr><tr><td width='41' align='left' valign='top'> &nbsp. std. }. <br>20.</td><td width='34' align='left' valign='top'><b>B) < /b></td><td width='711' align='left' valign='top'>std. private <br>4. 13 </b></td><td width='749' align='left' valign='top' colspan='2'>Which of the f ollowing statements is true <br>about friend functions? <br>i) Friend functions cannot use member names <br>directly. int mark[2] <br>}. <br>13.grade.name. void dispdata().

</td><td width='34' align='left' valign='top'><b> B) </b></td><td width='711' align='left' valign='top'>3. <br>if y.0. <br>int f(). 14. 15.x <br>}</td></tr><tr><td width='41' align='left' valign='top '>&nbsp. <br>int g() const.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='t op'>The program finds the remainder after dividing m by n using repeated subtraction </td></tr><tr><td width='41' align='left' valign='top'>&nbsp. y. 20</td></tr></table><table border='0' width='60 0' id='table1_2_15'><tr><td width='41' align='left' valign='top'><b>Q.</td> <td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='l eft' valign='top'>Both f and g can carry out the assignment</td></tr><tr><td wid th='41' align='left' valign='top'>&nbsp. 10.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='7 11' align='left' valign='top'>The program computer the least common multiple (LCM) of ni and n </td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td> <td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='l eft' valign='top'>3. <br>while ( x ! = y) <br>if (X>Y) x = x â y.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width=' 711' align='left' valign='top'>1. 17. <br>q uiz. <br>private.</td><td width='34' align='lef t' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>Neither f nor g can carry out the assignment</td></tr></table><table border='0' width=' 600' id='table1_2_17'><tr><td width='41' align='left' valign='top'><b>Q. y=n. 11. but not g</td></tr><tr><td width='41' align='left' valign='top'>& nbsp. <br>else v = v .</td><td width=' 34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign ='top'>i). 12. 10. 6. <br>double score. <br>cin >> m >>n.am which lines have errors?</td></tr><tr><td width='41' align='left' valign='top '>&nbsp. but not f</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width=' 711' align='left' valign='top'>The program computes tile quotient of min using repeated subtraction</td></tr><tr><td width='41' align='left' valign='top' >&nbsp. 8. 15.18 </b>< /td><td width='749' align='left' valign='top' colspan='2'>What does the followin g code segment do? <br>main() <br>{ <br>int x. m. n. 18</td></tr> <tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='le ft' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>2. 16.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711 ' align='left' valign='top'>g can carry out the assignment.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>ii) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. to the private member v ariable score?</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 18. 5.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='t op'>None of these</td></tr></table><table border='0' width='600' id='table1_2_18 . 20</td></tr><tr><td width='41' a lign='left' valign='top'>&nbsp. <br>} <br>Wh ich functions can carry out an assignment <br>score=1.16 </b></t d><td width='749' align='left' valign='top' colspan='2'>Which of these statement s is false? <br>i) A static member function call have access to <br>the 'this' p ointer of the class <br>ii) A static member function can access only <br>static member data and functions of the class <br>as well as functions outside the clas s <br>iii) A static member function cannot be declared <br>as virtual <br>iv) A static member function has to be called <br>only by using the instance of the cl ass</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 8.</td><td width='34' align='left' valign='top'> <b>D) </b></td><td width='711' align='left' valign='top'>All of these</td></tr>< /table><table border='0' width='600' id='table1_2_16'><tr><td width='41' align=' left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>C) </b></td ><td width='711' align='left' valign='top'>i) and iv)</td></tr><tr><td width='41 ' align='left' valign='top'>&nbsp. <br>cout << m>0 and n>0 <br>x=m. ii) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&n bsp.17 </b></td><td width='749' align='left' valign='top' co lspan='2'>Consider this class definition: <br>class quiz <br>{ <br>public.</td><td width='34' align='left' valign= 'top'><b>B) </b></td><td width='711' align='left' valign='top'>f can carry out t he assignment. 19</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.

4)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' al ign='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top' >Indeterminate</td></tr></table><table border='0' width='600' id='table1_2_22'>< tr><td width='41' align='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>1 Value of i is 0</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. iii) .</td> <td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='l eft' valign='top'>1 Value of</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>} <br>The output of the above program will be</td></tr><tr>< td width='41' align='left' valign='top'>&nbsp.a.c. iii) . iv) . class o <br>3) c lass m: public n.23 </b></td><td width='749' ali . (int *gd. if any <br>Set-A <br>i) initgraph <br>ii) clos egraph <br>iii) window <br>iv) putch <br>Set-B <br>a.</td><td wi dth='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' v align='top'>None of these</td></tr></table><table border='0' width='600' id='tab le1_2_19'><tr><td width='41' align='left' valign='top'><b>Q.'><tr><td width='41' align='left' valign='top'><b>Q. iii) .d. </td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' ali gn='left' valign='top'>None of these</td></tr></table><table border='0' width='6 00' id='table1_2_20'><tr><td width='41' align='left' valign='top'><b>Q. predi ct <br>the Output of the following code segment <br>main() <br>int i = 1.b</td></tr><tr><td w idth='41' align='left' valign='top'>&nbsp.c</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.a.</td><td width='34' align='left' v align='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) .d. (char C) <br>b.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>i) . <br>Cout<<â The size of class ABC isâ <<size of (a).b.22 </b></td>< td width='749' align='left' valign='top' colspan='2'>Class ABC <br>{ <br>private : <br>public: <br>} <br>int main() <br>{ <br>ABC a. 3). ( int L. int T. ( ) <br>d. ii) . j=2 .</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>3). 4)</td></tr><tr><td width='41' align='left' valign='top'>&nb sp. ii) .</td><td width='34' align ='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='top'>1) .</td><td wi dth='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' v align='top'>2).d . Int R. <br>with ba se classes n and o <br>1)class m: n.c. 4)</td></tr></table><table border='0' width='600' id='table1_2_21'><tr><td width='41' align='left' valign='top'><b>Q. int B)</td></tr><tr>< td width='41' align='left' valign='top'>&nbsp.21 </b></ td><td width='749' align='left' valign='top' colspan='2'>Which of the following would be a valid <br>class declaration header for a derived class m. <br>cout<<â valu e of i isâ <<I.</td ><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align=' left' valign='top'>The size of class ABC is 1</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top' ><b>A) </b></td><td width='711' align='left' valign='top'>All of the above</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp. int mode. iv) .20 </b></td><td widt h='749' align='left' valign='top' colspan='2'>Match the following pre-defined fu nctions <br>with then parameters. o</td></tr><tr><td width='4 1' align='left' valign='top'>&nbsp.b</td></tr><tr><td width='41' align='left' valign='top'>&n bsp. public o <br>4) class m: public n.</td><td width='34' align='left' v align='top'><b>A) </b></td><td width='711' align='left' valign='top'>The size of class ABC is 0</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>if ( i =--j >2) <br>cout<< i<<1l% <br>else <br>cout<<"Bye<<"\n".</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valig n='top'><b>C) </b></td><td width='711' align='left' valign='top'>i) .19 </b></td><td width='749' align='left' valign='top' colspan='2'>Using tile precedence of' operators. o <br>2) class m: class n.a. iv) . ii) . char*c) <br>c.</td><td width='34' align='left' valign='top'><b>C) </ b></td><td width='711' align='left' valign='top'>The size of class ABC is 100</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td ><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align=' left' valign='top'>Bye Value of i is1</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 3).

2.</td><td width='34' align='left' valign='top '><b>C) </b></td><td width='711' align='left' valign='top'>iii). 4). iv) and</td></t r><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'> <b>A) </b></td><td width='711' align='left' valign='top'>1.</td><td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' valign='to p'>1 and 6 are correct</td></tr><tr><td width='41' align='left' valign='top'>&nb sp. int c=o). 3 and 6 are correct< /td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>2.</td><td width='34' align='left' valign='top'><b>B ) </b></td><td width='711' align='left' valign='top'>cout<<sum(1. Constant is one which has fixed value only <br>through out the class <br>3.</td><td width='34' align='left' valign='top'><b>D) </ b></td><td width='711' align='left' valign='top'>2. 3.</td> <td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='l eft' valign='top'>None of the above</td></tr></table><table border='0' width='60 0' id='table1_2_23'><tr><td width='41' align='left' valign='top'><b>Q.</td><td width ='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' vali gn='top'>cout<<sum(2. The first member of an enum gets value 1 <br>5. 4 and 6 are correct</td></tr ></table><table border='0' width='600' id='table1_2_25'><tr><td width='41' align ='left' valign='top'><b>Q.</td><td width='34' align='left' valign='top'><b>A) </b></td><td wi dth='711' align='left' valign='top'>cout<<sum(1).gn='left' valign='top' colspan='2'>Which of these is a correct way to handle <br >exceptions</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign ='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align=' left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></table><table border='0' width='600' id='table1_2_26'><tr><t . int b-1.</td></tr><tr><td width='41' al ign='left' valign='top'>&nbsp. Register is a C++ key word <br>2. Arr ays are not allowed while declaring the <br>structures <br>6.</td><td width ='34' align='left' valign='top'><b>B) </b></td><td width='711' align='left' vali gn='top'>try throw " Allocation failure" catch (char) catch (int i)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. 5 are correct</td></tr><tr><td width='41' align= 'left' valign='top'>&nbsp. 2).</td><td width='34' align='lef t' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>cout<<s um(). To expressions con nected by an arithmetic <br>operator is an expression</td></tr><tr><td width='41 ' align='left' valign='top'>&nbsp.25 </b></td><td w idth='749' align='left' valign='top' colspan='2'>Out of the following statements <br>1.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left ' valign='top'>throws "out of range" catch</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td></tr></table><table border='0' width='600' id=' table1_2_24'><tr><td width='41' align='left' valign='top'><b>Q.</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'><b>A) </b></td><td width='7 11' align='left' valign='top'>ii) and iii)</td></tr><tr><td width='41' align='le ft' valign='top'>&nbsp.24 </b></t d><td width='749' align='left' valign='top' colspan='2'>Identify which of the fo llowing function <br>calls are allowed given the prototype <br>declaration <br>i nt sum(int a.</td>< td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='le ft' valign='top'>try i try catch i (int i) throw catch (char s)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.26 </b></td><td width='749' align='left' valign='top' colspan='2'>Which of these is not a category of <br>suffered operations? <br>i) Primitive operations <br>ii) Selectors <br>iii) Selective operators <br>iv) Cons tructors <br>v) Exceptions</td></tr><tr><td width='41' align='left' valign='top' >&nbsp. Int sample[3] [5] indicates a table of 5 r ows and 3 <br>columns <br>4.</td><td width='34' align='left' valign='top'><b>B) </b>< /td><td width='711' align='left' valign='top'>i) and v)</td></tr><tr><td width=' 41' align='left' valign='top'>&nbsp.

//line 1 <br>time T2 = T1 .29 </b></td><td width='749' align='lef t' valign='top' colspan='2'> Which of these statements are true? <br>i) The tell p ( ) function returns the current class <br>hierarchy <br>ii) To create an outp ut text file.cout < < b = "<< b. <br>class Sub : public Base <br>int b. <br>public : Sub <br >b=0. height =7</td></tr><tr><td width='41' align='left' valign='top '>&nbsp.</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></tabl e><table border='0' width='600' id='table1_2_29'><tr><td width='41' align='left' valign='top'><b>Q.</td> <td width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='l eft' valign='top'>i).</td><td width='34' align='left' valign='top'><b>A) </b></td><td width=' 711' align='left' valign='top'>Only 1</td></tr><tr><td width='41' align='left' v align='top'>&nbsp.</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. //line 2 <br>i ) time is a class and TI andT2 are its objects <br>ii) line 2 is an example of o perator overloading <br>functions used for <br>iii) line1 is a valid example of copy constructor <br>iv) line 2 is a valid example of tile copy T2 <br>created i n line 1 being initialized with the values <br>of the members of object T1</td>< /tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><td width=' .</td><td width='34' align='left' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>None of these</td></tr></tab le><table border='0' width='600' id='table1_2_27'><tr><td width='41' align='left ' valign='top'><b>Q. base = 2.</td><td width='34' align='left' valign='top'><b>B) </b></td>< td width='711' align='left' valign='top'>Only 1 and 2</td></tr><tr><td width='41 ' align='left' valign='top'>&nbsp.</td><td width='34' align='left' valign='top'>< b>B) </b></td><td width='711' align='left' valign='top'>display ( ) b = . iii) and iv)</td></tr><tr><td width='41' align='left' vali gn='top'>&nbsp. return b.1/here" so that the <br>display of Base class is overridden to give <br>output after exe cution as b =1 <br>class Base int i.</td><td width='34' al ign='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top' >i) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. we need an <br>object of the ofstream class <br>iii)The cin object and the position of the put <br>pointer in bytes extraction operator are part o f <br>the istream class <br>iv) The ios class is the base class in the stream</t d></tr><tr><td width='41' align='left' valign='top'>&nbsp. height =8 <br>3.30 </b></td><td width='749' align='left' valign='top' colspan ='2'>Select one of the following functions to <br>replace the comment 4.28 </b></td><td width='749' align='left' valign='top' colspa n='2'>Consider the following section of code: <br>if (base < height ) <br>cout < < â Top heavy structureâ << endl.)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp.</td><t d width='34' align='left' valign='top'><b>B) </b></td><td width='711' align='lef t' valign='top'>ii) and iv)</td></tr><tr><td width='41' align='left' valign='top '>&nbsp.d width='41' align='left' valign='top'><b>Q. <br>public: Base i=5.</td><td width ='34' align='left' valign='top'><b>A) </b></td><td width='711' align='left' vali gn='top'>void display ( ) 1 cout << -b="<< + + b . 2 and 3</td></tr></table><table border='0' width='600' id='table1_2_28'><tr><td width='41' align='left' valign='top'><b>Q. <br>else <br>cout << â Stable structureâ << endl. base = 5. )</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. base = 8.</td><td width='34' align='left' valign='top'><b>C) </b></td><td width=' 711' align='left' valign='top'>All of i) to iv)</td></tr><tr><td width='41' alig n='left' valign='top'>&nbsp. ii) and iii)</td></tr><tr><td width='41' align='left' valign='top'>&nbsp. <br>void display ( ) ~ cout <<"i = "<< i.27 </b></td><td width='749' align='l eft' valign='top' colspan='2'>What call you correctly infer about the <br>follow ing two statements? <br>time T2 (T1).</td><td width='34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign='top'>i) and ii)</td></tr><tr><td width='41' ali gn='left' valign='top'>&nbsp.</td><td width='34' align='lef t' valign='top'><b>D) </b></td><td width='711' align='left' valign='top'>All 1.</td><td width='34' align ='left' valign='top'><b>A) </b></td><td width='711' align='left' valign='top'>i) . height =3 <br>2.</td><td width='34' align='left' valign='top'> <b>C) </b></td><td width='711' align='left' valign='top'>Only 1 and 3</td></tr>< tr><td width='41' align='left' valign='top'>&nbsp. < he following possible values for base <br>and height cause the message Stable st ructure <br>to be printed? <br>1.

</td><td width='34' align='left' valign='top'><b>D) </b></t d><td width='711' align='left' valign='top'>None of these</td></tr></table><br>< br> .34' align='left' valign='top'><b>C) </b></td><td width='711' align='left' valign ='top'>void display cout << "b= << b + +</td></tr><tr><td width='41' align='left ' valign='top'>&nbsp.

Sign up to vote on this title
UsefulNot useful