Multiple choice .net

Which set of symbols are used to signify the presence of ASP.NET code?

  1. <<span></span>@

  2. <<span></span>#

  3. <<span></span>$

  4. <<span></span>%

  5. <<span></span>&

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

ASP.NET uses <% and %> delimiters to mark code blocks in server-side pages. These are called 'render blocks' and can contain C# or VB.NET code that executes on the server. The @ symbol is for directives (# is old syntax), $ is not used in ASP.NET (though used in other template engines).

AI explanation

ASP.NET (classic Web Forms) code blocks are delimited by <% and %>, e.g. <% Response.Write("hi"); %>, and the special <%= %> / <%# %> / <%@ %> variants build on that base pair for output, data-binding, and directives respectively. So <% ... %> is the fundamental marker. @ alone denotes a page directive attribute, # alone is used for data-binding expressions, and $ and & are not ASP.NET delimiters at all — they're unrelated symbols, making them wrong.