Dot Net Fullstack Developer

100+ Dot Net Fullstack Developer Interview Questions and Answers

Updated 5 Jul 2025
search-icon

Q. What languages does the .NET framework support?

Ans.

The .NET framework supports multiple languages including C#, VB.NET, F#, and C++.

  • C# is the most commonly used language for .NET development

  • VB.NET is a popular choice for legacy applications

  • F# is used for functional programming

  • C++ is used for performance-critical applications

  • Other languages like IronPython and IronRuby can also be used with .NET

Q. What is caching in .NET, and what are the different types of caching available?

Ans.

Catching in .NET is a mechanism to handle exceptions that occur during program execution.

  • Catching is done using try-catch blocks.

  • Types of catching include specific exception catching, general exception catching, and re-throwing exceptions.

  • Specific exception catching is done using catch blocks that specify the type of exception to catch.

  • General exception catching is done using catch blocks that catch all exceptions.

  • Re-throwing exceptions is done using the throw keyword within ...read more

Dot Net Fullstack Developer Interview Questions and Answers for Freshers

illustration image

Q. Explain OOPs concepts and where you have used them in your previous projects.

Ans.

OOPs concepts like inheritance, encapsulation, polymorphism, and abstraction were used in my previous projects for designing modular and reusable code.

  • Inheritance: Used to create parent-child relationships between classes. For example, a base class 'Vehicle' with child classes 'Car' and 'Truck'.

  • Encapsulation: Used to hide the internal implementation details of a class and only expose necessary methods and properties. For example, private variables and public methods in a 'Use...read more

Asked in Capgemini

1d ago

Q. Given two integers as input, how can you find the difference and determine how many numbers can be divided by 3 within that difference?

Ans.

Calculate the difference between two integers and find how many numbers within that difference are divisible by 3.

  • Calculate the absolute difference between the two integers

  • Iterate through the range of numbers within the difference and check if each number is divisible by 3

  • Keep a count of numbers divisible by 3

Are these interview questions helpful?

Asked in NTT Data

6d ago

Q. How do you implement custom middleware in .net core?

Ans.

Custom middleware in .NET Core can be implemented by creating a class that implements the IMiddleware interface and adding it to the application pipeline.

  • Create a class that implements the IMiddleware interface

  • Implement the InvokeAsync method in the middleware class to handle the request processing logic

  • Add the custom middleware to the application pipeline in the Configure method of the Startup class

Asked in Deloitte

6d ago

Q. Write a react component that fetches data from an API using the fetch method, and can you explain how to structure it as a higher-order component to share that data with two different components?

Ans.

Create a higher-order component in React to fetch and share API data between components.

  • Define a higher-order component (HOC) that wraps around the target components.

  • Use the fetch API to retrieve data inside the HOC, typically in a useEffect hook.

  • Store the fetched data in the HOC's state using useState.

  • Pass the fetched data as props to the wrapped components.

  • Handle loading and error states to improve user experience.

Dot Net Fullstack Developer Jobs

Robert Bosch Engineering and Business Solutions Private Limited logo
Senior .NET Full Stack Developer - Azure 6-10 years
Robert Bosch Engineering and Business Solutions Private Limited
4.1
Bangalore / Bengaluru
Capgemini Technology Services India Limited logo
C# .Net Full Stack Developer | 4 To 6 Years | Bengaluru 4-7 years
Capgemini Technology Services India Limited
3.7
Bangalore / Bengaluru
Capgemini Technology Services India Limited logo
DotNet Fullstack developer|6 To 9 Years| Pan India 0-0 years
Capgemini Technology Services India Limited
3.7
Hyderabad / Secunderabad

Q. Explain OOPS concepts and their relation to the .NET framework.

Ans.

OOPs is a programming paradigm that uses objects to represent real-world entities. .NET framework supports OOPs concepts.

  • OOPs stands for Object-Oriented Programming.

  • .NET framework supports OOPs concepts like encapsulation, inheritance, and polymorphism.

  • In OOPs, objects are created from classes, which act as blueprints for the objects.

  • Example: In .NET, a class can be created to represent a customer with properties like name, address, and methods like placeOrder().

  • OOPs helps in...read more

Q. What is Jit? And diff types of jit?

Ans.

JIT stands for Just-In-Time compilation. It is a technique used by programming languages to improve performance.

  • JIT compiles code at runtime instead of ahead of time

  • It converts bytecode into machine code

  • There are two types of JIT: Pre-JIT and Normal JIT

  • Pre-JIT compiles the entire codebase ahead of time

  • Normal JIT compiles code as it is needed during runtime

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Capgemini

2d ago

Q. How can we invoke each method if two interfaces define the same methods?

Ans.

To invoke methods from two interfaces with same method names, use explicit interface implementation.

  • Use explicit interface implementation to differentiate between the methods from each interface.

  • Specify the interface name followed by the method name to invoke the desired method.

  • Example: InterfaceA.Method() and InterfaceB.Method() to invoke methods from InterfaceA and InterfaceB respectively.

Q. Write a simple Model-View-Controller (MVC) application to retrieve values from a database.

Ans.

Create a simple model view controller to retrieve values from a database

  • Create a model class to represent the data structure from the database

  • Create a controller to handle requests and interact with the model

  • Create a view to display the data retrieved from the database

Asked in NTT Data

1d ago

Q. How do you retrieve the 5th highest value from a SQL table?

Ans.

Use the OFFSET and FETCH clauses in SQL to get the 5th top position data.

  • Use the ORDER BY clause to sort the data in descending order.

  • Use the OFFSET clause to skip the first 4 rows.

  • Use the FETCH clause to retrieve only the next row after skipping the first 4 rows.

Asked in HCL Group

4d ago

Q. 1. What is resolvers in angular 2. Difference between canActivated and CanGuard route guards in angular 3. How to create custom decorators 4. what is use of ngOnInit 3. How to make asynchronous method to synchr...

read more
Ans.

Resolvers in Angular are used to fetch data before the component is loaded, canActivate guards control access to routes, custom decorators can be created using @Decorator syntax, ngOnInit is a lifecycle hook in Angular, asynchronous methods can be made synchronous using async/await, cancellation tokens are used to cancel asynchronous operations.

  • Resolvers in Angular are used to fetch data before the component is loaded, ensuring that the component has the necessary data when i...read more

Q. Write a query to print a word vertically.

Ans.

Use a query to print a word from horizontal to vertical

  • Use the TRANSLATE function in SQL to convert each character of the word into a separate row

  • Use a recursive CTE (Common Table Expression) to achieve the desired output

  • Consider using a loop in a programming language to iterate over each character of the word and print vertically

Asked in NTT Data

3d ago

Q. Explain Authentication & Authorization in ASP.NET Core.

Ans.

Authentication verifies the identity of a user, while authorization determines what resources a user can access.

  • Authentication confirms the identity of a user through credentials like username and password.

  • Authorization determines the permissions and access levels of a user based on their authenticated identity.

  • In ASP.NET Core, authentication is handled through middleware like Identity, OAuth, or JWT tokens.

  • Authorization in ASP.NET Core is managed through policies and roles d...read more

Asked in Capgemini

6d ago

Q. Given a string, identify the indices of all first occurrences of vowels and return the count of these indices.

Ans.

Identify first occurrences of vowels in a string and return their indices along with count.

  • Loop through the string and check if each character is a vowel (a, e, i, o, u)

  • Store the index of the first occurrence of each vowel in a separate array

  • Return the array of indices and the count of indices

Asked in Deloitte

1d ago

Q. What is the SQL query to retrieve the highest salary using the ROW_NUMBER() function?

Ans.

Use ROW_NUMBER() to rank salaries and retrieve the highest salary from a table.

  • ROW_NUMBER() assigns a unique sequential integer to rows within a partition.

  • To get the highest salary, order by salary in descending order.

  • Example SQL query: SELECT Salary FROM (SELECT Salary, ROW_NUMBER() OVER (ORDER BY Salary DESC) AS rn FROM Employees) AS ranked WHERE rn = 1.

Asked in Deloitte

2d ago

Q. Could you explain the process of creating a complete controller that incorporates a specific LINQ query to retrieve particular data related to orders?

Ans.

Creating a controller with LINQ to retrieve specific order data involves defining routes, queries, and returning results.

  • Define a controller class, e.g., 'OrdersController'.

  • Inject the DbContext to access the database.

  • Create an action method, e.g., 'GetOrdersByCustomerId'.

  • Use LINQ to query the orders, e.g., 'context.Orders.Where(o => o.CustomerId == id)'.

  • Return the results as JSON using 'Ok()' or 'NotFound()' for error handling.

Asked in Zenoti

3d ago

Q. Design a login page that sends an OTP to the user's mobile and verifies the OTP entered by the user.

Ans.

Design a login page with OTP verification sent to user's mobile.

  • Create a login page with fields for mobile number and OTP input

  • Generate and send OTP to user's mobile number upon submission of mobile number

  • Verify OTP entered by user before allowing login

  • Implement timeout for OTP validity to enhance security

Asked in NTT Data

4d ago

Q. Where are Logic App logs stored?

Ans.

Logic App logs are stored in Azure Monitor Logs (formerly known as Log Analytics).

  • Logic App logs are stored in Azure Monitor Logs, which is a centralized log storage and analytics service in Azure.

  • Logs can be viewed and analyzed using Azure Monitor Logs queries.

  • Logs can also be integrated with other Azure services for monitoring and alerting purposes.

Asked in Infosys

6d ago

Q. What is the difference between an abstract class and an interface?

Ans.

Abstract classes can have implementation; interfaces cannot. Both define contracts for derived classes.

  • An abstract class can contain both abstract methods (without implementation) and concrete methods (with implementation).

  • An interface can only contain method signatures and properties; it cannot provide any implementation.

  • A class can inherit from only one abstract class but can implement multiple interfaces.

  • Example of an abstract class: 'public abstract class Animal { public ...read more

Asked in Accenture

1d ago

Q. What is an out parameter? Please provide an example.

Ans.

Out parameter is used to pass data out of a method or function.

  • Out parameters are used when a method needs to return multiple values.

  • They are declared using the 'out' keyword in C#.

  • Example: void CalculateArea(int length, int width, out int area) { area = length * width; }

Asked in Deloitte

2d ago

Q. What are the optimization techniques related to denouncing and throttling?

Ans.

Denouncing and throttling optimize performance by controlling event handling and reducing unnecessary processing.

  • Debouncing: Ensures a function is only called after a specified delay, preventing multiple calls during rapid events. Example: Search input.

  • Throttling: Limits the number of times a function can be executed over time, ensuring it runs at regular intervals. Example: Scroll events.

  • Use cases: Debouncing is ideal for user input scenarios, while throttling is better for ...read more

3d ago

Q. What is polymorphism, What is interface, What is multithreading, Is used multiple inheritance in c#, Inheritance,oops,methods,void main(),

Ans.

Polymorphism is the ability of a single function or method to operate on different data types. Interface is a contract that defines the methods that a class must implement. Multithreading is the ability of a CPU to execute multiple threads concurrently. C# does not support multiple inheritance. Inheritance is a mechanism in OOP where a class inherits properties and behaviors from another class. Methods are functions defined within a class. void main() is the entry point of a ...read more

Asked in Capgemini

1d ago

Q. What is the role of a static constructor?

Ans.

Static constructor is used to initialize static data members of a class.

  • Executed only once when the class is first accessed

  • Cannot have any access modifiers or parameters

  • Used to initialize static variables or perform any necessary setup tasks

Q. Sql queries - create database tables dml & ddl

Ans.

SQL queries for creating database tables using DML and DDL

  • Use CREATE TABLE statement for DDL to create a new table

  • Use INSERT INTO statement for DML to insert data into the table

  • Use SELECT statement to retrieve data from the table

  • Use UPDATE statement to modify existing data in the table

  • Use DELETE statement to remove data from the table

Asked in NTT Data

6d ago

Q. Explain session management in ASP.NET Core.

Ans.

Session management in ASP.NET Core involves storing and retrieving user-specific data during a user's visit to a website.

  • Session data is stored on the server side by default in ASP.NET Core

  • Session data can be accessed and manipulated using the HttpContext.Session property

  • Session data can be configured to use different storage providers such as in-memory, distributed cache, or SQL Server

  • Session data is typically used to store user-specific information like user ID, shopping ca...read more

Q. How do microservices communicate with each other?

Ans.

Microservices communicate with each other through APIs, messaging queues, and service discovery.

  • APIs: Microservices can communicate with each other by exposing APIs that allow them to send and receive data.

  • Messaging queues: Microservices can use messaging queues like RabbitMQ or Kafka to send messages to each other asynchronously.

  • Service discovery: Microservices can use service discovery tools like Consul or Eureka to locate and communicate with other services in the network....read more

6d ago

Q. How is Authentication and Authorization handled?

Ans.

Authentication is the process of verifying the identity of a user, while authorization is the process of determining what resources a user can access.

  • Authentication can be done using various methods such as username/password, tokens, or biometrics.

  • Authorization involves assigning roles or permissions to users based on their identity.

  • Authentication and authorization are often implemented using frameworks like OAuth or JWT.

  • Examples include logging in with a username and passwor...read more

Asked in Deloitte

2d ago

Q. What are the different types of loading in C#?

Ans.

C# supports different loading types, including eager, lazy, and explicit loading, each affecting performance and resource management.

  • Eager Loading: Loads all related data upfront. Example: using Include() in Entity Framework.

  • Lazy Loading: Loads related data on demand. Example: Navigation properties in EF that load when accessed.

  • Explicit Loading: Manually loads related data. Example: using context.Entry(entity).Reference(e => e.NavigationProperty).Load();

Q. What is model binding in MVC and ASP.NET Core?

Ans.

Model binding is the process of mapping data from HTTP requests to objects in MVC and ASP.NET Core.

  • Model binding automatically maps data from HTTP requests to action method parameters or properties of a model class.

  • It simplifies the process of retrieving data from forms, query strings, route values, and JSON/XML payloads.

  • Model binding can be customized using attributes like [Bind], [FromQuery], [FromBody], etc.

  • Example: In ASP.NET Core, a POST request with form data can be aut...read more

1
2
3
4
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Deloitte Logo
3.7
 • 3k Interviews
PwC Logo
3.3
 • 1.4k Interviews
View all

Top Interview Questions for Dot Net Fullstack Developer Related Skills

interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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

Dot Net Fullstack Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits