Microsoft
70-518 · Question #107
70-518 Question #107: Real Exam Question with Answer & Explanation
Sign in or unlock 70-518 to reveal the answer and full explanation for question #107. The question stem and answer options stay visible for context.
Question
You are reviewing an existing Windows application that uses .NET Framework 4. When the user clicks a button, the application sequentially processes thousands of image files contained in a directory. The user interface becomes unresponsive while the application processes the files. You have the following requirements: - Modify the button's click event. - Increase application throughput by processing multiple image files concurrently. - Ensure that the user interface remains responsive while the application processes the image files. You need to recommend an approach for meeting the requirements. What should you recommend?
Options
- AIterate over the image files. For each image file, use the Process.Start() method to launch a
- BUse the ThreadPool.QueueUserWorkItem() method to queue up a single work item that uses
- CUse the Parallel.ForEach() method to process the images concurrently.
- DIterate over the image files by using the Parallel.ForEach()method. For each image file, start
Unlock 70-518 to see the answer
You've previewed enough free 70-518 questions. Unlock 70-518 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.