Contents

How many types of pointers?
a) one    
b) two    
c) three  
d) four

b

Explanation: pointer addition, pointer subtraction


What type of pointer is used to move pointer reference forward in the memory?
a) pointer subtraction        
b) pointer addition
c) pointer multiply              
d) pointer division

b

What type of pointer is used to move pointer reference backward in the memory?
a) pointer subtraction                                      
b) pointer addition
c) pointer multiply              
d) pointer division

a

Which one of the following is not a possible state for a pointer?
a) hold the address of specific object
b) point one past the end
c) zero                                   
d) point a type

d

Which of the following is illegal?
a) int *ip;                              
b) string s, *sp=0;
c) int I; double* dp=&I;  
d) int pi*=0;

c

What is the size of generic pointer in C++ (in 32-bit platform)?
a) 2                        
b) 4                        
c) 8                        
d) 0

b