1. The statement Stack objectStack = new Stack(); indicates that object Stack stores _______ .
2. Attempting to invoke a derived-class-only method through a base-class variable is an error.
3. Which of the following property specify the duration of a Timer in System.Timers.Timer
4. The .NET languages have which of the following in common?
5. Which of the following classes is not in the System.IO namespace?
6. Why does a syntax error occur when trying to declare a variable called 'lock'?
| 'lock' is a reserved keyword |
| 'lock' is a system attribute |
7. Which of the following is an appropriate declaration of an abstract method?
| public abstract int GetScore() { } |
| public abstract int GetScore(); |
| public int GetScore() as abstract; |
8. In a WPF project, there is a textbox UI element named txtAge is used for age input, which of the following can properly obtain an integer value of age?
| int age = Convert.ToInt32(txtAge); |
| int age = int.Parse(txtAge.Text); |
9. Which of the following best describes what a delegate is?
| A strongly typed function pointer. |
| A lightweight thread or process that can call a single method. |
| A reference to an object in a different process. |
| An interprocess message channel |
10. What keyword is added to a delegate to force subscribers to use += or =?