Answer the following statements true (T) or false (F)

1) Enumerators can be used to modify the contents of collections.
2) foreach is associated with only the IEnumerator interface.
3) Assigning an array of a derived-class type to an array variable of a base-
class type is an example of contravariance.
4) Covariance works only with reference types that are related by a class
hierarchy.
5) Using a cast operator to assign an array of base-class-type elements to an
array of derived-class-type elements is an example of contravariance.


1) F
2) F
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

The @font-face rule is one example of a CSS @rule, which specifies a command or directive that controls how browsers interpret and run the contents of a CSS style sheet.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The ____________________ attribute determines where the output will be directed.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You are trying to assess the performance of your North American branches. The performance measure is gross profit. The relevant figures are contained in the "Gross Profit" field. If Gross Profit is greater than or equal to 55, the custom field, named "Status," will read "Approve." If Gross Profit is between 54 and 30, the custom field will read "Attention." If Gross Profit is less than 30, the

field will read "Fail." What is the field name that will be entered? A) IIf([Gross Profit] >=55, "Approve", IIf([Gross Profit] >=30, "Attention", "Fail")) B) IIf(Gross Profit >=55, "Approve", IIf(Gross Profit >30, "Attention", "Fail")) C) IIf([Gross Profit] >=55, "Approve", >30, "Attention", "Fail") D) IIf([Gross Profit] >=55>30, "Approve", "Attention", "Fail")

Computer Science & Information Technology

In a presentation, which type chart would be used to show a comparison of the parts to the whole?

A) Bar B) Pie C) Column D) Line

Computer Science & Information Technology