Tuesday, May 26, 2020
100 C# C Sharp Interview Questions To Hire Or Get Hired With - Algrim.co
100 C# C Sharp Interview Questions To Hire Or Get Hired With - Algrim.co    ;   80.	State some properties of an array?   â¢	Length â" gives the total number of element sin an array   â¢	IsfixedSize- highlights if the array is fixed or not  â¢	IsReadOnly- explain if the array is read-only or not.   81.	What the properties of a string class?  â¢	Chars- places the Char in the current string   â¢	Length â" places the number of objects in current string  82.	Explain the escape sequence   Escape sequence is marked by a backlash(). The item that comes after the backlash should be interpreted literally and treated as a special character   83.	Give example of string escape sequence in C#?    - newline character  - Backspace  \- backlash  â â" single quote   â â" double quote   84.	Explain regular expression  This a template that matches a set of input. Mostly the pattern includes operators, constructor and character literals.   85.	Explain constructor chaining  This a way of connecting two or more classes in a relationship as an inheritance. In this process, every child class is mapped to parent class constructor implicitly by base keyword.   86.	Can multiple catch blocks be executed in C#?   Yes we can use multiple catches blocks but only one can be executed   87.	Explain the difference between throw exception and throw clause   Throw exception is used to overwrite the stack trace and this means finding the original code line number will not be easy.   Throw clause retains the information and adds to the stack information in the exception that it is thrown.   88.	State the difference between Equality operator (==) and Method in C#?   Both methods are used in comparing two value data items or references data items   Equality operator (==) is compares the reference identity while the Equals () method compares the contents.   89.	Explain the object pool as it is used in .Net  This helps to keep the pool of objects in memory to be re-used and it decreases the load of object created by a great margin.   It is a container of the object that is ready to use.   90.	State the uses of delegates in C#?  Callback mechanism  Asynchronous processing  Abstract and encapsulate method   Multicasting   91.	Explain why developers use ânullable coalescing operatorâ (??) in C#  The operator can be used with references types and nullable value types.   If the first operand of the expression is null then the value of the second operand is assigned to the variable.   Example:  double? myFirstno = null  	    Double mySecno;    	    My Secno = myfristno ?? 10.11;  92.	Explain the Hashtable in C#  Used to store the key or value pairs depending on the hash code of the key the key is essential in accessing  the element in the collection.    93.	State how you would check whether the hash table contains specific key in C#?   âcontainsKeyâ is the method I would use for the purpose.   Example of a sample code: myhashtbl.ContainsKey(â1â)  94.	State the loopholes available in C#?  For while   Do.. while   95.	Give a sample code to write the contents to text file in C#?  Using System.IO;  File.WriteAllText(âmytextfilePathâ, âMyTestContentâ);  96.	 Give the compiler of C#?   The compiler is - CSC.   97.	State the different types of unit test cases?  Positive test cases   Negative test cases   Exception test cases  98.	List the collection types that work in C#?  â¢	Arraylist  â¢	Stack  â¢	Queue  â¢	SortedList  â¢	Hashtable  â¢	Bit Array    Preparing for the interview  Similar to our other programming interview processes, you can expect to answer some of these questions in person. In that regard, I would prepare yourself by bringing a series of projects or programs which you may have made on your own. If you do not have some examples of software projects you've made, you should spend a weekend putting together something simple. Even the smallest of projects can help employers determine your fit inside the organization and help secure your potential of being hired. It also gives you a great avenue for discussing C# and other ways you implemented a particular piece of functionality utilizing the C# programming language. Think of this as preparing a portfolio or a series of case studies which can easily be digested or shared between colleagues.    Footnote  As with any of the interview questions pages, I employ you to please email me if you have additional questions that you would like listed or if you see any mistakes that can easily be cleaned up. This resource is vital for those looking to find employment as well as those looking to vet candidates in a professional engineering position.  
Subscribe to:
Post Comments (Atom)
 
 
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.