Question: 1 -
Java Array can allocate __________.
-
Both Dynamic Memory and Static Memory
-
None of the above
-
Static Memory
-
Dynamic Memory
Answer:
Static Memory
Solution:
Arrays in java are static lists that can store a certain kind of variables. Therefore these arrays need to be initialized at the compile time.
Arrays in java are static lists that can store a certain kind of variables. Therefore these arrays need to be initialized at the compile time.
Question: 2 -
Java array is a collection of ________.
-
None of these
-
similar type of elements
-
heterogeneous data
-
different type of element
Answer:
similar type of elements
Solution not available.
Question: 3 -
At time of array initialization which is necessary to specify?
-
Row
-
Row and Column
-
None of the above
-
Column
Answer:
Row
Solution:
Row is necessary to specify at time of array initialization.
Row is necessary to specify at time of array initialization.
Question: 4 -
Index in array start with ______.
-
-1
-
Infinte
-
0
-
1
Answer:
0
Solution:
Index in array start with 0.
Index in array start with 0.
Question: 5 -
Array data access using _____.
-
index
-
Operator
-
Pointer
-
Variable
Answer:
index
Solution:
Array data access using index.
Array data access using index.