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   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
About delegates ?
 Question Submitted By :: Wgk
I also faced this Question!!     Rank Answer Posted By  
 
  Re: About delegates ?
Answer
# 1
these are just reference to the methods and delegates are 
used at the bottom of events.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: About delegates ?
Answer
# 2
Delegates are like function pointer in c++ with type-safe.
They can be used in 2 situations 
1. callback methods
2. eventHandler
 
Is This Answer Correct ?    2 Yes 0 No
Sridevi
 
 
 
  Re: About delegates ?
Answer
# 3
Delegate hold reference to another function or method
 
Is This Answer Correct ?    1 Yes 0 No
Payal
 
  Re: About delegates ?
Answer
# 4
1. Delegates holds reference to a method
2. Delegates are objects which points towards a function 
which matches its signature
3. Delegates are reference type used to encapsulate method 
with specific signature
4. Delegates are typesafe and secure

//declaring a delegate 

delegate void SampleDelegate(string message)

//declaring delegate with same signature

static void SampleDelegateMethod(string message)
{
console.writeline(message);
}

//creating delegate method

SampleDelegate d1 = new SampleDelegateMethod();

//invoking method

d1(message);
 
Is This Answer Correct ?    5 Yes 1 No
Naren
 
  Re: About delegates ?
Answer
# 5
Delegate is a strongly typed function pointer. A delegate 
object encapsulates a reference to a method
 
Is This Answer Correct ?    0 Yes 1 No
Prithviraj P
 
  Re: About delegates ?
Answer
# 6
delegates holds the reference of the function
then you can call that function through the delegate object

main benifit of delegate is that you can make difference 
between class objects
you can assign the different -2 methods to different-2 
object of same class
 
Is This Answer Correct ?    1 Yes 0 No
Amit Kumar
 
  Re: About delegates ?
Answer
# 7
delegate is a reference type which is used to encapsulate a
method with specific signature.
delegates are 2 types
1.single cast delegate 
2.multi caste delegate.
Adv:
1.it will improve the performance of the application.
 
Is This Answer Correct ?    2 Yes 0 No
Ravindra
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format? FutureTech1
Which template must you provide, in order to display data in a Repeater control?  3
What is the DLL Hell Problem?  2
About Garbage Collector? Microsoft3
What is the Impprsonation?and what is the importence of that? eXensys3
What is shadowing? Syntax-Softtech2
How do you implement postback with a text box? What is postback and usestate?  1
Types of optimization and name a few and how do u do? Accenture1
Difference between asp and asp.net ? Accenture3
There is a login page that has two text boxes with required field validators on it. The page has a login and cancel button. How can we ensure that the click on the cancel button doesnt fire a validation event. Proteans2
How to do Forms authentication in asp.net?  2
What is the use of SmartNavigation property?  2
From the given paragraph of text, write a program to match the strings of format “Any number of numerals followed by an underscore followed by any number of alphabets" ex:123_abc (Note:using regular expressions) Microsoft4
What is the purpose of the validation summary control? What do you need to do to prevent an error message from being displayed in a validator when a validation summary control is used? How can you display a message in both the validator and the validation summary control?  1
Difference between ByVal and ByRef? Microsoft2
i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this.... TCS3
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance? TCS2
17. If I?m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?  1
what is the difference between console.writeline &console.output.writeline?  2
What is machine.config and web.config ? Digital-GlobalSoft4
 
For more ASP.NET 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