Archives for Interview Tips
Interview: Write Palindrome Program
This is the most common program which will be asked for a fresher to the programming world. Following are some of the steps to achieve a Palindrome program algorithm Read…
Understanding Persistence Ignorance Principle
Before understanding what is Persistence Ignorance principle, we need to understand the difference between DTO and POCO. As a programmer we should know about DTOs represent as Data Transfer Objects…
BasicHttpBinding vs WsHttpBinding vs WebHttpBinding in WCF
webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is…
Mention what is CSDL, SSDL and MSL sections in an EDMX file?
In an entity framework, the EDM(.edmx) contains three main components. Conceptual Model(CSDL : Conceptual Schema Definition Language) The conceptual model contains the model classes and their relationships. This will be independent of…
When does Application_Start() and Application_End() Used?
These two methods will declare in file as shown below public class WebApiApplication : { protected void Application_Start() { //Any Initializations of resources before calling any functionality } protected void…
Different ways to rendering a Partial View in ASP.NET MVC
A partial view is like as user control in Web forms that is used for code re-usability. Partial views helps us to reduce code duplication. Below are four methods for rendering a…
Deferred vs Immediate Query Execution In LINQ
Deffered Query Execution: In .NET when you write a LINQ query it actually performs the querying only when the LINQ result is accessed. This phenomenon of LINQ is called deferred…
How to secure your entire MVC application with “Authorize” attribute ?
Scenario: If you would like to secure your admin pages, you would add “Authorize” attribute for all your admin controllers. However, you might get a situation like; you need to…
Find given number is Palindrome Number or Not ?
What is Palindrome Number? A Palindrome number or numeral palindrome is a number that remains the same when its digits are reversed ( 11,121, 1331,12321). using System; namespace PalindromeNumber {…
Find given number is Prime or Not? Using Recursion & Non Recursion Methods.
What is Prime Number ? A number that is divisible only by itself and 1 ( 2, 3, 5, 7, 11). using System; using ; using ; using ; using…