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.
Add a using directive.
Inherit from the class.
Package the classes in the same solution.

2. What is the .NET class that every other class is derived from?

System
System.Base
System.Object
System.Windows

3. Interface can include:

data members
abstract methods
nonabstract methods
properties
all of the above

4. Using the following declaration, which of the following statements is true?

public class aClass : bClass, IClass

IClass is an interface.
aClass is the derived class.
bClass is the base class.
all of the above
none of the above

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 :

Properties
Abstract methods
Non-abstract methods
All the above

10. An interface member that is explicitly implemented can be accessed only through an instance of the interface, not from a class instance

True
False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!