Hello Friends in this article we are going to discuss about Arrays Objective type question | Array Multiple Choice Questions and answers | Array Online Mock test for University Examination | Data Structure Multiple Choice Questions
1.An array is ____
- collection of items stored at memory locations
- collection of items stored at contiguous memory locations
- collection of items stored at different memory locations
- None of these
Ans : 2.
Explain : An array is a collection of items stored at contiguous memory locations.
2.In array The base value is index ____
- one
- zero
- null
- none of these
Ans : 2.
Explain : In array The base value is index 0s memory locations.
3.Array size can be change or not?
- yes
- no
Ans : 2.
Explain : Array size can not be changed once it is declared.
4.Array size can be Shrink or not?
- yes
- no
Ans : 2.
Explain : Array size can not be Shrink once it is declared.
5.Array size can be Expand or not?
- yes
- no
Ans : 2.
Explain : Array size can not be Expand once it is declared.
6.The first element of the array is indexed by a subscript of 0 is called?
- zero-based indexing
- one-based indexing
- n-based indexing
- None of these
Ans : 1.
Explain : The first element of the array is indexed by a subscript of 0 is called zero based indexing.
7.The first element of the array is indexed by a subscript of 1 is called?
- zero-based indexing
- one-based indexing
- n-based indexing
- None of these
Ans : 2.
Explain : The first element of the array is indexed by a subscript of 1 is called one based indexing.
8.The base index of an array can be freely chosen is called?
- zero-based indexing
- one-based indexing
- n-based indexing
- None of these
Ans : 3.
Explain : The base index of an array can be freely chosen is called n-based indexing.
9.How array can be declared?
- int arr[] = {2,3,5};
- int arr[10]
- int bar [5] = { 10, 20, 30 };
- All of these
Ans : 4.
Explain : Array can be declared based on given answer.
10.What is advantage of array?
- Arrays represent multiple data items of the same type
- You can’t change the size
- Here Insertion(s) and deletion(s) are difficult
- None of these
Ans : 1.
Explain : Advantage of array is Arrays represent multiple data items of the same type.