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);
3-
A Collection is a method to use if
A -
The contents of your list will change by adding or removing member
B -
Your data items are not related
C -
The contents of your list are static
D -
You have a large volume of data items
4-
A collection is a group of individual data items or #
A -
properties
B -
Objects
C -
strings
D -
methods
5-
A(n) ____ is a group of one or more projects that collectively form a Visual C#
program.
A -
property
B -
class
C -
Project
D -
solution
6-
A variable declared inside a method is called a ____ variable
A -
Private
B -
Local
C -
Static
D -
Serial
7-
A variable of a reference type contains:
A -
information about the type and its data
B -
the address of the location in memory where data is stored
C -
data of the type
D -
None of the above
8-
A delegate in C# is similar to:
A -
a pointer
B -
object
C -
COM
D -
a function pointer
9-
A positive a negative whole number between -2, 147, 483, 648, 345 and 2, 147, 483,
648, 345 would be best stored into a variable having which one of the following data types?
A -
Decimal
B -
Bollean
C -
int
D -
string
10-
A TextBox can use the ____ property, meaning that the user do not see anything when
they type in the textbox.