Question: In C# Declaring a variable of _________________ type enables you store anything in it. string dynamic var all of the above 1 points QUESTION 2
In C#
Declaring a variable of _________________ type enables you store anything in it.
| string | ||
| dynamic | ||
| var | ||
| all of the above |
1 points
QUESTION 2
Which of the following statement about dynamic data types is true?
| With dynamic data types the type checking occurs at compile time | ||
| Dynamic types cannot be used for method parameters or method return types. | ||
| For data types defined as dynamic, the memory location can hold any value | ||
| Dynamic data types require boxing/unboxing or casting in order to properly access the data. |
1 points
QUESTION 3
Adding a using directive at the beginning of the file allows you to avoid having to type out the full name (including the namespace and class name) in order to reference members in the class.
True
False
1 points
QUESTION 4
An object defined and initialized with data such as 14 or 27.8 using the _______ keyword requires no special casting. It can support the data types operation without unboxing or casting.
| int | ||
| dynamic | ||
| object | ||
| float |
1 points
QUESTION 5
A good coding standard to follow is to declare members of a class of the same security level together.
True
False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
