c#异常处理
- The exception occurs at the time of compilation 
- The exception occurs during program loading 
- The exception occurs during JIT compilation 
- The exception occurs during program execution 
Correct answer: 4
The exception occurs during program execution
In the above statements, the 4th statement is correct about exceptions.
- 编译时发生异常 
- 程序加载期间发生异常 
- JIT编译期间发生异常 
- 程序执行期间发生异常 
 正确答案:4 
 程序执行期间发生异常 
在上面的语句中,第四条关于异常的说明是正确的。
- Common Language Runtime 
- Operating System 
- C# compiler 
- Linker 
Correct answer: 1
Common Language Runtime
In the .NET framework, CLR is responsible for uncaught exceptions.
- 通用语言运行时 
- 操作系统 
- C#编译器 
- 连接器 
 正确答案:1 
 通用语言运行时 
在.NET框架中,CLR负责未捕获的异常。
- try 
- catch 
- errorcode 
- finally 
Correct answer: 3
errorcode
In the .NET framework, "errorcode" is not useful to handle an exception.
- 尝试 
- 抓住 
- 错误代码 
- 最后 
 正确答案:3 
 错误代码 
在.NET框架中,“错误代码”对于处理异常没有用。
- The try block is used to handle all types of exceptions and avoid program crashes 
- We need to write code that can generate an exception inside the try block 
- The try block executes completely whether an exception occurs or not 
- The try block is used to catch exception generated at runtime 
Correct answer: 2
We need to write code that can generate an exception inside the try block
In the given statements, the 2nd statement is correct about the try block.
- try块用于处理所有类型的异常并避免程序崩溃 
- 我们需要编写可以在try块内生成异常的代码 
- 无论是否发生异常,try块都会完全执行 
- try块用于捕获运行时生成的异常 
 正确答案:2 
 我们需要编写可以在try块内生成异常的代码 
在给定的语句中,第二条语句关于try块是正确的。
- Yes 
- No 
Correct answer: 1
Yes
Yes, we can use multiple catch blocks associated with the try block.
- 是 
- 没有 
 正确答案:1 
 是 
是的,我们可以使用与try块关联的多个catch块。
翻译自: https://www.includehelp.com/dot-net/csharp-exception-handling-aptitude-questions-and-answers-2.aspx
c#异常处理