Sams Teach Yourself Visual Studio .NET 2003 in 21 Days

Sams Teach Yourself .Net in 21 Days

By Jason Beres

Quiz

  1. The ___________ namespace helps me get information about Active Directory users and computers.

    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.

    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.

    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.

    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?

    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.

Share ThisShare This

Informit Network