MCQ
What happens when invalid index value is used with an array?
  • A
    The program may give garbage dat
  • B
    The program may get crash.
  • Both A and B
  • D
    The program will run properly.

Answer

Correct option: C.
Both A and 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