C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !



Posted By: Dhyanchandh.A.V       Member Level: Gold       Posted Date: 06 Jan 2005       Category: C#

Which among A, B, C, D, E is/are true ?




class MainClass
{
static void Main()
{
MainClass AnObject=new MainClass();
if(AnObject.AMethod(7,8) || AnObject.AMethod(8,9));
}
bool AMethod(long n1,long n2)
{
System.Console.Write(n1+n2);
return n1 < n2;
}
}

A Compiler warning [ Possible mistaken null statement ].

B 15

C Syntax error [ Possible mistaken null statement ].

D 1517

E Syntax error [ Cannot implicitly convert ' int ' to ' long ' ].



Select Answer:

A & D
A & B
B Only
D Only
A, C & E



      
Your Test Score: 0 / 0



Next Question: What is the syntax for declaring a jagged array ?
Previous Question: What is the output of following C# code ?
Related Questions:
  • what is the default initial capacity of a hashtable?


  • A delegate defines


  • If we need to compare X to a value 3 how do we do it in C#


  • Code running under the control of CLR is often referred as


  • Which of the following statement is Incorrect? a)Virtual methods can be over-ridden in a derived class b)Abstracts methods can be over-ridden in a derived class c)Protected methods can be over-riden in a derived class


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers   BizTalk Adaptors    Web Design

    doors in nj

    Contact Us    Privacy Policy    Terms Of Use