MCQ
What does the fill method assign to all array elements when the method is invoked with two arguments namely array and value?
  • A
    1
  • B
    0
  • C
    -
  • Specified value

Answer

Correct option: D.
Specified value
Specified value

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