nerdexam
Microsoft

70-518 · Question #6

You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement control caching to improve the loading time of a control. It is…

The correct answer is C. In the constructor of the application window, add code to load the control. See the full explanation below for the reasoning.

Question

You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. You plan to implement control caching to improve the loading time of a control. It is not required to refresh the content of the control after the application loads. The application will be compiled by using the .NET 4 client profile. You need to ensure that the following requirements are met:

  • The control is reusable in multiple forms.
  • Data in the control is cached when the application is loaded.

What should you do?

Options

  • AIn the Load event of the application window, add code to load the control.
  • BIn the Load event of the application window, add code to load the control.
  • CIn the constructor of the application window, add code to load the control.
  • DIn the constructor of the application window, add code to load the control.

How the community answered

(56 responses)
  • A
    14% (8)
  • B
    4% (2)
  • C
    75% (42)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice