Friday, 31 July 2015

Top ASP.Net interview questions Top ASP.Net interview questions, ASP.Net interview questions & Answers, ASP Dot Net interview questions & Answers, ASP.Net interview questions & Answers :



 ASP.Net interview questions & Answers, Dot Net interview questions & Answers, ASP.Net interview questions & Answers : 

  1. What is difference between static class and singleton pattern
    1. http://www.dotnetperls.com/singleton-static
  2. What is difference between interface and abstract class in which situation you will use interface and abstract class
    1. http://www.codeproject.com/Articles/258173/Interfaces-Vs-Abstract-Classes
    2. http://kirillosenkov.blogspot.co.uk/2007/08/choosing-interface-vs-abstract-class.html
  3. What is application domain
    1. http://msdn.microsoft.com/en-us/library/2bh4z9hs(v=vs.80).aspx
  4. Type of isolation in .net
    1. http://msdn.microsoft.com/en-us/library/eh5d60e1(v=vs.80).aspx
  5. What is difference between normal web service and wcf service
    1. http://www.codeproject.com/Articles/139787/What-s-the-Difference-between-WCF-and-Web-Services
  6. What are transaction in wcf
    1. http://www.codeproject.com/Articles/38793/6-Steps-to-Enable-Transactions-in-WCF
    2. http://msdn.microsoft.com/en-us/library/ff384250.aspx
    • |Attribute the Interface method with [TransactionFlow(TransactionFlowOption.Allowed)] or Mandatory | Attribute the implementation with [OperationBehavior(TransactionScopeRequired = true)] |   Enable transactions in Service Config File  | Update the endpoint with the binding name bindingConfiguration="TransactionalBind" | use TransactionScope object to run multiple transactions 
  7. What is difference between const and read only
    1. http://geekswithblogs.net/BlackRabbitCoder/archive/2010/07/01/c-fundamentals---what-is-the-difference-between-const-and.aspx
    • Const has to be initialized on declaration. Readonly can be initialized only once.
  8. What is generic
    1. http://www.csharp-station.com/Tutorials/lesson20.aspx
    2. http://msdn.microsoft.com/en-in/library/0x6a29h6(v=vs.80).aspx
  9. What is difference between overloading and overriding
  10. What is ABC in wcf
    1. http://msdn.microsoft.com/en-us/library/aa480190.aspx
    2. http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/abc-of-an-endpoint-in-wcf/
    3. http://www.codeproject.com/Articles/406096/A-beginners-tutorial-for-understanding-Windows
  11. What is use of GC
    1. http://www.simple-talk.com/dotnet/.net-framework/understanding-garbage-collection-in-.net/
    2. http://www.codeproject.com/Articles/39246/NET-Best-Practice-No-2-Improve-garbage-collector
  12. What is use of using keyword? can we dispose custom class using keyword if yes then explain
    1. http://msdn.microsoft.com/en-us/library/yh598w02.aspx
    2. http://stackoverflow.com/questions/3544758/idisposable-vs-using-keyword
  13. What is delegate and events
    1. http://www.akadia.com/services/dotnet_delegates_and_events.html
    2. http://www.dotnetfunda.com/articles/article904-6-important-uses-of-delegates-and-events.aspx
    3. http://www.codeproject.com/Articles/4773/Events-and-Delegates-Simplified
    4. http://www.csharp-station.com/tutorials/lesson14.aspx
  14. Difference b/w ref and out parameter
    1. http://stackoverflow.com/questions/135234/difference-between-ref-and-out-parameters-in-net
    2. http://www.dotnetfunda.com/articles/article1134-difference-between-ref-and-out-parameter.aspx
    3. http://www.dotnetfunda.com/forums/thread3303-difference-between-ref-and-out-parameters-in-csharp.aspx
  15. What are latest feature in .Net 4.0
    1. http://msdn.microsoft.com/en-us/library/vstudio/ms171868(v=vs.100).aspx
    2. http://www.simple-talk.com/dotnet/asp.net/asp.net-4.0-features/
    3. http://www.c-sharpcorner.com/uploadfile/john_charles/new-features-of-Asp-Net-4/
    4. for 4.5 : http://msdn.microsoft.com/en-us/library/ms171868.aspx
  16. Can we call web service using jquery if yes then explain the parameter for that
    1. http://www.codeproject.com/Articles/66432/Consuming-Webservice-using-JQuery-ASP-NET-Applicat
  17. what is Ajax in .net framework
    1. http://msdn.microsoft.com/en-us/library/bb398874(v=vs.100).aspx
    2. http://www.asp.net/ajaxlibrary/act.ashx
  18. what is dynamic object
    1. http://msdn.microsoft.com/en-us/library/ee461504.aspx
    2. http://blogs.msdn.com/b/csharpfaq/archive/2009/10/19/dynamic-in-c-4-0-creating-wrappers-with-dynamicobject.aspx
    3. http://geekswithblogs.net/sdorman/archive/2008/11/16/c-4.0-dynamic-programming.aspx
    4. http://msdn.microsoft.com/en-us/library/system.dynamic.dynamicobject.aspx
  19. what is session and type of session (explain)
    1. http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net
    2. http://msdn.microsoft.com/en-us/library/ms178586(v=vs.80).aspx
  20. if cookies disable then session will work or not
    1. http://stackoverflow.com/questions/1401325/where-is-session-stored-if-cookie-is-disabled-on-clients-machine-what-is-actua
    2. http://msdn.microsoft.com/en-us/library/aa479314.aspx
  21. what is view state & difference between control state and view state

  22. can we hack view state in which format view state save on client side
  23. What is caching. caching done client side or server side
  24. what is difference b/w authentication and authorization
  25. explain life cycle of request from client side to server side
  26. What are binding in wcf?
  27. What is service and data contract in wcf
    1. http://www.dotnet-tricks.com/Tutorial/wcf/3ISW280913-Understanding-different-types-of-WCF-Contracts.html
  28. What is transaction in wcf
  29. What is fault contract in wcf
  30. If session is enable in wcf which binding support wcf service?
  31. What are session type in wcf
  32. How we can send value to base class from drive class?
  33. What is index in c#
  34. What is difference b/w Union and distinct
  35. What is index in sql? difference b/w cluster index and non cluster index
  36. What is ACID in sql
  37. How many time of isolation in sql? which one you will use
  38. Difference between sp and function
  39. Type of function in sql
  40. What is view in sql what is the use of view
  41. What is magic table
  42. What does mean by #table and ##table
  43. How you will get max row from table
  44. Difference between primary and unique key
  45. What are trigger in sql
  46. Difference between cursor and while loop
  47. How stack & queue & heap works.
  48. What is managed & unmanaged code?
  49. How frequently GC runs?
  50. Explain the mechanism of Stack & heap.
  51. What are indexes and What is the difference between clustered and nonclustered indexes
  52. How to implement Primary Key without Clustered index.
  53. Extension methods in c#.
  54. SQL : Write a query to find the fifth highest salary 
    1. http://stackoverflow.com/questions/358542/how-to-find-fifth-highest-salary-in-a-single-query-in-sql-server 
  55. What is a take operator
    1. http://www.hookedonlinq.com/TakeOperator.ashx
  56. Explain the ASP.Net page life cycle in depth
    1. http://www.tutorialspoint.com/asp.net/asp.net_life_cycle.htm
    2. http://www.codeproject.com/Articles/121096/Web-Server-and-ASP-NET-Application-Life-Cycle-in-D
  57. How do you implement httpHandlers and HTTPModules 
    1. http://www.codeproject.com/Articles/335968/Implementing-HTTPHandler-and-HTTPModule-in-ASP-NET
  58. Delegates, Anonymous methods and Lambda expressions
    1. http://codebetter.com/karlseguin/2008/11/27/back-to-basics-delegates-anonymous-methods-and-lambda-expressions/
    2. http://www.codeproject.com/Articles/47887/C-Delegates-Anonymous-Methods-and-Lambda-Expressio
  59. OOPS concept
    1. http://msdn.microsoft.com/en-us/library/dd460654.aspx
  60. What are SQL scan and seek 


Tuesday, 5 May 2015

Javascript interview questions

http://www.quora.com/How-do-you-judge-a-Javascript-programmer-by-only-5-questions

diff between call and apply

call accepts parameters explicitly ... comma seperated
apply accepts array of parameter

call : comma
apply : array

theFunction.apply(param1, ["test1", "test2"]);
theFunction.call(param1, "test1", "test2");


javascript : map and reduce

The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single value.

[0, 1, 2, 3, 4].reduce(function(previousValue, currentValue, index, array) {
  return previousValue + currentValue;
});

The map() method creates a new array with the results of calling a provided function on every element in this array.

var numbers = [1, 4, 9];
var roots = numbers.map(Math.sqrt);
// roots is now [1, 2, 3], numbers is still [1, 4, 9]


Wednesday, 15 April 2015

.Net Training Topics

.Net Training Topics :
.Net framework



Source control :
Star team
VSS / TFS

 

Tuesday, 18 February 2014

.Net WCF interview questions and answers

  1. When should i use message security versus transport security in WCF
    1. http://msdn.microsoft.com/en-us/library/ff648863.aspx
    2. http://msdn.microsoft.com/en-us/library/vstudio/ms733137%28v=vs.100%29.aspx
  2. When should i use resource-bases authorization versus roles bases authorization in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647503.aspx
  3. When should i impresonate the original caller in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650591.aspx
    2. http://blogs.msdn.com/b/irenak/archive/2009/12/02/sysk-373-how-to-impersonate-the-original-caller-when-calling-the-wcf-service-in-asp-net-by-configuration-only.aspx
  4. How do i migrate to WCF service from a ASMX webservice
    1. http://www.codeproject.com/Articles/312490/Migrating-ASMX-Services-To-WCF-services
    2. http://msdn.microsoft.com/en-us/library/ms730214%28v=vs.110%29.aspx
    3. http://msdn.microsoft.com/en-us/library/aa738697%28v=vs.110%29.aspx
  5. How do i enable logging and auditing in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
    2. http://msdn.microsoft.com/en-us/library/ms734737%28v=vs.110%29.aspx
  6. How do i stop my service if there has been an auditing failure in WCF
    1. http://msdn.microsoft.com/en-us/library/ff650832.aspx
  7. How do i authenticate against active directory  in WCF
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/18dcfcc7-28db-4bb4-8cf9-af2dbe3fddbe/wcf-service-and-active-directory-authenticationautorization-through-internet
    2. http://forums.asp.net/t/1680469.aspx
  8. How do i authenticate against SQL Store in WCF
    1. http://msdn.microsoft.com/en-us/library/ff647294.aspx
  9. How do i send credentials in the message when i an using transport security  in WCF
    1.  http://msdn.microsoft.com/en-us/library/ms789011%28v=vs.110%29.aspx
  10. How do i avoid clear text password  in WCF?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20avoid%20cleartext%20passwords?
  11. How do i use the windows token role provider for ASP.Net role authorization in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff649821.aspx#Authorization5
  12. How do i encrypt sensitive data in the WCF configuration file.
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20encrypt%20sensitive%20data%20in%20WCF%20configuration%20file?
  13. How do i run the WCF service with a particular identity ?
    1.  http://msdn.microsoft.com/en-us/library/ff650534.aspx#ConfigurationManagement2
  14. When should i use a service principal name (SPN)  in WCF ?
    1.  http://social.msdn.microsoft.com/Forums/vstudio/en-US/6b8862f8-39bd-4af5-8616-4abab369da87/wcf-userprincipalname-and-serviceprincipalname-confusion?forum=wcf
  15. How do i configure a least privileged account for my WCF service ?
    1.  http://wcfsecurity.codeplex.com/wikipage?title=How%20do%20I%20configure%20a%20least%20privileged%20account%20to%20host%20my%20service?
  16. Should i validate before or after message serialization  in WCF ?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation4
  17. How do i protect my service from malformed messages  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ff647141.aspx#InputDataValidation7
  18. When should i use a channel factory  in WCF?
    1.  http://msdn.microsoft.com/en-us/library/ms734681%28v=vs.110%29.aspx
    2. http://msdn.microsoft.com/en-us/library/ms576132%28v=vs.110%29.aspx
  19. What is REST in WCF ? how do we implement REST service in WCF ?
    1. http://msdn.microsoft.com/en-us/magazine/dd315413.aspx
  20. WCF poison message, WCF Dead letter
    1. http://www.michaelfcollins3.me/blog/2012/09/20/wcf-msmq-bad-message-handling.html
  21. Method overloading in WCF
    1. http://www.codeproject.com/Tips/656042/Method-Overloading-in-WCF
  22. dynamic and var
    runtime polymorph.
    viewbag
    jquery selectors
    2 default delegates
    flag enums
     

Sunday, 16 February 2014

ASP.Net MVC interview questions

 ASP.Net MVC interview questions

  1.  Explain MVC process to handle request using MHPM events
    1. http://myfrequentlyasked.blogspot.com/2011/08/process-request-using-mhpm-events-fired.html
    2. http://www.codeproject.com/Articles/73728/ASP-NET-Application-and-Page-Life-Cycle
  2. Explain the MVC ASP.Net flow to process the request
    1. http://msdn.microsoft.com/en-us/library/dd381612%28v=vs.100%29.aspx
  3. Explain the page life cycle of an ASP.Net MVC page
    1. http://stackoverflow.com/questions/17953756/mvc4-and-page-life-cycle
    2. http://stackoverflow.com/questions/460145/what-is-the-page-lifecycle-of-an-asp-net-mvc-page-compared-to-asp-net-webform
    3. http://www.dotnet-tricks.com/Tutorial/mvc/TbR0041112-Asp.net-MVC-Request-Life-Cycle.html
  4. Explain the function of URL routing system in the ASP.Net MVC
    1. http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx
    2. http://careerride.com/view.aspx?id=2185
  5. When I type return view() how does it know which view to return ?
  6. Explain how to access viewstate value of this page in next page.
  7. Is it possible to combine ASP.net webpages and MVC application and make a single application ?
    1. http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
  8. How can you share a view across multiple controllers ?
    1. Put the view in shared folder.
  9. Name different return types of a controller action method 
    1. http://msdn.microsoft.com/en-us/library/dd410269%28v=vs.100%29.aspx
    2. http://careerride.com/view.aspx?id=3840
  10. How route table is created in ASP.Net MVC
    1. http://www.asp.net/mvc/tutorials/older-versions/controllers-and-routing/asp-net-mvc-routing-overview-cs
    2. http://msdn.microsoft.com/en-us/library/cc668201.aspx
  11. What are the 3 segments of default route that are present in an ASP.Net MVC application ?
  12. What is the difference between adding routes to a ASP.Net webform application and an MVC application ?



http://www.dotnet-tricks.com/Tutorial/mvc/4XDc110313-return-View%28%29-vs-return-RedirectToAction%28%29-vs-return-Redirect%28%29-vs-return-RedirectToRoute%28%29.html