.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

what is Purpose of using Return Statement?

Posted By :Narayanan     Posted Date :November 21, 2011    Points :40   Category :C# 
returns flow of control from a method to the caller,optionally,passing by a return value.

You can also find related Interview Question to what is Purpose of using Return Statement?  below: 

what is Purpose of using Return Statement?

  
returns flow of control from a method to the caller,optionally,passing by a return value. (More...)

What is the purpose of @@LANGUAGE statement?

  
To know the current language used. (More...)

What is the purpose of @@FETCH_STATUS statement in T-SQL?

  
To know the status of the last cursor FETCH statement issued against any cursor currently opened by the connection (More...)

What is the purpose of lock statement?

  
To denote critical section while in a multi-threaded application (More...)

what is Purpose of using Break Statement?

  
Exists from the Loop of a FOR,WHILE or DO WHILE Statement (More...)

what is Purpose of using Continue Statement?

  
It will pass a flow of Control immediately to start of a loop (More...)

Can we have return statement in Final block?

  
No,Final block is being run as a effect of exception thrown from try block. (More...)

what is Purpose of using Break Statement?

  
Exists from the Loop of a FOR,WHILE or DO WHILE Statement (More...)

what is Purpose of using Continue Statement?

  
It will pass a flow of Control immediately to start of a loop (More...)

What is the use of return statement

  
The return statement is associated with procedures (methods or functions). On executing the return statement, the system passes the control from the called procedure to the calling procedure. This return statement is used for two purposes :

to return immediately to the caller of the currently executed code

to return some value to the caller of the currently executed code. (More...)

What is return type of Executenonquery() ?

  
int will be returned when you call ExecuteNonQuery() in ADO.NET (More...)

What is the main purpose of having Conversation Group?

  
It's a way of grouping all the dialogs that are used for a particular task. All the dialogs associated with processing a particular order would be grouped into a single conversation group. The conversation group is implemented as a conversation group identifier, which is included with all messages in all dialogs contained in the conversation group. When a message is received from any of the dialogs in a conversation group, the conversation group is locked with a lock that is held by the receiving transaction. For the duration of the transaction, only the thread that holds the lock can receive messages from any of the dialogs in the conversation group. This makes our order entry application much easier to write because even though we use many threads for scalability, any particular order is only processed on one thread at a time. This means we don't have to make our application resilient to problems that are caused by the simultaneous processing of a single order on multiple threads. (More...)

How many Columns per INSERT statement is allowed

  
4096 Columns allowed in per Insert SQL (More...)

Can multiple catch blocks be executed for a single try statement?

  
No. Once the proper catch block processed, control is transferred to the finally block (if any).

So we can not execute multiple catch block in one try block (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend