nerdexam
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)
  • A
    79% (33)
  • B
    5% (2)
  • C
    14% (6)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice