Which can be a name for a function in scripts of QTP?
-
functionOpenWindow ( )
-
funOpenWindow123 ( )
-
OpenWindow ( )
-
funcOpenWindow ( )
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.