nerdexam
Microsoft

70-518 · Question #42

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4. You create a photo album-browsing application. When the user opens an album, pictures in the…

The correct answer is D. Assign the null value to every variable pointing to a picture that is not displayed. See the full explanation below for the reasoning.

Question

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4. You create a photo album-browsing application. When the user opens an album, pictures in the album are displayed in sets of 10. Pictures are obtained from a windows Communication Foundation (WCF) service. Most of the memory of the application is allocated in the native heap. The memory usage of the application increases when new albums are opened. You need to ensure that the memory usage of the application remains within a specific range. What should you do?

Options

  • AUse a reduced color palette to render pictures.
  • BUse the NetTcpBinding binding to communicate with the WCF service.
  • CLoad the pictures from the WCF service on a background thread.
  • DAssign the null value to every variable pointing to a picture that is not displayed.

How the community answered

(36 responses)
  • A
    14% (5)
  • B
    6% (2)
  • C
    3% (1)
  • D
    78% (28)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice