Question: 1. To avoid having to use fully qualified referenced classes, you could: Add a reference to the class. Add an import statement for the class.
1. To avoid having to use fully qualified referenced classes, you could:
| | Add a reference to the class. |
| | Add an import statement for the class. |
| | Package the classes in the same solution. |
2. What is the .NET class that every other class is derived from?
3. Interface can include:
4. Using the following declaration, which of the following statements is true?
public class aClass : bClass, IClass
| | aClass is the derived class. |
| | bClass is the base class. |
5. If two classes of the same name occur in two different namespaces and both namespaces are used (included) what must be done when using the classes?
| | Just use the name of the class. The C# compiler will figure out by the context which is the correct class to use |
| | Provide a fully qualified path to the class that includes the name space and the name of the class. |
| | Right click on the class name in the code and select the correct class from the popup menu that appears. |
| | It is not possible to have two classes that are named the same thing in C#. |
6. If a method of a class is protected which of the following is true?
| | The method cannot be used. |
| | The method can only be used on an instance of an object. |
| | The method must be overridden to be used. |
| | The method can only be accessed in the class or a subclass. |
7. For a method of a class to be overridden in a subclass which of the following must occur.
| | The method must be declared as virtual . |
| | The method must be declared as public . |
| | The method must be declared as do override . |
| | The method must be static. |
8. In List what is the purpose of ?
| | To indicate the total number of items the list can hold. |
| | To indicate the method that is used to manipulate the list. |
| | To indicate the type of data the list can hold. |
| | To indicate the time interval between garbage collections on the list. |
9. Abstract class can include :
10. An interface member that is explicitly implemented can be accessed only through an instance of the interface, not from a class instance