Multiple choice technology testing

Which can be a name for a function in scripts of QTP?

  1. functionOpenWindow ( )

  2. funOpenWindow123 ( )

  3. OpenWindow ( )

  4. funcOpenWindow ( )

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

In QTP (QuickTest Professional) scripting, function names must follow specific naming conventions. The function name must start with 'func' followed by the actual name. 'funcOpenWindow()' follows this convention correctly. The other options are invalid: 'functionOpenWindow()' uses the full word 'function', 'funOpenWindow123()' is an incorrect abbreviation, and 'OpenWindow()' lacks the required prefix. These naming rules help distinguish user-defined functions from built-in functions and keywords.