Dec 4, 2023NUnit Interviewer Questions and ChatGPT AnswersWhen using nunit for unit testing with asp.net MVC application, how to prevent calling of base class controller constructor? In NUnit, unit tests are typically designed to isolate and test specific units of code independently. When dealing with ASP.NET MVC controllers, you may want to avoid calling the base class…Unittest9 min readUnittest9 min read
Jul 5, 2023Reverse String LogicLanguage C# using System; public class HelloWorld { public static void Main(string[] args) { Console.WriteLine ("Code for reversing a string"); Console.WriteLine (new Test().ReverseString("Software is not so soft")); } public class Test { public string ReverseString(string input) { string returnstr = ""; //computed value string currentstr = ""; int inputlen = input.Length; Console.WriteLine (inputlen); if (inputlen == 0) { return ""; } while (inputlen > 0) { // logic 1 currentstr = input[inputlen-1].ToString(); //logic 2 // input.Substring(inputlen-1,1); //reading string from right side returnstr = returnstr + currentstr; Console.WriteLine (returnstr); inputlen--; } return returnstr; } } }Algorithms1 min readAlgorithms1 min read
Jun 23, 2023Json Schema for ValidationClick on below link for detailed article - JSON Schema A conversational AI system that listens, learns, and challengeschat.openai.comJson1 min readJson1 min read
May 20, 2023MediatR Design Pattern Implementation Steps with CQRSPlatform : Dotnet Core WebapiC Sharp Programming1 min readC Sharp Programming1 min read
Apr 7, 2023C# Async Await Interviewer Questions : ChatGPT AnswersList c# normal method and async method differences when awaiting database call ?Threads17 min readThreads17 min read
Mar 17, 2023Azure Function App Interviewer Questions : ChatGPT AnswersWhat is durable function in azure ? Azure Durable Functions is an extension of Azure Functions that allows developers to write stateful serverless functions in a simpler and more efficient way. Durable Functions makes it easier to build complex workflows, such as those found in long-running business processes, IoT telemetry processing, and human workflow automation. With Durable…Azure30 min readAzure30 min read
Mar 14, 2023C# (General) Interviewer Questions : ChatGPT AnswersWhere we can use volatile keyword in c#? Is it thread safe ? If yes, then internally how it is implemented ? In C#, the volatile keyword is used to indicate that a variable should be accessed directly from memory, rather than cached in a CPU register, and that it may be accessed by multiple threads simultaneously. …Csharp41 min readCsharp41 min read
Mar 11, 2023K8s and AKS Interviewer Questions : ChatGPT AnswersIn AKS (azure kubernets service), what’s the relationship and order between cluster, node, pod and container ? In AKS (Azure Kubernetes Service), the relationship and order between cluster, node, pod, and container is as follows: Cluster: A cluster in AKS is a set of nodes that are managed by Kubernetes. …Azure Kubernetes Service34 min readAzure Kubernetes Service34 min read
Mar 10, 2023LINQ C# Interviewer Questions : ChatGPT AnswersLinq in C# combination of which programming terms ? 3 / 3 LINQ (Language-Integrated Query) in C# is a combination of several programming concepts and features, including: Functional programming: LINQ makes use of functional programming concepts such as lambda expressions, anonymous methods, and higher-order functions to enable developers to write queries in a declarative style. Querying: LINQ provides a…Linq33 min readLinq33 min read
Mar 6, 2023Azure Load Balancing Interview Questions : ChatGPT AnswersAzure Load Balancer and Azure Api Gateway are same ? No, Azure Load Balancer and Azure API Gateway are not the same. Azure Load Balancer is a Layer 4 (Transport Layer) load balancer that distributes incoming traffic across multiple virtual machines (VMs) or instances in a backend pool. It can help improve application availability, scalability, and performance by distributing traffic…Load Balancing14 min readLoad Balancing14 min read