Multiple choice asp

How do you comment a line in ASP using VBScript?

  1. <!-- Comment a line in ASP -->

  2. < Comment a line in ASP >

  3. 'Comment a line in ASP

  4. <% Comment a line in ASP %>

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

VBScript uses the apostrophe (') character to denote comments. Anything following ' on a line is treated as a comment and ignored by the interpreter. Option A uses HTML-style comments which don't work within VBScript code blocks. Option B uses incorrect syntax. Option D shows ASP delimiters but the content inside would still be treated as code, not a comment.