Skip to main content

Posts

Showing posts with the label dotnet questions

Fixing Multiple If-Else problem with Chain of Responsibility Pattern

  Situation will become unmanageable if we have lot of if else condition in our code, Lets understand problem and then we will see it’s Solution. Problem with Multiple If Conditions Using multiple if-else conditions to handle different cases can lead to code that is hard to read, maintain, and extend. Here’s a simple example using multiple if conditions in a leave management system. We will implement below Business Logic for Leave management system a. IF Leave < = 3, then Team Lead will approve b. IF Leave < =5, then Project Manager will approve c. IF Leave > 5, then HR Manager will approve Request first go to team lead to check if Request can be handled by  Team lead  else it will go to  Project Manager  else request will go to  HR manager Example with Multiple If Conditions public class LeaveRequest { public string EmployeeName { get ; set ; } public int NumberOfDays { get ; set ; } public string Reason { get ; set ; } } publi...

ITC Infotech - .Net Full Stack 14 Year Exp Interview Questions - Jan 2025

  I am sharing interview details those I encountered few days back. Photo by  Walls.io  on  Unsplash Basic Details. a.  Company URL  :  ITC Infotech — Business Solutions | Technology & IT Services b.  Headcount - approx. 17000 c.  Parent Company : ITC LTD (BSE / NSE Listed) d.  Location : Gurugram (India) — Work from Office 3 days in week e.  Salary offered : 35 Lac per annum f.  Expected period to join : 45 days max f.  Position : .NET Full stack Lead. Now days I found most of IT companies are going with online interviews. Here they are using dedicated platforms those are helpful in managing and assuring integrity of candidates during online interview. Integrity is very important because, nowadays, the concept of proxy support for interviews is flourishing. In this practice, the candidate only needs to appear online, while someone else speaks on their behalf. Since interviews are conducted online, it becomes very diff...