Microsoft 98-372 Online Practice
Questions and Exam Preparation
98-372 Exam Details
Exam Code
:98-372
Exam Name
:Microsoft .NET Fundamentals
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:230 Q&As
Last Updated
:Apr 20, 2020
Microsoft 98-372 Online Questions &
Answers
Question 191:
You want to create a class named ShoppingCart that has a type argument named TItem. The TItem type argument must be a value type.
Which code segment should you use to define the ShoppingCart class?
A. B. C.
A. B. C.
Question 192:
In .NET, the automatic memory management system enables:
A. Garbage collection. B. Synchronization. C. Smart caching. D. Managed code.
A. Garbage collection.
Question 193:
Which code segment prevents the class named Final from being inherited?
A. Option A B. Option B C. Option C D. Option D
B. Option B
Question 194:
You want to enable access to files and folders by using the .NET Framework.
Which security class should you use?
A. SecurityPermission B. PrincipaIPermission C. FileIOPermission D. UIPermission
C. FileIOPermission
Question 195:
What is the purpose of strong naming?
A. To assign a globally unique key to the assembly. B. To ensure that only one version of an assembly is stored in a directory at any point in time. C. To manage the references of the file list in an assembly's manifest. D. To impose restrictions on how different data types are defined within an assembly.
A. To assign a globally unique key to the assembly.
Question 196:
Which code segment is an example of implicit boxing?
A. Option A B. Option B C. Option C D. Option D
A. Option A
Question 197:
Connection strings in the web.config file are:
A. Stored in binary format. B. Automatically encrypted by the web server. C. Stored in clear text unless they are encrypted. D. Automatically encrypted when the project is published.
C. Stored in clear text unless they are encrypted.
When working with data source controls it is recommended that you centralize the location of your connection strings by storing them in the application's Web.config file. This simplifies the management of connection strings by making them available to all of the ASP.NET pages in a Web application. In addition, you do not need to modify numerous individual pages if your connection string information changes. Finally, you can improve the security of sensitive information stored in a connection string, such as the database name, user name, password, and so on, by encrypting the connection string section of the Web.config file using protected configuration.
Question 198:
Which two actions should you perform to consume events defined in another class? (Each correct answer presents part of the solution. Choose two.)
A. Define a method that raises the event. B. Place a reference to the consuming class in the class that raises the event. C. Define an event handler method D. Match the signature of the delegate declared for the event. E. Set the current class as a sealed class.
C. Define an event handler method D. Match the signature of the delegate declared for the event.
Question 199:
You create a class that uses unmanaged resources.
You need to ensure that users of the class can explicitly release resources when the instance of the class is no longer required.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Implement the IDisposable interface. B. Use a class destructor that is called from within the Dispose method. C. Use a class destructor that calls the Kill method. D. Inherit from the WeakReference class.
A. Implement the IDisposable interface. B. Use a class destructor that is called from within the Dispose method.
To properly dispose of unmanaged resources, it is recommended that you implement a public Dispose or Close method that executes the necessary cleanup code for the object. The IDisposable interface provides the Dispose method for resource classes that implement the interface. Because it is public, users of your application can call the Dispose method directly to free memory used by unmanaged resources. When you properly implement a Dispose method, the Finalize method becomes a safeguard to clean up resources in the event that the Dispose method is not called.
Reference: Cleaning Up Unmanaged Resources
Question 200:
Custom event delegates are used to:
A. Raise one or more custom events B. Route events to one or more event handlers. C. Process mouse clicks or keyboard input. D. Handle errors generated in a try block.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Microsoft exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 98-372 exam preparations
and Microsoft certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.