Question: 1. What namespace is the .NET Canvas class located in? System.Windows.UI System.Windows.Controls System.Windows.Canvas System.Controls.UI 2. Classes are ____________ types reference value abstract binary 3. Consider
1. What namespace is the .NET Canvas class located in?
| System.Windows.UI |
| System.Windows.Controls |
| System.Windows.Canvas |
| System.Controls.UI |
2. Classes are ____________ types
| reference |
| value |
| abstract |
| binary |
3. Consider the following try block. If x is 15, what is the value of a when this code completes?
try
{
a = 99;
if(x > 10)
throw(new Exception());
a = 0;
++a;
}
| 0 |
| 1 |
| 99 |
| undefined |
4. Consider the following catch blocks. The variable c has been initialized to 1. If an IndexOutOfRangeException occurs in a try block just before this catch block, what is the value of c when this code completes?
catch(IndexOutOfRangeException e)
{
++c;
}
catch(Exception e)
{
++c;
}
finally
{
++c;
}
| 0 |
| 1 |
| 2 |
| 3 |
5. Given the delegate declaration delegate voidPerformsSomeTask(intarg1,doublearg2); which of the following statements would appear to create a delegate instance of PerformsSomeTask( ) with no syntax errors?
| PerformsSomeTask task1 =new PerformsSomeTask (CalculateThis); |
| PerformsSomeTask task1 =new PerformsSomeTask (CalculateThis( )); |
| PerformsSomeTask( ) task1 = new PerformsSomeTask (CalculateThis( )); |
| PerformsSomeTask( ) task1 =new PerformsSomeTask (CalculateThis(int, double)); |
| PerformsSomeTask task1 =new PerformsSomeTask (CalculateThis(intarg1, doublearg2)); |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
