What is the difference in between function and sub as well as
give some code of both



What is the difference in between function and sub as well as give some code of both ..

Answer / mukesh

The main difference is that a Function Returns a value but a
Sub do not

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

How can i parameterize the standard checkpoint using Excel sheet where my expected values are there?? suppose i want to test a application with diffent value and want to run 5 iteration?? for each iteration, values will be exported from excel sheet as input. Now i will store some expected values in the excel sheet, which i want to check in the application whether expected equals to actual value??? can any one help me

1 Answers   CSC,


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

1 Answers  


To which environments does a QTP support?

1 Answers   Crea,


How to customize checkpoints with parameters?

0 Answers  


Explain different type of event trigger option.

0 Answers  






How to send QTP scripts to our colleagues?

1 Answers   Virtusa,


how do u retrieve data from a database ? i.e. i want to retrieve 2nd record only from a database ? write code for this. by using ADODB connecton, RSOBJ and using a FOR loop we can retrieve all the records( ex: if we give query as select * from emp). but i want only 2nd record. so how to acheive this.

2 Answers   Accenture,


How Does Run time data (Parameterization) is handled in QTP?

4 Answers   IBM,


How to make Shared object repository in qtp 9.1 and 9.2?

2 Answers  


What is a quick test professional?

0 Answers  


What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


what is meant by "Parameterization technique"?

4 Answers   KH, Mind Tree,


Categories