- 相關推薦
Interview Problems
Interview Problems Does C# support multiple-inheritance? Who is a protected class-level variable available to? Are private class-level variables inherited? Describe the accessibility modifier “protected internal”. What’s the top .NET class that everything is derived from? What does the term immutable mean? What’s the difference between System.String and System.Text.StringBuilder classes? 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 collection class that allows an element to be accessed using a unique key? What class is underneath the SortedList class? Will the finally block get executed if an exception has not occurred? What’s the C# syntax to catch any possible exception? Can multiple catch blocks be executed for a single try statement? Explain the three services model commonly know as a three-tier application. Class Questions What is the syntax to inherit from a class in C#? Can you prevent your class from being inherited by another class? Can you allow a class to be inherited, but prevent the method from being over-ridden? What’s an abstract class? When do you absolutely have to declare a class as abstract? What is an interface class? Why can’t you specify the accessibility modifier for methods inside the interface? Can you inherit multiple interfaces? What happens if you inherit multiple interfaces and they have conflicting method names? What’s the difference between an interface and abstract class? What is the difference between a Struct and a Class? Method and Property Questions What’s the implicit name of the parameter that gets passed into the set method/property of a class? What does the keyword “virtual” declare for a method or property? How is method overriding different from method overloading? Can you declare an override method to be static if the original method is not static? What are the different ways a method can be overloaded? If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor? Events and Delegates What’s a delegate? What’s a multicast delegate? what’s an event? XML Documentation Questions Is XML case-sensitive? What’s the difference between // comments, /* */ comments and /// comments? How do you generate documentation from the C# file commented properly with a command-line compiler? Debugging and Testing Questions What debugging tools come with the .NET SDK? What does assert() method do? What’s the difference between the Debug class and Trace class? Why are there five tracing levels in System.Diagnostics.TraceSwitcher? Where is the output of TextWriterTraceListener redirected? How do you debug an ASP.NET Web application? What are three test cases you should go through in unit testing? Can you change the value of a variable while debugging a C# application? ADO.NET and Database Questions What is the role of the DataReader class in ADO.NET connections? What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET? What is the wildcard character in SQL? Explain ACID rule of thumb for transactions. What connections does Microsoft SQL Server support? Between Windows Authentication and SQL Server Authentication, which one is trusted and which one is untrusted? What does the Initial Catalog parameter define in the connection string? What does the Dispose method do with the connection object? What is a pre-requisite for connection pooling? Assembly Questions How is the DLL Hell problem solved in .NET? What are the ways to deploy an assembly? What is a satellite assembly? What namespaces are necessary to create a localized application? What is the smallest unit of execution in .NET? When should you call the garbage collector in .NET? How do you convert a value-type to a reference-type? What happens in memory when you Box and Unbox a value-type?【Interview Problems】相關文章:
Interview Feedback02-10
Group Interview12-08
Of Job Interview02-02
Interview Nerves07-07
Behavioral interview07-09
Post Interview12-10
Interview Practice12-12
Job Interview Tips - Closing the Interview and Landing the J02-15
匯豐遠程Interview07-28
Interview考試范文07-06