Contents

How many attributes are associated with variable declaration?
a) one    
b) two    
c) three 
d) four

c

Explanation: variable name, variable type, variable memory address


A variable that is used to store memory address…..
a) pointer                             
b) integer
c) floating point  
d) none of these

a

Which of the following are advantages of pointer?
a) access memory address
b) save memory
c) does not duplicate date 
d) all of these

a

Which of the following is correct type of declaration of pointer?
a) datatype *var;               
b) datatype &var;
c) datatype var*;
d) datatype var&;

a

Which of the following is used as return type of pointer?
a) pointer                              
b) integer
c) void                                  
d) none of these

c

Which of the following is correct format of pointer initialization?
a) datatype *p= var&;      
b) datatype p*=var&;
c) datatype *p=&var;       
d) datatype p* = &var;

c