I have below user Defained function

function AddTwo(ByVal a, ByVal b)
Dim Ans
Ans=a+b
MsgBox Ans
End function
Now my question comes here...from given below methods which
method is right to call above function?Which is Wrong and why?
1. AddTwo(2,4)
2. Call AddTwo(2,4)
3. AddTwo 2,4
4. Call AddTwo 2,4



I have below user Defained function function AddTwo(ByVal a, ByVal b) Dim Ans Ans=a+b ..

Answer / sisira

 Call AddTwo(2,4)
 AddTwo 2,4
these two ans are true





Thanks
sisira

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

0 Answers   Excel,


IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp

2 Answers  


I need to know how to Automate a Username and Password for a Web-based product? I'm scripting 3 different types of surveys but each Survey requires a Username and Password which is always the same. I can I do this using QTP?

3 Answers  


can u tell me website address of VBscript with examples.

2 Answers  


Does quicktest professional is unicode compatible?

0 Answers  






what is the latest version of QTP? Main difference between 9.2 and 10 version

0 Answers  


Can objects recognised without repository?

5 Answers  


What is the extension of the qtp local repository?

0 Answers  


I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.

1 Answers   IBM,


What is object state in trigger events,in recovery scenario.write a script to handle this.

0 Answers  


How to convert manual test cases to automated testcases

1 Answers   TCS,


Can any one explain about environment variables with examples?

2 Answers  


Categories