C# Interview Questions and Answers
Ques 26. Where is the output of TextWriterTraceListener redirected?
To the Console or a text file depending on the parameter passed to the constructor.
Is it helpful?
Add Comment
View Comments
Ques 27. How do you debug an ASP.NET Web application?
Attach the aspnet_wp.exe process to the DbgClr debugger.
Is it helpful?
Add Comment
View Comments
Ques 28. What are three test cases you should go through in unit testing?
Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly).
Is it helpful?
Add Comment
View Comments
Ques 29. Can you change the value of a variable while debugging a C# application?
Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.
Is it helpful?
Add Comment
View Comments
Ques 30. Explain the three services model (three-tier application).
Presentation (UI), business (logic and underlying code) and data (from storage or other sources).
Is it helpful?
Add Comment
View Comments
Most helpful rated by users:
- What’s the advantage of using System.Text.StringBuilder over System.String?
- Can you store multiple data types in System.Array?
- What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
- How can you sort the elements of the array in descending order?
- What’s the .NET datatype that allows the retrieval of data by a unique key?