ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Testing >> Automation Testing >> QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions (495)
 Load Runner interview questions  Load Runner Interview Questions (486)
 QTP interview questions  QTP Interview Questions (3474)
 Test Director interview questions  Test Director Interview Questions (161)
 Rational TestSuite interview questions  Rational TestSuite Interview Questions (106)
 Silk Test interview questions  Silk Test Interview Questions (59)
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions (382)
Question
What is difference between function and procedure?
 Question Submitted By :: Suma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is difference between function and procedure?
Answer
# 1
Action is a part of Function.
Function is a Like a Functional Test case.
Procedure is a process to perform the Different Actions
 
Is This Answer Correct ?    71 Yes 134 No
Deepika
 
  Re: What is difference between function and procedure?
Answer
# 2
function can return a value
procedure cannot return a value,
 
Is This Answer Correct ?    241 Yes 159 No
Prakash
 
 
 
  Re: What is difference between function and procedure?
Answer
# 3
1.Function returns a value, but a procedure may return or
may not return a value.
2.Function can take only input aurguments, but procedure may
take both input and out put parameters.
 
Is This Answer Correct ?    207 Yes 52 No
Ravi Kumar Battula
 
  Re: What is difference between function and procedure?
Answer
# 4
All are correct.... 
Is This Answer Correct ?    30 Yes 132 No
Vinod
 
  Re: What is difference between function and procedure?
Answer
# 5
Fuction returns a value whereas procedure doesnt return any
value
if some function calling is dere den function switch over 2
d function definition part directly but procedure go from
top 2 down linearly
 
Is This Answer Correct ?    25 Yes 82 No
Siva
 
  Re: What is difference between function and procedure?
Answer
# 6
function can be called inside the select statement but not
the procedure
 
Is This Answer Correct ?    83 Yes 27 No
S
 
  Re: What is difference between function and procedure?
Answer
# 7
Bot functions and procedures can return values. Apart from
this following are the differences

1) Functions are used for computations where as procedures
can be used for performing business logic

2) Functions MUST return a value, procedures need not be.

3) You can have DML(insert,update, delete) statements in a
function. But, you cannot call such a function in a SQL query..
eg: suppose, if u have a function that is updating a table..
you can't call that function in any sql query.
- select myFunction(field) from sometable; will throw error.

4) Function parameters are always IN, no OUT is possible

5) Function returns 1 value only. procedure can return
multiple values(max. 1024)

6) Stored Procedure :supports deffered name resoultion
Example while writing a stored procedure that uses table
named tabl1 and tabl2 etc..but actually not exists in
database is allowed only in during creation but runtime
throws error Function wont support deffered name resolution.
Stored procedure returns always integer value by default
zero. where as function return type could be
scalar or table or table values(SQL Server).
Stored procedure is pre compiled exuction plan where as
functions are not.

7) A procedure may modifiy an object where a function can
only return a value.
 
Is This Answer Correct ?    202 Yes 16 No
Pranjal
 
  Re: What is difference between function and procedure?
Answer
# 8
Function means Lot of people gathering together and
celeberate somthing.
Example:Birth day function,Marriage function
Procedure not somthing like that.
 
Is This Answer Correct ?    62 Yes 242 No
Manohar
 
  Re: What is difference between function and procedure?
Answer
# 9
Function must returs a value, but procedure can return more
and not any value..

Fuction are used for check conditions, but procedures can
be use check condition as well as for the bussiness logic.
 
Is This Answer Correct ?    25 Yes 20 No
Rajesh Trivedi
 
  Re: What is difference between function and procedure?
Answer
# 10
1.Funcan can return a valur but not procedure
2.Function can accept only one parameter IN but procedure
can take IN or OUT or both parameters.
3.Procedure follows only linear execution but not function.
 
Is This Answer Correct ?    13 Yes 36 No
Abhishek Khare
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".   2
How to record right click of a context menu and click on the selection ?   3
wht is the difference between action and functio?   3
Hi any body can tell me the synchranization point syntax thanks in advance AppLabs 6
how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp Mind-Tree 13
Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?   2
we have 5 default properties we want add more Default property in Object Repository how to add the property Nous 2
can u Give Procedure to Handle Pop Window & write Code for that CTS 2
hi This is Harish.1. What is object repositery .2. what is frame works in QTP,what is keyword driven frame work,explain it and how to associate the folders.3.the build is developed in java, can we write scripting in vb .4.what is discriptive progaram,how to write it.5.what is process of QTp testing.6. how to associate the shared repository. 7.what is implicit and explicit 8.what is runtime data please replay me regards Harish Syntel 3
Hi everybody.. I m using QTP 9.2 version., plz send me licence key is it seat or concurrent licence key... plzzzzzzzzz plz help me for this one and its Locking code:8-5C740 Maintenance number: 0123-2820602186.,   1
Hi, i am mallishwari, i am veryn ew to testing but i have very much interest in testing. plse give me some guidence to get the job in testing. send me required documents and faqs to my personal id: mallishwari_urs@yahoo.co.in thans for advance.   2
what is parameterisation?   3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com