Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
A. Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties
B. Properties give us control about what values may be assigned to a member variable of a class they represent
C. Properties consist of set accessor inside which we can validate the value before assigning it to the data variable
D. All of the mentioned
Answer: Option D
What is the purpose of exception handling in C#?
A. To enhance program performance
B. To avoid writing error messages
C. To gracefully handle runtime errors
D. To simplify debugging
What is the default exception handler in C# called?
A. Standard Exception Handler
B. Unhandled Exception Handler
C. Global Exception Handler
D. None of the above
A. throw
B. catch
C. finally
D. try

Join The Discussion