Classical

C Programming MCQ - Arrays

11:   The information about an array used in a program will be sorted in
A. Symbol table
B. Activation record
C. Both (a) and (b)
D. Dope vector
 
 

Option: D

Explanation :


12:   In which of the following cases, linked list implementation of sparse matrices consumes the same memory space as the conventional way of storing the entire array?
A. 5x6 matrix with 9 non-zero entries
B. 5x6 matrix with 10 non-zero entries
C. Efficient in accesing an entry
D. Efficient if the sparse matrix is a band matrix
 
 

Option: C

Explanation :
Conventional way needs storage of m x n
In the case of linked list implementation of sparse matrices, storage needed will be(the number of non-zero entries).
Only in case(c), both the methods need the same storage of 30.


13:  

The minmum number of inter changes needed to convert the array 89,19,40,17,12,10,2,5,7,11,6,9,70 into a heap with maximum element at the root is

A.

1

B.

2

C.

4

D.

None of these

 
 

Option: B

Explanation :


14:  

 The  const  feature can be applied to

A.

an identifier 

B.

an array

C.

an array argument

D.

All of these

 
 

Option: D

Explanation :


15:  

 Choose the correct statements

A.

All The elements of the array should be of the same data type and storage class

B.

The number of subscripts determines the dimension of the array

C.

The array elements need not be of the same storage class

D.

In an array definition. the subscript can be any expression yielding a non-zero integer value

 
 

Option: B

Explanation :




Suggest an improvement