Multiple choice technology testing

How you will comment a line in QTP?

  1. ' (Single Quote)

  2. /*

  3. //

  4. REM

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

In QTP (QuickTest Professional, which uses VBScript), both single quote (') and REM are valid comment markers. Option A shows the single quote method, and Option D shows REM, which is a legacy BASIC-style comment statement that VBScript supports. Options B (/*) is C-style syntax, and C (//) is C++/Java-style, neither of which work in VBScript.