MCQ
Which of the following ways are used to create an array ?
  • A
    Using new operator and specifying size
  • B
    Directly initializing the content of array
  • Both A & B
  • D
    Declare an array object

Answer

Correct option: C.
Both A & B
C

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free