

MCQOPTIONS
Saved Bookmarks
1. |
For the code snippet shown below, which of the following statements are valid? public class Generic { public T Field; public void TestSub() { T i = Field + 1; } } class MyProgram { static void Main(string[] args) { Generic gen = new Generic(); gen.TestSub(); } } |
A. | Addition will produce result 1. |
B. | Result of addition is system-dependent. |
C. | Program will generate run-time exception. |
D. | 0 |
Answer» E. | |