QTP uses VBScript
as its programming language. Therefore a Hello World example can be given in pure VBScript:
MsgBox "Hello World!"
Executing this script (by pressing F5 or clicking the Play button on the taskbar) will produce a message box with the text "Hello World!" in it.