nerdexam
Microsoft

70-513 · Question #252

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. Console.WriteLine(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 For Each item As SyndicationItem In feed.Items 04 Next You need to display the content type and body of every syndication item to the console. Which two lines of code should you insert between lines 02 and 03?

Options

  • AConsole.WriteLine(item.Content.Type)
  • BConsole.WriteLine(item.Content.GetType())
  • CConsole.WriteLine(item.Content.Type)
  • DConsole.WriteLine(item.Content.GetType())

How the community answered

(43 responses)
  • A
    72% (31)
  • B
    5% (2)
  • C
    7% (3)
  • D
    16% (7)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice