Menu

Arrays Questions

MCQ
111.
To search for an element in a sorted array, which searching technique can be used?
forum Discussion
MCQ
112.
What are some of the applications of sorted arrays?
forum Discussion
MCQ
113.
What is the worst case time complexity of inserting an element into the sorted array?
forum Discussion
MCQ
114.
What is a sparse array?
forum Discussion
MCQ
115.
When do you use a sparse array?
forum Discussion
MCQ
116.
What is the difference between a normal(naive) array and a sparse array?
forum Discussion
MCQ
117.
Suppose the contents of an array A are, A = {1, null, null, null, null, 10};What would be the size of the array considering it as a normal array and a sparse array?
forum Discussion
MCQ
118.
What is sparsity of a matrix?
forum Discussion
MCQ
119.
What is the functionality of the following piece of code?

{
        if (row_index < 0 || col_index > N)
 {
            System.out.println("column index out of bounds");
   return;
 }
        return (sparse_array[row_index].fetch(col_index));
}
forum Discussion
MCQ
120.
What are the advantages of sparse matrices over normal matrices?
forum Discussion