GeekInterview.com
  I am new, Sign me up!
 

C# Interview Questions


C# Interview Questions

Questions: 436
Comments: 1181
 Showing Questions 121-130 of 436 Questions
<< Previous 9 10 11 12 [13] 14 15 16 17 18 Next >>
 Sponsored Links

 
 C# Interview Questions
Sorting Options :  

A) Constructors should have the same name as class nameB) Constructors have to be public so that class can be instantiatedC) Constructors can not be overloadedExplanation: Constructors can be overloaded 
Latest Answer: Two statements are INVALID: B -- since constructors can be protected / private. A class with a protected constructor can be instantiated through a derived class. A class with a private constructor can be instantiated through a friend class / friend function.C ...

A) TrueB) FalseExplanation: There can be static constructors 
Latest Answer: False.Constructors can be static only for static members of class ...

A) TrueB) False 
Latest Answer: There is no need to avoid throwing exceptions from finally block as a matter from any parts of the code.  The main idea of throwing exception is to inform caller of this block of the code about the execption.  Imagine a class library may have ...

A) TrueB) FalseExplanation: It is possible and such delegates are called as Multicast delegates 
Latest Answer: FalseIn some cases you may want to call not just one, but two or more methods through a single delegate. This is known as multicasting. You accomplish multicasting by encapsulating the various methods in delegates, and then you combine the delegates using ...

A) TrueB) False 
Latest Answer: #2 is right and gave acurate definition of event and event handler but since we declare a event using delegate so we usually say a event is a delegate but from the declaration we can see what is a delegate is the eventhandler. ...

Which preprocessor directive are used to mark that contain block of code is to be treated as a single block
A) # define & #undefB) # Region & #EndRegionC) #Line 

A) Enclosed with in [ ]B) Enclosed with in ( )C) Enclosed with in { } 
Latest Answer: Ans: A. They are enclosed with in []. ...

A) StringB) StringBuilderC) Both 
Latest Answer: Answer B is correct. StringBuilder class is preferred for performing repeated operations on string since its value is mutable. String class represents a text value which is immutable. All operations on string class which appear to be modifying its value ...

A) System.TextB) System.IOC) System.StringBuilder 
Latest Answer: System.Text name space should be used. ...

A) Append ( )B) Insert( )C) Replace ( )D) Substring( ) 
Latest Answer: Answer: DSubString() is not a method of StringBuilder class.For the rest, here are the details.....System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("Kals");    //string value to be appendedsb.Insert(0, ...

View page << Previous 9 10 11 12 [13] 14 15 16 17 18 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
# User Name Count
1sahu 205
2samiksc 59
3naveentej 25
4nikhilrawat23 15
5Vikas Yadav 13
6musclebai 13
7md.shafikhan 11
8swag 11
9vshylaja 9
10John Jiang 8
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape