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 the reason behind the invention of c#?

0 Answers  


What is protected internal modifier in C#?

0 Answers   Arigo Infotech,


What is boolean conditions in c#?

0 Answers  


Give an example to show for hiding base class methods?

0 Answers  


How to call a function when a class implements 2 interfaces and function is present in both interfaces?

2 Answers  


When should we use sealed class in c#?

0 Answers  


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

0 Answers   Siebel,


Are c# strings immutable?

0 Answers  


Why main method is static in c#?

0 Answers  


What are the drawbacks of extending an interface as opposed to extending a class?

0 Answers  


What is an Interface in C#?

0 Answers   TryTechnicals Pvt Ltd,


Define constructors

0 Answers  


Categories