Deck 6 Flashcards

1
Q

Which format is the correct version for a .NET application?

A

major.minor.build.revision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which two elements are included in a .NET assembly? (Choose two.)

A

Microsoft Intermediate Language (MSIL) code
—–AND—–
Type metadata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which configuration file is automatically created by .NET when the file is needed by the application for the first time?

A

User.config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In .NET, the automatic memory management system enables:

A

Garbage collection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which programming languages can be managed, unmanaged, or both?

A

C: Unmanaged
C#: Managed
C++: Both
VB.Net: Unmanaged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You need to ensure that your console application can process each key as it is pressed. Which method should you use?

A

Console.ReadKey

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You want to write log files to a user’s My Documents folder. Which class should you use to locate the My Documents folder?

A

Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

You create an XML document that has an XmlNode named node1. Which code fragment will read the XML contained in node1 and its subnodes?

A

Node1.OuterXml;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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?

A

PrincipalPermission

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which tool should you use to view the minimal, optional, and refused permission sets requested by an assembly?

A

Permissions View

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The Common Language Specification (CLS) standard:

A

Allows code written in different languages to interact.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which three actions can you perform by using the Strong Name tool? (Choose three.)

A
Create a key pair for an assembly.
-----AND-----
Re-sign a previously signed assembly.
-----AND-----
Extract the public key from an assembly.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which should you use to ensure that code can be used by several applications?

A

Public Policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which is the build number of a Version object instantiated by using the following code fragment? Version v = new Version (2, 4, 6, 8);

A

6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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?

A

Set the command line arguments to debug:MyApplication.exe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which code segment is an example of implicit boxing?

A

int i = 45;

object j = i;

17
Q

Which describes an interface?

A

A template that defines a set of properties, methods, and events.

18
Q

Which type of casting enforces type safety?

A

Implicit static

19
Q

A type-safe language prevents:

A

Null reference exceptions.

20
Q

Regarding C# code and Microsoft Visual Basic .NET code, language parity refers to the:

A

Functionality that is common in both languages even if the syntax is different.