MCQ
Which statement is used to assign value 7 to all elements of list array?
  • fill(list, 7)
  • B
    fill (7, list)
  • C
    fill (list. 7)
  • D
    fill(7. list)

Answer

Correct option: A.
fill(list, 7)
fill(list, 7)

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