Dot Net Framework Interview Questions for Experienced

276
dot net framework interview questions

Tags | dot net framework interview questions for experienced, dot net framework interview questions 6 years experience, .net framework interview questions for 3 years experience, .net framework interview questions for 3 years experience, .net framework interview questions for 5 years experience, dot net framework interview questions pdf

Dot Net Framework Interview Questions pdf

Find the below list of dot net interview questions for beginners and experienced candidates:

dot net interview questions download

  • Explain the difference between a Class and an Object.
  • What is the difference between Managed and Unmanaged code?
  • Explain what is the difference between Boxing and Unboxing. Provide an example.
  • Discuss the difference between constants and read-only variables.
  • Explain what LINQ is?
  • Discuss what is Garbage Collection and how it works. Provide a code example of how you can enforce garbage collection in Dot Net.
  • What do the following acronyms in Dot Net stand for IL, CIL, MSIL, CLI, and JIT?
  • Explain the difference between Stack and Heap?
  • Explain the difference between an Interface and an Abstract Class in Dot Net.
  • Discuss deferred execution vs immediate execution in LINQ. Provide examples.
  • What is Delegate in .NET?
  • Why can’t you specify access modifiers for items in an interface?
  • When a Break statement is used inside two nested for loops, control comes out of which loop, the inner or the outer for loop? (I.e. does it break from all the present loops?)
  • When a Break statement is used inside two nested for loops, control comes out of which loop, the inner or the outer for loop? (I.e. does it break from all the present loops?)
  • You would know that System.Object is the parent class of all .NET classes; In other words, all types in .NET (whether implicit, explicit, or user-created) derive from the System.Object class. What are the various methods provided to System.Object’s deriving classes/types?
  • When is it beneficial to use an IoC Container?
  • What’s a static class and when should you use one?
  • When and how do you use reflection in your projects?
  • Where and when do you use an Assert.AreEqual statement?
  • Can you name three ways to pass parameters to a method in C#?
  • Write a C# method to total all the even numbers in an array of ints?
  • What is Operator Overloading and how does it work?
  • What is the difference between dynamic type variables and object type variables in C#?
  • How does C# handle encapsulation?
  • Explain nullable types in C#.
  • Explain the role of structs in C#. Why would you choose to define a type as a struct instead of a class?
  • What are some of the features of generics in C#?
  • What is the problem with Functional Programming?
  • Can you define OOP and the 4 principles of OOP?
  • What is Inheritance?
  • What is Polymorphism, overloading, overriding and virtual?
  • Can you explain encapsulation and abstraction?
  • What is the use of Shadowing in C#?
  • Can we implement interfaces with same method names in C#?
  • What are partial classes & partial methods?
  • Explain Access modifiers (Private, Public, Protected, Internal & Protected/Internal)?
  • What is the difference between an .EXE and a .DLL?
  • Explain the difference between a thread and a process?
  • Explain the difference between a.Equals(b) and a == b?
  • What is the Global Assembly Cache (GAC)? What problem does it solve?
  • Conceptually, what is the difference between early-binding and late-binding?
  • When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
  • What is the difference between Finalize() and Dispose()
  • What is the difference between Debug.Write and Trace.Write? When should each be used?
  • What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
  • Explain the difference between: catch (Exception e) {throw e;} and catch (Exception e) {throw;}?
  • What is the difference between typeof(foo) and myFoo.GetType()?
  • Write down your own hashtable class without using the built-in classes.
  • Write a method to perform a binary search on an array without using built-in methods.
  • Draw a database schema for a blog. Each user only has one blog, each blog has many categories, each category has many posts, and each post can belong to more than one category. Ask your applicant to write queries to pull specific information out.
  • (Event handlers) Create a class with a custom event handler, create another class which hooks onto the custom event handler.
  • (XML) Load an XML document and select all of the nodes with properties x, y, and z.
  • (Functional programming) Create a function that accepts another function as a parameter. A Map or Fold function works really good for this.
  • (Reflection) Write a function which determines if a class has a particular attribute.
  • (Regex) Write a regular expression which removes all tags from a block of HTML.

Did you find this post useful? I hope you liked this article. Please share with me your valuable suggestions and feedback.

LEAVE A REPLY

Please enter your comment!
Please enter your name here