Classes Arrays Global methods Structures Every method in C# must be a member of either a class or a structure.
2.
Is the name of the program entry point case sensitive?
Yes No
The name of the main entry point is case sensitive: it must be named Main.
3.
Is the static modifier on the program entry point required?
Yes No
The entry point must be static.
4.
Which of the following represent valid local variable declarations?
int x; int x, y, z; int x; int y; int z; int x = 2, y = 4, z = x + y; int x = 2 * 4; All of the above None of the above
Local variables are declared using the type name followed by a comma separated list of
variable names. The list is ended with a semicolon. Each variable can optionally have
an initializer. The initializer can be a constant value or an expression involving
constants and/or other variables.
5.
Which of the following type conversions will be performed automatically by the compiler
without requiring an explicit cast?
int to long long to int double to float
In general, conversion which do not lose information are performed automatically by the
compiler; for example, converting from int to long. Conversions
which may lose information require an explicit cast; for example, converting from long
to int or from double to float.