The statement: Private Button print = new Button();
A -
creates and instantiates a button control
B -
initializes a button control
C -
Do nothing
D -
creates a button control
2-
The DoWork method increments a the argument:
static void DoWork(int param)
{
param ++;
}
stattic void Main( )
{
int arg = 42;
DoWork(arg);
Console.WriteLien(arg);
}
The result on the screen is:
A -
example does not compile by error
B -
writes 42
C -
writes 43
D -
write a random value
3-
The joining of two strings together to form a new string is called ____.
A -
addition
B -
compaction
C -
concatenation
D -
substrings
4-
The ____ control creates tabbed windows, this allows you to specify more information
in the same on a Form.
A -
TabPage
B -
Table
C -
TabControl
D -
Group
5-
The ____ statement allows you to iterate through the elements in an array without
using a counter.
A -
for
B -
while
C -
do while
D -
foreach
6-
The base class Array belongs to the ____ namspace.
A -
Arrays
B -
System.Collection
C -
Global.Type
D -
System
7-
The methods which can be called without instantiating an object first are called ____.
A -
private
B -
static
C -
dynamic
D -
primary
8-
The constructor without parameters is called ____.
A -
non-parameterized constructor
B -
default constructor
C -
zero valued constructor
D -
main constructor
9-
The extension of an assembly is ____.
A -
.dll
B -
.cs
C -
.exe
D -
.ddl
10-
The ____ property specifies how text is aligned within a Labels boundaries.