Quiz: Array

To View Tricks: Login Required

Number of Questions: 9

Question: 1 -

Index in array start with ______.

Options:
  1. Infinte

  2. 1

  3. 0

  4. -1

  5. Answer:

    0

    Solution:

    Index in array start with 0.


Question: 2 -

Java Array can allocate __________.

Options:
  1. Both Dynamic Memory and Static Memory

  2. Static Memory

  3. Dynamic Memory

  4. None of the above

  5. 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.


Question: 3 -

At time of array initialization which is necessary to specify?

Options:
  1. Row

  2. None of the above

  3. Row and Column

  4. Column

  5. Answer:

    Row

    Solution:

    Row is necessary to specify at time of array initialization.


Question: 4 -

Array data access using _____.

Options:
  1. Pointer

  2. Operator

  3. Variable

  4. index

  5. Answer:

    index

    Solution:

    Array data access using index.


Question: 5 -

Java array is a collection of ________.

Options:
  1. similar type of elements

  2. different type of element

  3. heterogeneous data

  4. None of these

  5. Answer:

    similar type of elements

    Solution not available.