Friday, February 23, 2018

.Net Interview Questions for Experienced Developer

Hi everyone, writing after so long time, previously i wrote about how we can send email through SQL server and currency converter, you can find these article in my blog. So in this article i am going to provide some section wise interview questions for a ".Net Developer" specific to web applications. These questions helped me lot for cracking out various interviews. I tried catch each and every section, if you want to add please comment down. I took help from one of my friend Amol, to prepare these question so i want to thanks him :-) .

So here are some sections

Basic + Project related Questions:
  1. Self introduction - Don't go too much personal rather talk about your experience.
  2. Project Structure 
  3. Role and Responsibility
  4. Mention any challenge you faced while development and you feel proud after resolving.


Topics :

So below are topics in which interviewer is going to ask you questions, in my future article i will provide topic wise questions

  1. OOP's Concepts c#   
  2. ASP.Net
  3. MVC
  4. SQL Server
  5. Web API 
  6. ADO .Net  
  7. Entity Framework
  8. Jquery
  9. MVC Full flow 
  10. IIS
  11. ASP.Net page life cycle

Mostly Asked Questions:

  1. IOC
  2. Design Patterns
  3. Dependency Injection 
  4. Repository Pattern
  5. Generic Collections
  6. page directives
  7. Output Caching
  8. difference between cache,cookie and session
  9. Shadowing
  10. Reflection
  11. Indexer in c#
  12. Tracing in c#
  13. Scrum
  14. Unit testing
  15. Namespaces in model,controller,View
  16. DataSet DataReader difference
  17. How to access stored procedures in Entity framework
  18. Manifest
  19. Assembly
  20. Locking in sql
  21. Optimistic,Pacemistic,Row versioning (concurrency in database)
  22. Azure and Cloud
  23. How do short-circuited operators work
  24. What does the "volatile" keyword in C# mean
  25. difference between "ref" or "out" parameter
  26. StringBuilder class c#
  27. What's a weakreference? When would you want to use one?
  28. What does the "readonly" keyword in C# mean?
  29. Different deployment environments
  30. Difference between  http handler,http module
  31. Web Api - routing, controllers, action results, filter, model binders, IOC container or pecy injection
  32. Lazy loading and eager loading in EF
  33. MVC Application life cycle
  34. Render partial and partial difference
  35. state management in MVC
  36. difference between var and dynamic
  37. return type of peek
  38. difference between keep and peek
  39. difference between IEnumerable and IQuerable
  40. difference between viewdata and viewbag
  41. difference between Hashtable and Dictionary
  42. how to implement forms authentication 
  43. What are filters in MVC and their types
  44. What is remote validation in ASP.net
  45. How to create your own custom filter
  46. Which is faster viewdata or viewbag
  47. which is faster for or foreach
  48. What is difference between .cshtml and .html file
  49. http error code list
  50. Namespace for data annotation
  51. Kendo grid syntax
  52. Kendo Dropdown syntax
  53. where does .html and .cshtml file render
  54. Web Api - Handler mapping
  55. Difference between cookie and cache
  56. What is difference between kendo and teleriK
  57. Repository Patterns
  58. Can we create a Nuget package?
  59. How to reflect new changes to the already deployed catch js file.
  60. What is extension methods?
  61. How to use protected internal modifier?
  62. Can we add a new method to an external dll file's class.
  63. Difference between contant and readonly keyword?
  64. Difference between obtrusive and unobtrusive javascript

Tricky Questions:

  1. Write your own linked list class without using the built-in classes.
  2. Write your own hashtable class without using the built-in classes.
  3. Write a class that represents a binary tree. Write a method that traverses all nodes of the  tree.
  4. Write a method to perform a binary search on an array without using built-in methods.
  5. 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.
  6.  (Event handlers) Create a class with a custom event handler, create another class which hooks onto the custom event handler.
  7. (XML) Load an XML document and select all of the nodes with properties x, y, and z.
  8. (Functional programming) Create a function that accepts another function as a parameter. A Map or Fold function works really good for this.
  9. (Reflection) Write a function which determines if a class has a particular attribute.
  10. (Regex) Write a regular expression which removes all tags from a block of HTML.
  11. What is the difference between a thread and a process?
  12. What is the difference between an EXE and a DLL?
  13. What is strong-typing versus weak-typing?
  14. When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
  15. What is an Asssembly Qualified Name? Is it a filename? How is it different?
  16. How is a strongly-named assembly different from one that isn’t strongly-named?
  17. What does this do? sn -t foo.dll
  18. How does the generational garbage collector in the .NET CLR manage object lifetime? What is non-deterministic finalization?
  19. What is the difference between Finalize() and Dispose()? (external article)
  20. What is the difference between in-proc and out-of-proc? What technology enables out-of-proc communication in .NET?
  21. What is FullTrust? Do GAC’ed assemblies have FullTrust?
  22. What is the difference between Debug.Write and Trace.Write? When should each be used?
  23. What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
  24. What is the difference between: catch (Exception e) {throw e;} and catch (Exception e) {throw;} ?
  25. What is the difference between typeof(foo) and myFoo.GetType()?
  26. What is the purpose of XML Namespaces?
  27. What is the difference between an XML "Fragment" and an XML "Document"? (XML Basics)
  28. How would you validate XML using .NET?
  29. What is the OO relationship between an ASPX page and its CS/VB code behind file?
  30. How would one implement ASP.NET HTML output caching, caching outgoing versions of pages generated via all values of q= except where q=5 (as in http://localhost/page.aspx?q=5)?
  31. What are HttpHandlers?
  32. What are HttpModules?
  33. What is needed to configure a new extension for use in ASP.NET? For example, what if I wanted my system to serve ASPX files with a *.jsp extension?
  34. How do cookies work? What is an example of Cookie abuse?
  35. What kind of data is passed via HTTP Headers?
  36. How does IIS communicate at runtime with ASP.NET? Where is ASP.NET at runtime in the different versions         of IIS (5 to 7)?
  37. What is the difference between .empty(), .remove() and .detach() methods in jQuery?
  38. What is the difference between event.PreventDefault and event.stopPropagation?
  39. What is the difference between event.PreventDefault and "return false"?


You can enhance your knowledge more, by reading the following articles.

www.dotnetcurry.com/dotnetinterview/70/dotnet-interview-questions-answers-beginners
stackoverflow.com/questions/365489/questions-every-good-net-developer-should-be-able-to-answer
www.codeproject.com/Articles/635324/Another-set-of-ASP-NET-MVC-tips
www.slideshare.net/abhi2434/aspnet-page-life-cycle?from_action=save
dotnetfreakblog.wordpress.com/2013/10/07/single-responsibility-principle/
www.codeproject.com/Articles/556995/ASP-NET-MVC-interview-questions-with-answers
www.codeproject.com/Articles/4773/Events-and-Delegates-Simplified
www.interviewquestionspdf.com/2015/02/aspnet-webconfig-related-interview.html
www.c-sharpcorner.com/UploadFile/manas1/introduction-to-Asp-Net-webapi-and-returns-result-in-differe/