CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS MICROSOFT ASP.NET 2.0 DETAILS
    Question :
    What is difference between OR and ORElse?


    Category ASP.NET 2.0 Interview Questions
    Rating (0.4) By 1584 users
    Added on 7/28/2006
    Views 2856
    Rate it!
    Answers:

    ORELSE - Either of the two expressions is true. If the first expression is True, the second is not evaluated. - ex. are from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/valrfOrElseOperator.asp

    Dim A As Integer = 10
    Dim B As Integer = 8
    Dim C As Integer = 6
    Dim myCheck As Boolean
    myCheck = A > B OrElse B > C ' True. Second expression is not evaluated.
    myCheck = B > A OrElse B > C ' True. Second expression is evaluated.
    myCheck = B > A OrElse C > B ' False.

    If MyFunction(5) = True OrElse MyOtherFunction(4) = True Then
    ' If MyFunction(5) is True, MyOtherFunction(4) is not called.
    ' Insert code to be executed.
    End If

    ANDALSO -

    Instead of doing thisIf(Function1() And Function2()) ThenDo thisIf(Function1() AndAlso Function2()) ThenThe first code will evaluate the result of Function2(), even if Function1() returned false.The second will only evaluate Function2() if Function1() returned true.





    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is difference between singleton and single call?

    View Answer
    What are client activated objects and server activated objects?

    View Answer
    Which namespace is used by ADO.NET?

    View Answer

    What is delay signing?



    View Answer
    What is CLR?
    View Answer
    What are webservices?

    View Answer
    What is .NET remoting?

    View Answer
    What is an assembly

    View Answer
    How would you implement inheritance using VB.NET/C#?

    View Answer
    Can you explain what inheritance is and an example of when you might use it?

    View Answer
    How does VB.NET/C# achieve polymorphism?

    View Answer
    What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

    View Answer
    If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

    View Answer
    Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

    View Answer
    What is the life cycle of an asp.net page?

    View Answer
    What is Viewstate?

    View Answer
    How can we implement a Identity (SQL Server) call in an asp.net page?

    View Answer
    How Dataadapter.fill works?

    View Answer
    How do we get only edited/deleted/inserted records from a Dataset?

    View Answer
    How do we Sort the data from a Dataset?

    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL ASP.NET 2.0 Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 1.8125 Seconds