Exception Handling

Q1:
Which of the following statements are correct about the exception reported below?
Unhandled Exception: System.lndexOutOfRangeException:
Index was outside the bounds of the array.
at AptitudeCrackConsoleApplication.Program.Main(String[] args) in
D:\ConsoleApplication\Program.cs:line 14
  1. The program did not handle an exception called IndexOutOfRangeException.
  2. The program execution continued after the exception occurred.
  3. The exception occurred in line number 14.
  4. In line number 14, the program attempted to access an array element which was beyond the bounds of the array.
  5. The CLR could not handle the exception.

A 1 only

B 1, 2 and 3 only

C 2 and 5 only

D 1, 3 and 4 only

E None of the above

ANS:D - 1, 3 and 4 only

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.