98-372 Exam Questions
224 real 98-372 exam questions with expert-verified answers and explanations. Page 4 of 5.
- Question #166
Which security policy level applies to all managed code on the computer?
- Question #167
You want to enable access to files and folders by using the .NET Framework. Which security class should you use?
- Question #168
Your application requests FileIOPermission to open a file. The permission is denied. Which type of exception will be thrown?
- Question #169
You use code from different companies. You need to avoid naming conflicts within your code. What should you do?
- Question #170
Which code segment prevents the class named Final from being inherited?
- Question #171
You create a class that does not explicitly inherit from any base class. Which is the implied base type of the class?
- Question #172
You create an ArrayList object. You need to ensure that only objects of the System.DateTime type can be added to the collection. What should you do?
- Question #173
You need to create a DLL that contains classes that can be reused in other projects. Which type of Microsoft Visual Studio project should you use?
- Question #174
Which method will be called when a FileStream is collected by the garbage collector?
- Question #175
You want to insert a new line on the console. Which three code fragments will display "Hello" followed by a new line? (Each correct answer presents a complete solution. Choose thre...
- Question #176
You create a program that writes a status message to a file every 10 seconds. You need to ensure that all data is written to the file before the file is closed. When should you cal...
- Question #177
You need to force the position of the cursor on the screen at (15, 10). Which code segment should you use?
- Question #178
Which should you use to call a class written in C# from a program written in Microsoft Visual Basic .NET?
- Question #179
Type-safe code prevents:
- Question #180
How does managed .NET code use an unmanaged COM object?
- Question #181
Type-safe code accesses only the memory locations:
- Question #182
In the Common Language Runtime (CLR), what information is used to make decisions on security policy?
- Question #183
Which named permission set allows Common Language Runtime (CLR) to run code but disallows the use of protected resources from the computer?
- Question #184
You need to configure security policy for the following policy levels: Machine User Enterprise Which .NET tool should you use?
- Question #185
Which two goals can you achieve by using cryptography? (Choose two.)
- Question #186
Which class should you use to perform a search of an XML document?
- Question #187
You load an XML document named doc1 that has an attribute named EmployeeId. Which code fragment will set the value of EmployeeId to A23?
- Question #188
Which two elements are included in a .NET assembly? (Choose two.)
- Question #189
Which format is the correct version for a .NET application?
- Question #190
.NET managed code compiles into:
- Question #191
Which three characteristics define the identity of an assembly? (Each correct answer presents part of the solution. Choose three.)
- Question #192
You want to encrypt the connection string stored in the web.config file. Which tool should you use?
- Question #193
An event is a/an:
- Question #194
You create a custom exception class named MyCustomException that is derived from ApplicationException. Which code segment should you use to raise MyCustomException?
- Question #195
Custom event delegates are used to:
- Question #196
Where is dynamic memory allocated?
- Question #197
A.NET application requires:
- Question #198
You create an unmanaged object and use the object. You no longer need the object. What should you do?
- Question #199
You need to force an immediate garbage collection of all unused memory. Which method should you use?
- Question #200
Type-safe programming languages require that:
- Question #201
Which collection enforces type safety?
- Question #202
Which part of the .NET Framework verifies that code is type-safe?
- Question #203
Which feature is available in both Microsoft Visual Basic .NET and C#?
- Question #204
Which two tasks does the interoperability of the .NET language allow you to perform? (Choose two.)
- Question #205
You want to use a collection to store Order items. The collection must be thread-safe and must provide access to the items in a last-in-first-out sequence. Which type of collection...
- Question #206
Which namespace should you reference while using the StreamWHter class?
- Question #207
You want to create a method that can accept any data type as arguments. Which feature of .NET languages allows you to create one method that will accept different data types on eac...
- Question #208
Which describes an interface?
- Question #209
A base class named MasterData is defined according to the following code segment. Which code segment should you use to define a method named LoadData that overrides the method in t...
- Question #210
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...
- Question #211
Which code segment is an example of implicit boxing?
- Question #212
Which configuration file is automatically created by .NET when the file is needed by the application for the first time?
- Question #213
Which two actions are performed by the .NET Version class? (Choose two.)
- Question #215
What data is stored on the heap?
- Question #216
In .NET, the automatic memory management system enables: