Contents

If an array is declared as int a[4]={3,0,1,2} the valus assign to [0] ans [1] are?
a) 3, 2    
b) 0, 2    
c) 3, 0    
d) 0, 4

c

The statement int num[2][3]={{1,2}, {3,4}, {5,6}};
a) assign 2 to num[1][2]                    
b) assign 4 to num[1][2]
c) give an error message                 
d) assign 3 to num[1][2]

c

In the declaration of statement float height [8][10], total number of elements will be…..
a) 80      
b) 18                      
c) 81                      
d) 19

a

What is the output of following C++ code?
int n[5]; for(int i=1;  i<5; i++) n[i-1]=i+1
for(int i=0; i<3; i++) cout<<n[i];
a) 234   
b) 240   
c) 334    
d) 221

a

What is the output of following code?
int n[4] = {87, 63}
cout<<n[3]
a) 0                        
b) -1                       
c) 1                        
d) 3

a

….. is a collection of data items of the same type placed in contiguous memory locations is called.
a) array data structure    
b) stack data structure
c) link list data structure    
d) tree data structure

a