You are on page 1of 1

S.

No Question A B C D E Ans
UNIT-2
1 Which of the following int char float void None A
is the default return of the
value of functions in above
C++?
2 What happens to a It It  It The None C
function defined inside becom becom becomes program of the
a class without any es a es a an inline gives an above
complex operations virtual default function of error
(like looping, a large functio calling the class
number of lines, etc)? n of functio
the n of
class the
class
3 What is an inline A A A function A None A
function? functio functio that is not function of the
n that n that checked that is above
is is for syntax not
expan called errors checked
ded at during for
each compile semantic
call time analysis
during
execut
ion
4 An inline function is compil run- never end of None A
expanded during e-time time expanded the of the
______________ program above

5 When we define the When When a When the When a None B


default values for a a functio scope of function of the
function? functio n is the is called above
n is declare function is
define d over
d
6 Where should default To the To the Anywhere Middle of None A
parameters appear in a rightm leftmos inside the the of the
function prototype? ost t side parameter paramet above
side of of the list er list
the parame
param ter list
eter
list
7 If an argument from It can It Error Segment None B
the parameter list of a be cannot occurs ation of the
function is defined modifi be fault above
constant then ed modifie
_______________ inside d
the inside
functio the
n functio
n
8 Which of the following Encap Abstrac Polymorphi Modularit All of C
feature is used in sulatio tion sm y the
function overloading n above
and function with
default argument?
9 From which function start() main() new() end() None B
the execution of a C++ functio functio function function of the
program starts? n n above

10 Which of the following Return Functio Both The All of C


is important in a type n name return type return the
function? and type, above
function function
name name
and

You might also like