Contents

What is the correct format accessing an array?
a) array name[index];      
b) name array[index];
c) array name{index};
d) all of these

a

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 bracket is used for size in array?
a) curly bracket {}              
b) square bracket []
c) small bracket ()               
d) none of these

b

What is the initial index used for array?
a) 0                                                        
b) 1
c) both a & b                       
d) none of these

a