.NET Framework - Interview Questions With Answers


OOPS - Interview Questions With Answers


CSharp - Interview Questions With Answers

  • C# language versioning
  • How to achieve multiple inheritances in C#?
  • What is static class in c#
  • What is a field in CSharp?
  • What is a generic class in csharp?
  • Multicast Delegates
  • Indexers
  • Object Pool
  • Difference between var and dynamic
  • Anonymous Types - C#
  • Anonymous Methods- C#
  • ReadOnly Vs Const Keyword c#
  • Sealed vs Abstract class C#
  • Can multiple catch blocks be executed?
  • What is the difference between public, static, and void?
  • What is an object?
  • Define Constructors
  • What is Jagged Arrays?
  • What is the difference between ref & out parameters?
  • What is the use of 'using' statement in C#?
  • What is serialization?
  • What are Custom Control and User Control?
  • What are sealed classes in C#?
  • What is the difference between Array and Arraylist?
  • System.String vs System.Text.StringBuilder classes?
  • System.Array.CopyTo() vs System.Array.Clone() ?
  • How can we sort the elements of the Array in descending order?
  • Write down the C# syntax to catch an exception
  • What are circular references?
  • List down the commonly used types of exceptions in .NET
  • What are Custom Exceptions?
  • How do you inherit a class into other class in C#?
  • What is the base class in .net from which all the classes are derived from?
  • How to use nullable types in .NET?
  • How we can create an array with non-default values?
  • What is difference between "is" and "as" operators in c#?
  • What is difference between the "throw" and "throw ex" in .NET?
  • What are C# attributes and its significance?
  • How to implement a singleton design pattern in C#?
  • What is the difference between directcast and ctype?
  • Is C# code is managed or unmanaged code?
  • What is Console application?
  • What is Garbage Collection?
  • What are strong references and weak references in GC?
  • How GC come to know that object is ready to get collected?
  • What are generations in GC?
  • How value types get collected v/s reference types?
  • What is the difference between Finalize() and Dispose() methods?
  • Can we pin objects for later references?
  • Does GC work Web Application vs windows application?
  • How to Force Garbage Collection?
  • Why does Garbage Collection only sweep the heap?
  • Usage of Destructor
  • What is lazy initialization?

Entity Framework - Interview Questions With Answers

  • Execute SQL Query Directly Using Entity Framework
  • Entity Framework - IEnumerator vs IQueryable
  • Entity Framework - Code First v/s Database First
  • What are lambda expressions?
  • What are various implementations of LINQ?
  • When to use IEnumerable vs IQueryable?
  • What is Task Parallel Library?
  • PLinq is supported for what type of Linq implementation?
  • What are Quantifiers in Linq?
  • When to use .First and when to use .FirstOrDefault with LINQ?
  • What operators/ methods can be used for immediate execution?
  • What is deferred execution in Linq?
  • What are the examples of remote execution vs local execution?
  • What kind of exception is thrown in task parallel calls?
  • What is data Parallelism vs Task Parallelism?
  • Between Task.Factory.StartNew and new Task(...).Start ?
  • Event-based Asynchronous Pattern vs Task-based Asynchronous Pattern?
  • What is recommended pattern for asynchronous operations?
  • Can you programmatically cancel a task?



Web API - Interview Questions With Answers

  • Web API Basic Design
  • Web API - Authentication
  • Web API - JWT authentication
  • Web API - Custom Filter
  • Web API - Configuration
  • Web API vs Web Services
  • ApiController vs Controller
  • The Types of Status Codes
  • Security in Web API
  • Post File using WebAPI
  • What is Web API?
  • Is it possible to use RESTful services using WCF?
  • Why select Web API?
  • Is it right that ASP.NET Web API has replaced WCF?
  • What are the advantages of Web API?
  • What are main return types supported in Web API?
  • Web API supports which protocol?
  • Which .NET framework supports Web API?
  • Web API uses which open-source library for JSON serialization?
  • Web API sends which HTTP status code for all uncaught exception?
  • What is the biggest disadvantage of "Other Return Types" in Web API?
  • How do you construct HtmlResponseMessage?
  • What is Web API Routing?
  • What is SOAP?
  • What is the benefit of using REST in Web API?
  • How can we use Web API with ASP.NET Web Form?
  • How to you can limit Access to Web API to Specific HTTP Verb?
  • Can you use Web API with ASP.NET Web Form?
  • How Can assign alias name for ASP.NET Web API Action?
  • What is the meaning of TestApi?
  • Explain exception filters?
  • How can we register exception filter from the action?
  • How you can return View from ASP.NET Web API method?
  • How to register exception filter globally?
  • Give me one example of Web API Routing?
  • Explain what is REST and RESTFUL?
  • How can you handle errors in Web API?
  • What New Features comes with ASP.NET Web API 2.0?
  • How can you restrict access methods to specific HTTP verbs in Web API?
  • How can you pass multiple complex types in Web API?
  • Write a code for passing ArrayList in Web API?
  • Name the tools or API for developing or testing web api?
  • What is REST?
  • How to unit test Web API?
  • How can we restrict access to methods with specific HTTP verbs in Web API?
  • What is the usage of DelegatingHandler?
  • How can we register exception filter from the action?
  • code snippet to show how we can return 404 errors from HttpError?
  • Explain code snippet to register exception filters from controller?
  • Web API supports which protocol?
  • Which of the following .NET framework supports Web API?
  • Web API uses which library for JSON serialization?
  • Explain method to handle error using HttpError in Web API?
  • What is the benefit of WebAPI over WCF?
  • State differences between MVC and WebAPI
  • Who can consume WebAPI?
  • How can we make sure that Web API returns JSON data only?
  • What are the most common types of formatters used
  • What is a media type formatter in the context of Web API?
  • What is content negotiation?
  • Ensure certain members are not serialized in the response?
  • What is the use for custom message handlers?
  • How do we create a custom message handler
  • Where do we register our customer message handlers?
  • Different ways to host WebAPI
  • Need updates from the WebAPI to reach the client continously?
  • Fundamental Difference wrt hosting between ASP.Net MVC and Web API?
  • Difference in content negotiation is between ASP.Net MVC and WebAPI.
  • what is the latest version of asp.net web api
  • What HTTP verbs do the Web API CRUD operations map to?
  • Which http requests support caching?
  • What is CORS and does Web API 2.1 support CORS?
  • What is OWIN in the context of WebAPI?
  • conventional based routing vs attribute routing in web api?
  • Does Asp.Net web API support SOAP protocol?






Data Structures

Let's discuss some important aspects of Data Structures, algorithms and concepts.

  • Data Structures: Linked Lists, Binary Trees, Tries, Stacks, Queues, Vectors / ArrayLists, Hash Tables
  • Algorithms: Breadth First Search, Depth First Search, Binary Search, Merge Sort, Quick Sort
  • Concepts: Bit Manipulation, Singleton Design Pattern, Factory Design Pattern, Memory (Stack vs Heap), Recursion, Big-O Time




Architecture - Interview Questions With Answers