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

What is the use of ordinal identifier in qtp?

0 Answers  


1.what is test automation life cycle?

1 Answers   IBM,


Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone

1 Answers  


i m fresher iwant to know about testing what is the scope of testing field.i m aware in manual testing shall i go to automatiuon testinh directly or if any work experinc in manual testinh then only i go to manually automation testing.

2 Answers  


Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


Suppose u write test case in Excel sheet . how u open that test case in Test Director?

4 Answers   Ordain Solutions,


anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example

2 Answers  


What is keyword view in qtp?

0 Answers  


How you can delete excel file in qtp?

0 Answers  


What is throw object?

1 Answers  


If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?

1 Answers   Crea,


In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.

3 Answers   Broadridge, Cigniti Technologies, HCL,


Categories