Microsoft
70-513 · Question #139
A Windows Communication Foundation (WCF) client application is consuming an RSS syndication feed from a blog. You have a SyndicationFeed variable named feed. The application iterates through the…
The correct answer is A. ConsoleWriteLine(item.Content.Type). See the full explanation below for the reasoning.
Question
A Windows Communication Foundation (WCF) client application is consuming an RSS syndication feed from a blog. You have a SyndicationFeed variable named feed. The application iterates through the items as follows. (Line numbers are included for reference only.) 01 foreach (SyndicationItem item in feed.Items) 02 { 03 } You need to display the content type and body of every syndication item to the console. Which two lines of code should ou insert between lines 02 and 03?
Options
- AConsoleWriteLine(item.Content.Type);
- BConsole.WriteLine(item.Content.GetType());
- CConsole.WriteLine(item.Content.Type);
- DConsole.WriteLine(item.Content.GetType());
How the community answered
(42 responses)- A79% (33)
- B5% (2)
- C14% (6)
- D2% (1)
Community Discussion
No community discussion yet for this question.