Deck 6 Flashcards
Which format is the correct version for a .NET application?
major.minor.build.revision
Which two elements are included in a .NET assembly? (Choose two.)
Microsoft Intermediate Language (MSIL) code
—–AND—–
Type metadata
Which configuration file is automatically created by .NET when the file is needed by the application for the first time?
User.config
In .NET, the automatic memory management system enables:
Garbage collection
Which programming languages can be managed, unmanaged, or both?
C: Unmanaged
C#: Managed
C++: Both
VB.Net: Unmanaged
You need to ensure that your console application can process each key as it is pressed. Which method should you use?
Console.ReadKey
You want to write log files to a user’s My Documents folder. Which class should you use to locate the My Documents folder?
Environment
You create an XML document that has an XmlNode named node1. Which code fragment will read the XML contained in node1 and its subnodes?
Node1.OuterXml;
You need to find out whether the active Windows user of an application is a member of the Administrators group. Which permission class should you use?
PrincipalPermission
Which tool should you use to view the minimal, optional, and refused permission sets requested by an assembly?
Permissions View
The Common Language Specification (CLS) standard:
Allows code written in different languages to interact.
Which three actions can you perform by using the Strong Name tool? (Choose three.)
Create a key pair for an assembly. -----AND----- Re-sign a previously signed assembly. -----AND----- Extract the public key from an assembly.
Which should you use to ensure that code can be used by several applications?
Public Policy
Which is the build number of a Version object instantiated by using the following code fragment? Version v = new Version (2, 4, 6, 8);
6
You want to debug a class library project that will be used by an application named MyApplication.exe. MyApplication.exe is not part of your Microsoft Visual Studio project and is not running currently. You want MyApplication.exe to start automatically. What should you do?
Set the command line arguments to debug:MyApplication.exe.