ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
What is "out" parameter how it is used in methods?
 Question Submitted By :: Senthil Murugan Ramalingam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 1
we get the value the value.
 
Is This Answer Correct ?    5 Yes 4 No
Sujata
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 2
if we want something from that method/procedure to return 
then use out parameter
1st we call that method with out parameter. then give some 
value to that out parameter in procedure and then use that 
value...
so to get the required value we use out parameter
 
Is This Answer Correct ?    8 Yes 2 No
Somnath Nanekar
 
 
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 3
A out parameter is a parameter option to pass value to the 
calling function. If a function needs to return multiple 
values to the calling function the it is best to use out 
parameter whereas return parameter can be used for 
returning only one value.

An out parameter should be marked with an out keyword, and 
the parameter should be initialized inside the function.
 
Is This Answer Correct ?    6 Yes 0 No
Bharani
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 4
out parameter option to pass value to the 
calling function. for array it can used in a flexible way...
 out can be used as calling function in methods
 
Is This Answer Correct ?    1 Yes 2 No
Sai Ranganath
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 5
methods cannot have out parameters only parameters with ref 
or value can be passed to method/function

When we talk about procedures in Sql server we can have out 
parameters. They are mainly used when you want to return 
multiple values and non numeric values from the sql 
procedures

They are usefull when you are calling a procedure from 
another procedure and need some specfic values
 
Is This Answer Correct ?    1 Yes 0 No
Sendhil Vel
 
  Re: What is "out" parameter how it is used in methods?
Answer
# 6
Out Parameter: Used to pass a parameter as a reference so
that the function called will set the value. This could be
used to return more than 1 value by a function.
e.g.

public int AddMuliply( int a int b out int c)
{
c a*b;
return ( a+b);
}
 
Is This Answer Correct ?    1 Yes 0 No
Bhavnasweet04
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Qu)I Got Exception in "try" block. Which "catch" statement (i.e. 1st catch or 2nd catch ) catches the exception and Why??? 3i-Infotech3
In which circumstances you used delegates? HP3
What are Satellite Assemblies? How you will create this?  3
What is CLR and how it generates native code ? Digital-GlobalSoft1
Have you designed any components? HP1
What is serialization ? MMTS4
Can we look at the IL for an assembly?  2
How do assemblies find each other?  1
How do you do role based security ? Accenture1
Features in .net framework 1.1 ? Digital-GlobalSoft1
I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me. Accenture2
what are generics? Without generics what are the disadvantages in 1.1? HP2
what are the different stepts to create shared assemblies?  1
Integer & struct are value types or reference types in .NET?  3
If you change something in web.config file.Do u need to compile again? SMNetserv2
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?  1
More on CLR ? MMTS2
What is .NET Framework?  3
What is CLR? How it will work?  1
what is an assembly?  10
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com