Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write an expression which satisfies the following statements:
(i) Creates an object of type q
(ii) If m is null, returns n, otherwise returns m
(iii) If x and y are string types, it concatenates x and y



Write an expression which satisfies the following statements: (i) Creates an object of type q (i..

Answer / sam

1)q objQ = new q();
2)string result = m??n;
3) if((typeof(string) == x.GetType()) && (typeof(string) == y.GetType() )
{
String.Concat(x,y);
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a di class?

0 Answers  


Explain different properties of object oriented systems.

0 Answers  


Can you override private virtual methods?

5 Answers  


What the different phase/steps of acquiring a proxy object in webservice?

0 Answers  


what is class libraries?

1 Answers  


What happens in synchronisation?

2 Answers   Tech Mahindra,


How does bubble sort work?

0 Answers  


how encapsulation is implemented in c#

0 Answers   Cognizant,


What is a virtual property. Give an example?

0 Answers  


Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?

0 Answers   Siebel,


Is it possible to have different access modifiers on the get/set methods of a property?

0 Answers  


Define parsing? Explain how to parse a datetime string?

0 Answers  


Categories