nerdexam
Microsoft

70-515 · Question #17

You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you register the module in the web.config file. The CustomModule class contains the following code. public…

The correct answer is D. public void Init(HttpApplication app). See the full explanation below for the reasoning.

Question

You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you register the module in the web.config file. The CustomModule class contains the following code. public class CustomModule : IHttpModule { string footerContent = "<div>Footer Content</div>"; public void Dispose() {} } You need to add code to CustomModule to append the footer content to each processed ASP.NET page. Which code segment should you use?

Options

  • Apublic CustomModule(HttpApplication app)
  • Bpublic void Init(HttpApplication app)
  • Cpublic customModule();
  • Dpublic void Init(HttpApplication app)

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    17% (7)
  • C
    5% (2)
  • D
    74% (31)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice