Contents

Which of the following array store data in rows and columns?
a) one dimensional array                                  
b) two-dimensional array
c) multi-dimensional array
d) none of these

b

Which of the following is the correct format for declaration of two-dimensional array?
a) int x[3][5];                       
b) int x{3}{5}
c) int x(3)(5)                         
d) none of these

a

Which of the following array is also called matrix in mathematics?
a) one dimensional array                                  
b) two-dimensional array
c) multi-dimensional array               
d) none of these

b

What is the general syntax for declaration of two-dimensional array?
a) datatype name [row size] [column size]
b) name datatype [row size] [column size]
c) datatype name {row size} {column size}
d) none of these

a

When does the Array Index out of Bounds Exception occur?
a) compile time   
b) run time
c) not an error                      
d) none of these

b

How many loops are required to traverse two-dimensional array?
a) one loop                           
b) multiple loops
c) two loop                           
d) three loops

c