Quiz
1: | The ___________ namespace helps me get information about Active Directory users and computers. |
A1: | System.DirectoryServices |
2: | To get a list of logical drives on the system, I can use the ____________ method in the System.Environment class or the ______________ method in the System.IO.Directory class. |
A2: | GetLogicalDrives, GetLogicalDrives |
3: | The only difference between the Write and the WriteLine methods of the StreamWriter class is the __________________ character that the WriteLine method uses. |
A3: | line terminator |
4: | True or False: I can use the Imports or using statement to alias a namespace that isn't imported into my application. |
A4: | True. But, if the assembly is not added to the References node in your Solution Explorer, you will need to make sure to add the assembly as a reference first, then alias it in your class file. |
5: | How do you add a reference to an assembly that isn't giving you AutoComplete when you're typing in the Code window? |
A5: | Use the Imports statement in VB.NET or the using statement in C# at the top of your class file to reference the namespace you are attempting to use. |