Clarion Technologies
ABB Interview Questions and Answers
Q1. what is filter? How to add custom filter? How to configure middleware?
Filters are used to manipulate incoming and outgoing requests. Custom filters can be added and middleware can be configured to handle them.
Filters are used to modify or validate incoming and outgoing requests in ASP.NET Core.
Custom filters can be added by creating a class that implements IFilterMetadata interface.
Middleware can be configured to handle filters using the UseFilter extension method.
Filters can be used for authentication, caching, logging, and more.
Filters can be...read more
Q2. What is globalization? How to support multiple languages in application?
Globalization is the process of designing and developing applications that can be used in multiple languages and cultures.
Use resource files to store text in different languages
Use Unicode encoding to support different character sets
Use culture-specific formatting for dates, times, and numbers
Test the application with different languages and cultures to ensure proper functionality
Q3. How to create automated jobs in application?
Automated jobs can be created using scheduling tools or by writing custom code to run at specific intervals.
Use scheduling tools like Windows Task Scheduler or Cron to run jobs at specific intervals
Write custom code using libraries like Quartz.NET or Hangfire to schedule and run jobs
Jobs can perform tasks like data backups, sending emails, or running reports
Q4. How to use transaction in EF Core?
EF Core supports transactions using the DbContext class.
Create a new instance of DbContextTransaction using BeginTransaction method of DbContext.
Perform database operations within the transaction using SaveChanges method of DbContext.
Commit the transaction using Commit method of DbContextTransaction or rollback using Rollback method.
Example: using (var transaction = context.Database.BeginTransaction()) { ... }
Q5. How to handle exception in JavaScript?
Use try-catch block to handle exceptions in JavaScript.
Wrap the code that may throw an exception inside a try block.
Catch the exception using catch block and handle it appropriately.
Use finally block to execute code that should run regardless of whether an exception was thrown or not.
Throw custom exceptions using throw keyword.
Use console.log() to log the error message for debugging purposes.
Q6. What is Layout? what is Area?
Layout defines the structure of a web page while Area is a way to organize related functionality in an ASP.NET MVC application.
Layout specifies the position of elements on a web page.
Area is a logical grouping of controllers, views, and models in an MVC application.
Layout can be shared across multiple pages while Area is specific to a particular section of the application.
Layout can be defined using HTML, CSS, and JavaScript while Area is defined using the ASP.NET MVC framewo...read more
Interview Process at ABB
Top DOT NET Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month