full stack .net developer
10+ full stack .net developer Interview Questions and Answers
Q1. What is OOPS, Basis of programming, Front end and back end and Database
OOPS is a programming paradigm based on objects, front-end refers to the user interface, back-end refers to server-side programming, and database is where data is stored.
OOPS stands for Object-Oriented Programming System
Front-end refers to the part of the application that the user interacts with, such as web pages or mobile apps
Back-end refers to the server-side programming that powers the application, such as APIs or databases
Database is where data is stored and retrieved, s...read more
Q2. What is Singleton design patterns and how to implement?
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Ensure a class has only one instance by providing a global access point to it
Use a private constructor to restrict instantiation of the class
Provide a static method to access the instance of the class
full stack .net developer Interview Questions and Answers for Freshers
Q3. How to send data from child to parent component
Use event emitters or callback functions to send data from child to parent component in Angular
Use @Output decorator in Angular to create custom events in child component and emit data to parent component
Pass a function as a prop from parent to child component, which child can call to send data back to parent
Use services to share data between components in Angular
Q4. What is extension method and write the code.
Extension methods allow adding new methods to existing types without modifying the original type.
Extension methods must be defined in a static class.
The first parameter of an extension method specifies the type being extended and is preceded by the 'this' keyword.
Extension methods can be called as if they were instance methods of the extended type.
Q5. What is dependency injection in Angular
Dependency injection in Angular is a design pattern where components are given their dependencies rather than creating them.
Allows for easier testing and maintenance of code
Promotes reusability and modularity
Reduces tight coupling between components
Example: Injecting a service into a component constructor
Q6. What is the use of new keywords
The new keyword is used in C# to create an instance of a class or structure.
Used to instantiate objects in C#
Can be used with constructors to initialize object properties
Helps in creating instances of classes or structures
Share interview questions and help millions of jobseekers 🌟
Q7. What is Data abstraction in Oops ?
Data abstraction in OOPs is the concept of hiding the implementation details of a class and only showing the necessary information to the outside world.
Data abstraction allows for creating abstract classes and interfaces to define the structure of a class without revealing the implementation details.
It helps in reducing complexity by only showing the essential features of an object.
By using abstract classes and interfaces, data abstraction enables code reusability and modular...read more
Q8. Difference between interface and abstract class
Interface defines only method signatures while abstract class can have method implementations.
Interface cannot have method implementations, only method signatures.
Abstract class can have method implementations and variables.
A class can implement multiple interfaces but can inherit only one abstract class.
Interfaces are used for defining contracts while abstract classes are used for code reusability.
full stack .net developer Jobs
Q9. What is pipes in Angular
Pipes in Angular are used for transforming data in templates.
Pipes are used to format data before displaying it in the view
They can be used for currency, date, uppercase/lowercase transformations, etc.
Example: {{ birthday | date:'MM/dd/yyyy' }}
Q10. What is static Method ?
A static method is a method that belongs to the class itself, rather than to instances of the class.
Static methods can be called directly on the class without needing an instance of the class.
They are commonly used for utility methods that do not require access to instance variables.
Static methods cannot access non-static members of the class.
Example: Math.Max() is a static method in the Math class that returns the larger of two numbers.
Q11. Explain about SDLC, Arrays,RDBMS
SDLC is a process followed for software development. Arrays are data structures used to store multiple values. RDBMS is a type of database management system.
SDLC stands for Software Development Life Cycle and includes phases like planning, designing, coding, testing, and maintenance.
Arrays are used to store multiple values of the same data type in a single variable. Example: int[] numbers = {1, 2, 3, 4, 5};
RDBMS stands for Relational Database Management System and is used to ...read more
Q12. Give 2 uses of using keyword
The 'using' keyword is used in C# to ensure that an object is disposed of properly after use.
Automatically disposes of resources when they are no longer needed
Simplifies code by handling cleanup tasks
Example: using (var file = new FileStream("example.txt", FileMode.Open)) { // code here }
Q13. What is collection?
A collection is a group of related objects or data items that are stored together.
Collections in .NET include List, Dictionary, Queue, Stack, etc.
Collections allow for easy manipulation and organization of data.
Example: List
names = new List ();
Q14. What is Interface?
An interface in .NET is a reference type that defines a contract for classes to implement certain methods and properties.
Interfaces contain method signatures but no implementation.
Classes can implement multiple interfaces.
Interfaces are used to achieve abstraction and multiple inheritance in C#.
Example: public interface IShape { void Draw(); }
Q15. What is overriding ?
Overriding is a concept in object-oriented programming where a subclass provides a specific implementation of a method that is already provided by its parent class.
Occurs in inheritance when a subclass provides a specific implementation for a method that is already defined in its parent class
The method in the subclass must have the same name, return type, and parameters as the method in the parent class
Allows for polymorphism, where a subclass can be treated as an instance of...read more
Q16. Life cycle hooks in angular
Life cycle hooks in Angular are functions that are called at specific points in the component's life cycle.
ngOnChanges: Called when an input property changes
ngOnInit: Called once the component is initialized
ngOnDestroy: Called before the component is destroyed
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month