Contents

A function declared outside any function is called………
a) local function 
b) global function
c) formal function 
d) actual function

b

The function that has inline keyword in its return type is called….
a) local function   
b) global function
c) inline function 
d) actual function

c

Which of the following is the correct format of inline function?
a) type name (arguments…)
b) inline type name (arguments)
c) type name inline (arguments)
d) none of these

b

What is the scope of the variable declared in the user defined function?
a) whole program                    
b) inside the {} block
c) main function          
d) none of these

b

Which of the following function declaration using default arguments is incorrect?
a) int foo (int x, int y=5, int z=10)
b) int foo (int, int, int)
c) int foo (int x=1, int y=3, int z= 5)
d) all of these

a

How many minimum numbers of functions are need to be presented in c++?
a) 0                 
b) 1                 
c) 2                 
d) 3

b