Contents

Global variables are created in…….
a) RAM                                
b) ROM
c) hard disk                          
d) cache

a

Explanation: RAM stand for Random Access Memory


The local variables are also called……
a) external variables                          
b) automatic variables
c) dynamic variables
d) all of these

b

Memory is allocated to a local variable at the time of its…….
a) declaration                      
b) destruction
c) definition                        
d) first reference

c

Which of the following is true about function call?
a) steps execution of program         
b) transfer the control
c) transfer control of main function
d) resumes the execution of program

b

The declaration void fun (int x, int &y); is called…..
a) function body 
b) function type
c) function stereotype        
d) function prototype

d

The default parameter passing mechanism in C++ is called…..
a) call by reference             
b) call by name
c) call by value   
d) call by global variable

c