CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

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


Category ASP.NET 2.0 Interview Questions
Rating (4.1) By 31 users
Added on 7/28/2011
Views 1321
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 & Answers

    User Options
    Latest 20 Questions
    What is crisis management?
    What is corporate social responsibility?
    What are the factors influencing business ethics?
    What is the importance of business ethics?
    What are the various characteristics of business ethics?
    How to overcome the barriers of Communication?
    What are the barriers to effective Communication?
    What are the disadvantages of business ethics?
    What is the difference between Formal and Informal Communication?
    List the importance of Communication?
    List the advantages of business ethics.
    Define Communication?
    Give some qualities of a Successful Leader?
    What are the ethical issues in production?
    State the types of Leadership?
    What is Leadership?
    What are ethical issues in marketing?
    State the Maslow's Theory of Hierarchy of Needs?
    What are the issues of ethics faced by HRM?
    What is Maslow's Hierarchy of Needs?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

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

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




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



    Cache = 0 Seconds