Top

Arrays

111.

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

Answer: B

No answer description available for this question.

Enter details here

112.

The minimum number of comparisons required to determine if an integer appears more than n/2 times in a sorted array of n integers is

Answer: B

No answer description available for this question.

Enter details here

113.

What is the output of the following piece of code?

public class array
{
 public static void main(String args[])
 {
  int []arr = {1,2,3,4,5};
  System.out.println(arr[5]);
 }
}

 

Answer: C

Trying to access an element beyond the limits of an array gives ArrayIndexOutOfBoundsException.

Enter details here

Answer: A

No answer description available for this question.

Enter details here

115.

Which of the following statements mentioning the name of the array begins DOES NOT yield the base address?

1. When array name is used with the sizeof operator.

2. When array name is operand of the & operator.

3. When array name is passed to scanf() function.

4. When array name is passed to printf() function.

Answer: B

No answer description available for this question.

Enter details here

116.

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

Answer: C

No answer description available for this question.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

118.

The information about an array used in a program will be sorted in

Answer: B

No answer description available for this question.

Enter details here

Loading…
Tags: Arrays Questions and Answers || Arrays MCQ Questions and Answers || Arrays GK Questions and Answers || Arrays GK MCQ Questions || Arrays Multiple Choice Questions and Answers || Arrays GK || GK on Arrays || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming