1. You are developing a text processing application by using the .NET Framework. You write the following code to iterate over a collection of strings and populate a ListBox control with the values it contains (line numbers are for reference only). The GetStrings function returns an array of strings.
|
|
|
|
2. You are developing a .NET Framework application that uses the Stack class. You need to write code that enumerates through the stack.Your code must guarantee thread safety during the enumeration. Which code segment should you use?
|
|
|
|
3. You are creating a class library that will be used by several applications. You need to create a custom exception that will be thrown if an application attempts to retrieve product information using an invalid product number.
You need to create the ProductNotFoundException class. From which class should you derive ProductNotFoundException?
A: ApplicationException
B: SystemException
C: Exception
D: ArgumentException
No comments:
Post a Comment