A ____ block enclose the code that could throw an exception.
A -
Exception
B -
Try
C -
Error
D -
Catch
2-
A local varicable
A -
Is declared with keyword [local] before
B -
Can be used anywhere in the program
C -
Must accept a class
D -
Is declared within a method
3-
A(n) ____ is a group of one or #
A -
property
B -
class
C -
solution
D -
project
4-
A method is declared as double CalcPay(int hoursWorked). Suppose you write a method
containing int hours=35; and double pay; Which of the following represents the correct way to
use the CalcPay method?
A -
hours = CalcPay(pay);
B -
hours = CalcPay();
C -
pay = CalcPay(hoursWorked);
D -
pay = CalcPay(hours);
5-
A static method can only invoke other ____.
A -
intance object
B -
static method
C -
method
D -
object
6-
A ____ allows the user to interact with #
A -
controls
B -
Windows Forms
C -
component
D -
GUI
7-
A delegate defines
A -
a substitue for an inherited method
B -
a means of passing arrays into methods
C -
a Wahsington representative
D -
a class that encapsulates methods
8-
A Panel is used to:
A -
group or store components
B -
add style to a form
C -
create a border around components
D -
display text
9-
A Constructor
A -
must have the same name as the class it is declared within