| 1)
|
Which of the following are value types? |
|
Choose all that apply. |
| 2)
|
You pass a value-type variable into a procedure as an argument. The procedure changes the variable; however, when then procedure returns, the variable has not changed. What happened? |
|
|
| 3)
|
Which is the correct declaration for a nullable integer? |
|
|
| 4)
|
You need to create a simple class or structure that contains only value types. You must create the class or structure so that it runs as efficiently as possible. You must be able to pass as instance of the class or structure to a procedure with out concern that the procedure will modify it. Which of the following should you create? |
|
|
| 5)
|
Select all reference types from provided options - |
|
|
| 6)
|
What is the correct order for Catch clauses when handling different exception types? |
|
|
| 7)
|
When should you use the StringBuilder class instead of the String class? |
|
|
| 8)
|
Why should you close and dispose of resources in a Finally block instead of a Catch block? |
|
|
| 9)
|
Select all correct statements |
|
|
| 10)
|
Select all built-in generic types- |
|
|
| 11)
|
You are creating a generic class, and you need to dispose of the generic objects. How can you do this? |
|
|
| 12)
|
You've implemented an event delegate from a class, but when you try to attach an event procedure you get a compiler error that there is no overload that matches the delegate. What happened? |
|
|
| 13)
|
Why should boxing be avoided? |
|
|
| 14)
|
Structures inherit ToString from String.Object. Why would someone override that method within a structure? |
|
|
| 15)
|
If there is no valid conversion between two types, what should you do when implementing the IConvertible interface? |
|
|
| 16)
|
With strict conversions enabled, which of the following would allow an implicit conversion? |
|
|