Multiple choice .net asp

Which is the correct format of an include statement?

  1. <% '#include virtual="banner.asp" %>

  2. <!-- #include virtual="banner.asp" -->

  3. <-- #include virtual="banner.asp" -->

  4. <-- #include virtual="banner.asp" -->

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The correct format for an include statement in ASP/SSI uses HTML comment syntax with the #include directive. Option B shows the proper format: . The virtual attribute specifies a virtual path relative to the web root. Option A uses incorrect ASP-style delimiters, while options C and D are missing the exclamation mark after the opening bracket.