Basic of Array Multiple Choice Questions | Objective Type Questions


Hello friends in this article we are going to discuss about Basic of arrays Multiple Choice Questions | Objective type Questions | C or C++ Arrays Multiple choice Questions and answers | Java array multiple choice questions

You can check previous post : Data Structure |Basic Array Multiple Choice Questions and Answers

1.In arrays we store collection of ______data types.

  1. primitive 
  2. non primitive 
  3. both a and b
  4. none of these

Ans. 1

Explain : In arrays we can be used to store collection of primitive data types.

2.What is Disadvantage of array?

  1. Random access of elements using array index
  2. Easy access to all the elements
  3. Traversal through the array becomes easy using a single loop
  4. Allows a fixed number of elements to be entered which is decided at the time of declaration

Ans. 4

Explain : Allows a fixed number of elements to be entered which is decided at the time of declaration is Disadvantage of array

3.Array elements are accessed by using an ____index.

  1. Float
  2. Integer
  3. Char
  4. double

Ans. 2

Explain :Array elements are accessed by using an integer index.

4.Array index ends at which position?

  1. size of array
  2. size of array minus 1
  3. n
  4. size of array minus n

Ans. 2

Explain :Array index ends at size of array minus 1.

5.Array index ends at which position?

  1. size of array
  2. size of array minus 1
  3. n
  4. size of array minus n

Ans. 2

Explain :Array index ends at size of array minus 1.


6.Array contains object which is called as?

  1. primitive 
  2. non primitive 
  3. both a and b
  4. none of these

Ans. 2

Explain :.Array contains object which is called as non primitive.

7.One dimensional array can be declared as _____

  1. type var-name[]
  2. type[] var-name
  3. both a and b
  4. none of these

Ans. 3

Explain :One dimensional array can be declared as type var-name[],
type[] var-name

8.Default Array values are

  1. zero
  2. false
  3. null
  4. all of these

Ans. 4

Explain :zero (for numeric types), false (for boolean), or null (for reference types) are default array values.

9.In a situation where the size of the array and variables of the array are already known,______ can be used.

  1. Initial Value
  2. array literal
  3. array last value
  4. all of these

Ans. 2

Explain :In a situation where the size of the array and variables of the array are already known, array literals can be used.

10.We can Access Java Array Elements Using,

  1. while loop
  2. for loop
  3. break
  4. none of these

Ans. 2

Explain :We can Access Java Array Elements Using,for loop.


Leave a Reply

Your email address will not be published. Required fields are marked *