Posts

Showing posts from November, 2025

interview

 Capgiminin interview---Fail 1.Introduction  2.In dependency injection : scope and transient 3.Solid Principle in your project 4.write progrmme  Given two inputs:   Input 1: A list of numbers   Input 2: A target number Find all distinct pairs from the list that add up to the target number.   Example: Input 1: [8, 7, 1, 6, 5, 3, 2, 2, 4, 5] Input 2: 10   Output: 8, 2   7, 3   6, 4   5, 5 Below are clear and interview-ready answers for your next round: ✅ 2. Dependency Injection: Scoped vs Transient Transient A new instance is created every time it is requested. Best for lightweight, stateless services . Example: Utility classes, helper services, logging wrappers. services.AddTransient<IEmailService, EmailService>(); Scoped One instance per HTTP request . Shared across all components within the same request . Best for database operations , business logic tied to a single request. services.AddScoped...

Latest Youtube Inverview Question and answers

  .NET और C# में क्या अंतर है? .NET एक पूरा framework है, जिसमें दो मुख्य चीजें हैं: पहली, libraries का collection (जैसे System.Collections, System.Data), जो ready-made components हैं। दूसरी, runtime environment, जिसमें CLR, Garbage Collector, CTS, CLS होते हैं, जो आपके .NET application को run करने में मदद करते हैं। C# सिर्फ एक programming language है, जिसमें syntax (जैसे for loops, if conditions), semantics, और grammars होते हैं। C# .NET libraries को use करता है, जैसे आप List बनाते हैं तो System.Collections invoke होता है। .NET application बनाने के लिए C# और .NET दोनों जरूरी हैं। इंटरव्यू में हमेशा कहें कि .NET framework है, C# language है। .NET Framework, .NET Core, और .NET 5.0 में क्या अंतर है? .NET Framework 18 साल पुराना है, सिर्फ Windows पर चलता है, और इसमें big DLLs हैं जो performance को slow करते हैं। .NET Core cross-platform है (Linux, Mac, Windows), performance better है क्योंकि DLLs को small pieces में break किया गया है, और CLI (Command Line Interface) support देता है, ज...