Top

Arrays

Answer: D

Arrays stores elements of same data type and present in continuous memory locations.

Enter details here

Answer: C

This is the syntax to initialize an array in C.

Enter details here

43.

Consider the declaration

char street[10] = "abcdefghi";

Choose the correct remark(s)

Answer: D

No answer description available for this question.

Enter details here

Answer: C

No answer description available for this question.

Enter details here

Answer: C

Note that option b is declaration whereas option c is to instantiate an array.

Enter details here

46.

O(N)(linear time) is better than O(1) constant time.

Answer: B

No answer description available for this question.

Enter details here

47.

When does the ArrayIndexOutOfBoundsException occur?

Answer: B

ArrayIndexOutOfBoundsException is a run-time exception and the compilation is error-free.

Enter details here

Answer: D

No answer description available for this question.

Enter details here

49.

A three dimensional array in ‘C’ is declared as int A[x][y][z]. Consider that array elements are stored in row major order and indexing begins from 0. Here, the address of an item at the location A[p][q][r] can be computed as follows

Answer: B

No answer description available for this question.

Enter details here

50.

C does no automatic array bound checking. This is 

Answer: D

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