What is difference between function and procedure?

Answer Posted / rajasekhar

Procedure is used for performing a specific task any number of times in different situations,thats why it is defined as a block of reusable statements to perform a specific task..

There are 2 types of procedures
1. Function procedures
2. Sub procedures

Function procedure can return a value
Sub procedure cannot return a value


Sub procedures execute more faster than function procedures

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an expert view and keyword view?

567


What is the syntax for how to call one script from another?

558


whare exactly we have to use functions and sub routain

1843


In qtp, explain what is qrs file?

583


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1680






Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1227


Explain about datafile/verification of date file when file is not available in local system?

2220


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2176


What are the steps involved in the recovery scenario wizard?

559


Diff b/w Health care domain and Banking Domain?

4211


What is the extension of the recovery scenario file in qtp?

539


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1782


How to modify object property in qtp ?

556


If object is not recognized by qtp but the object is standard object what is your approach?

590


Explain the types of object repositorys in qtp?

571