exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 141 discussion

Actual exam question from Microsoft's 70-483
Question #: 141
Topic #: 2
[All 70-483 Questions]

You are developing a Windows Forms (WinForms) application. The application displays a TreeView that has 1,000 nodes.
You need to ensure that if a user expands a node, and then collapses the TreeView, the node object is kept in memory unless the Garbage Collector requires additional memory.
Which object should you use to store the node?

  • A. GC
  • B. Handle
  • C. Cache
  • D. WeakReference
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References: https://msdn.microsoft.com/en-us/library/ms404247.aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HgstExam
Highly Voted 4 years, 9 months ago
Not sure but I think is correct, when the GC requires additional memory it will free some from WeakReferences, but your code has to know about refreshing the data if they were Garbage collected.
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...