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 IndiabixConsoleApplication.MyProgram.SetVal(Int32 index, Int32 val) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 26 at IndiabixConsoleApplication.MyProgram.Main(String[] args) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 20 1. The CLR failed to handle the exception. 2. The class MyProgram belongs to the namespace MyProgram. 3. The function SetVal() was called from Main() in line number 20. 4. The exception occurred in line number 26 in the function SetVal() 5. The runtime exception occurred in the project IndiabixConsoleApplication.

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
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 IndiabixConsoleApplication.MyProgram.SetVal(Int32 index, Int32 val) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 26 at IndiabixConsoleApplication.MyProgram.Main(String[] args) in D:\Sample\IndiabixConsoleApplication\MyProgram.cs:line 20

1. The CLR failed to handle the exception.
2. The class MyProgram belongs to the namespace MyProgram.
3. The function SetVal() was called from Main() in line number 20.
4. The exception occurred in line number 26 in the function SetVal()
5. The runtime exception occurred in the project IndiabixConsoleApplication.

1.1 only

2.1 and 2 only

3.3, 4 and 5 only

4.. All of the above

Posted Date:-2021-02-25 10:08:49


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!