Data Structure Array Array Operations Online Exam Quiz
Data Structure Array Array Operations GK Quiz. Question and Answers related to Data Structure Array Array Operations. MCQ (Multiple Choice Questions with answers about Data Structure Array Array Operations
In general, the index of the first element in an array is __________
Options
A : 0
B : -1
C : 2
D : 1
Assuming int is of 4bytes, what is the size of int arr[15];?
Options
A : 15
B : 19
C : 11
D : 60
Which of these best describes an array?
Options
A : A data structure that shows a hierarchical behavior
B : Container of objects of similar types
C : Arrays are immutable once initialised
D : Array is not a data structure
Which of the following concepts make extensive use of arrays?
Options
A : Binary trees
B : Scheduling of processes
C : Caching
D : Spatial locality
When does the ArrayIndexOutOfBoundsException occur?
Options
A : Compile-time
B : Run-time
C : Not an error
D : Not an exception at all
What are the disadvantages of arrays?
Options
A : Data structure like queue or stack cannot be implemented
B : There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
C : Index value of an array can be negative
D : Elements are sequentially accessed
How do you instantiate an array in Java?
Options
A : int arr[] = new int(3);
B : int arr[];
C : int arr[] = new int[3];
D : int arr() = new int(3);
How do you initialize an array in C?
Options
A : int arr[3] = (1,2,3);
B : int arr(3) = {1,2,3};
C : int arr[3] = {1,2,3};
D : int arr(3) = (1,2,3);
Which of the following is the correct way to declare a multidimensional array in Java?
Options
A : int[] arr;
B : int arr[[]];
C : int[][]arr;
D : int[[]] arr;
What are the advantages of arrays?
Options
A : Objects of mixed data types can be stored
B : Elements in an array cannot be sorted
C : Index of first element of an array is 1
D : Easier to store elements of same data type
Data Structure Adjacency List more Online Exam Quiz
Data Structure Adjacency Matrix
Data Structure Assembly Line Scheduling