Contents

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

What is the correct format of float type array?
a) float array[2][2]             
b) float tdArray[2][2]
c) array float [2][2]            
d) all of these

b

How many indices required for two-dimensional array?
a) one    
b) two    
c) three  
d) four

b

Explanation: one for row and other for column


Which of the following loops are used to access the elements of two-dimensional array?
a) decision structure
b) for loop
c) nested loop                      
d) all of these

c

Which of the following array resembles a table?
a) one dimensional array                  
b) two-dimensional array
c) multi-dimensional array
d) none of these

b