Contents

The location number of an item in an array is called….
a) name of array
b) size of array
c) index of array               
d) none of these

c

What is the correct format to access the index of 5 numbers in array?
a) int z [4] `                          
b) int z[4];
c) int z{4}                             
d) int z (4)

b

Which of the following are advantages of C++ array?
a) code optimization
b) random access
c) east to traverse data 
d) all of these

d

Which of the following are disadvantages of C++ array?
a) fixed size                         
b) wastage of memory
c) both a & b                       
d) none of these

c

Which of the following array can be represented as a single row of contiguous memory locations?
a) linear array                      
b) one-dimensional array
c) both a & b                       
d) two-dimensional array

c

Which of the following is the correct format for declaration of array?
a) data type name[array];                                
b) data type name[size];
c) name data type[size];   
d) all of these

b