Ní thacaítear leis an mbrabhsálaí seo a thuilleadh.
Uasghrádú go Microsoft Edge chun leas a bhaint as na gnéithe is déanaí, nuashonruithe slándála, agus tacaíocht theicniúil.
What is the purpose of catching an exception in C#?
To ignore the errors that occur in a program.
To generate other exceptions in a program.
To take corrective action when an error occurs in a program.
What is the relationship between the type of exception and the information it contains?
The type of exception and the information it contains are unrelated.
The type of exception determines the information it contains.
The information contained in an exception determines the type of exception.
What is a conditional breakpoint in Visual Studio Code?
A breakpoint that only triggers when a specified condition is met.
A breakpoint that is triggered every time the code is run.
A breakpoint that is only visible in the editor and doesn't affect debugging.
When is an ArgumentOutOfRangeException exception thrown?
ArgumentOutOfRangeException
An ArgumentOutOfRangeException exception is thrown when an attempt is made to index an array outside the bounds of the array.
An ArgumentOutOfRangeException exception is thrown when the value of an argument is outside the allowable range of values as defined by the method.
An ArgumentOutOfRangeException exception is thrown when an attempt is made to store a value of one type in an array of another type.
What is the recommended approach for catching exceptions in C#?
Catch any type of exception without specifying an object argument.
Catch only the exceptions that your code knows how to recover from.
Catch only the exceptions that aren't derived from System.Exception.
You must answer all questions before checking your work.
An raibh an leathanach seo ina chabhair?
An bhfuil cabhair uait leis an ábhar seo?
Ar mhaith leat triail a bhaint as Ask Learn chun soiléiriú nó chun thú a threorú tríd an ábhar seo?