Exception Handling - General Questions Online Exam Quiz

Exception Handling - General Questions GK Quiz. Question and Answers related to Exception Handling - General Questions. MCQ (Multiple Choice Questions with answers about Exception Handling - General Questions

Which of the following is NOT a .NET Exception class?

Options

A : Exception

B : StackMemoryException

C : DivideByZeroException

D : OutOfMemoryException

View Answer

Which of the following statements is correct about an Exception?

Options

A : It occurs during compilation.

B : It occurs during linking.

C : It occurs at run-time.

D : It occurs during Just-In-Time compilation.

View Answer

In C#.NET if we do not catch the exception thrown at runtime then which of the following will catch it?

Options

A : Compiler

B : CLR

C : Linker

D : Loader

View Answer

Which of the following statements are correct about exception handling in C#.NET?

Options

A : 1 only

B : 2 only

C : 2 and 5 only

D : 3 and 4 only

View Answer

Which of the following statements are correct about exception handling in C#.NET?

Options

A : 1 and 2 only

B : 1, 2 and 3 only

C : 4 and 5 only

D : All of the above

View Answer

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:SampleIndiabixConsoleApplicationMyProgram.cs:line 26 at IndiabixConsoleApplication.MyProgram.Main(String[] args) in D:SampleIndiabixConsoleApplicationMyProgram.cs:line 20

Options

A : 1 only

B : 1 and 2 only

C : 3, 4 and 5 only

D : All of the above

View Answer

Which of the following is the Object Oriented way of handling run-time errors?

Options

A : OnError

B : HERESULT

C : Exceptions

D : Error codes

View Answer

Which of the following statements is correct about the C#.NET program given below if a value "6" is input to it?

Options

A : It will output: Index out of bounds Remaining program

B : It will output: Bad Format Remaining program

C : It will output: Bad Format

D : It will output: Remaining program

View Answer

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.Program.Main(String[] args) in D:ConsoleApplicationProgram.cs:line 14

Options

A : 1 only

B : 1, 2 and 3 only

C : 2 and 5 only

D : 1, 3 and 4 only

View Answer

Which of the following statements are correct about exception handling in C#.NET?

Options

A : 1 only

B : 1 and 2 only

C : 3 only

D : 4 and 5 only

View Answer

Attributes - General Questions more Online Exam Quiz

Constructors - General Questions

Datatypes - General Questions

Delegates - General Questions

.NET Framework - General Questions

Enumerations - General Questions

Functions and Subroutines - General Questions

Inheritance - General Questions

Interfaces - General Questions

Namespaces - General Questions