MCQ
How can an array object named ‘marks’ with the size for 5 elements be created?
  • A
    int marks [ ] = new int [5];
  • B
    int [ ] marks = new int [5];
  • a Or b
  • D
    None of these

Answer

Correct option: C.
a Or b
a Or b

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