i
Globant
Filter interviews by
I applied via Company Website and was interviewed in Sep 2022. There were 2 interview rounds.
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Different ways to inject services in .NET
Constructor Injection: Services are injected through a class constructor
Property Injection: Services are injected through public properties
Method Injection: Services are injected as method parameters
Service Locator Pattern: Services are accessed through a central registry
DI Containers: Frameworks like Autofac, Unity, or Ninject manage service injection
JWT authentication in Web API involves generating a token with user credentials and validating it on subsequent requests.
JWT stands for JSON Web Token, which is a compact and self-contained way for securely transmitting information between parties as a JSON object.
In Web API, a JWT token is generated upon successful authentication and is sent to the client.
The client includes the JWT token in the Authorization header o...
Custom middleware in .NET allows for custom logic to be executed before or after an HTTP request is processed.
Create a class that implements the IMiddleware interface
Override the InvokeAsync method to add custom logic
Register the middleware in the Startup class using the UseMiddleware extension method
posted on 8 Jun 2024
I applied via Walk-in and was interviewed in May 2024. There was 1 interview round.
Single returns the only element of a sequence, or a default value if the sequence is empty. First returns the first element of a sequence, or a default value if the sequence contains no elements.
Single throws an exception if the sequence contains more than one element, while First does not.
Single is useful when you expect only one element in the sequence, while First is used when you just need the first element.
Example...
ref is used for passing a variable by reference, out is used for returning a value from a method
ref keyword is used to pass a variable by reference, allowing the method to modify the variable
out keyword is used to return a value from a method, the variable passed must be assigned a value within the method
ref parameters must be initialized before passing to the method, out parameters do not need to be initialized
I applied via Company Website and was interviewed in Oct 2021. There was 1 interview round.
DI in .Net Core allows for loosely coupled and testable code.
Add services to the DI container in Startup.cs
Inject dependencies into classes using constructor injection
Use built-in DI or third-party libraries like Autofac
Configure lifetime of services with AddScoped, AddTransient, or AddSingleton
To call DI in controller, inject the required service in the constructor of the controller.
Add required service in ConfigureServices method of Startup.cs
Inject the service in the constructor of the controller
Use the service in the controller methods
Validation in MVC
Use data annotations for server-side validation
Use jQuery validation for client-side validation
Customize validation messages using ErrorMessage property
Use ModelState.IsValid to check if validation passed
Use ModelState.AddModelError to add validation errors
WebAPI is a framework for building HTTP services that can be consumed by a broad range of clients.
Create a new WebAPI project in Visual Studio
Define API endpoints using HTTP verbs (GET, POST, PUT, DELETE)
Use attribute routing to map URLs to actions
Return data in JSON format
Secure the API using authentication and authorization
Clustered indexes determine physical order of data, non-clustered indexes are separate structures.
Clustered indexes sort and store data rows in the table based on their key values.
Non-clustered indexes have a separate structure that includes the indexed columns and a pointer to the data row.
Tables can have only one clustered index, but multiple non-clustered indexes.
Clustered indexes are faster for retrieving large amo...
Query optimization in SQL
Use indexes to speed up queries
Avoid using SELECT *
Use JOINs instead of subqueries
Avoid using functions in WHERE clauses
Use EXPLAIN to analyze query performance
Transactions in SQL ensure data consistency and integrity during multiple operations.
Transactions group multiple SQL statements into a single unit of work.
They ensure that all statements are executed or none are executed.
They provide data consistency and integrity during multiple operations.
Transactions can be started with BEGIN TRANSACTION and committed with COMMIT or rolled back with ROLLBACK.
They are useful in situa...
Inner join returns only matching records while outer join returns all records from both tables.
Inner join is used to retrieve records that have matching values in both tables.
Outer join is used to retrieve all records from both tables, even if there are no matching values.
Left outer join returns all records from the left table and matching records from the right table.
Right outer join returns all records from the right
posted on 19 Oct 2024
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
Design patterns are reusable solutions to common problems in software design. DI stands for Dependency Injection, a design pattern used to inject dependencies into a class.
Design patterns are best practices for solving common software design problems.
DI is a design pattern where dependencies are injected into a class rather than created within the class.
Examples of design patterns include Singleton, Factory, and Observ...
Microservices are a software architecture design where applications are broken down into smaller, independent services that communicate with each other through APIs.
Microservices are designed to be small, focused, and independently deployable services.
Each microservice typically performs a single function or task within the application.
Microservices communicate with each other through APIs, often using lightweight prot...
Find indexes of two values in an array whose sum is 8 or a dynamic value
Iterate through the array and store the indexes of each element in a dictionary with the difference between the target sum and the element as the key
Check if the current element exists in the dictionary, if so, return the indexes of the two elements
Handle cases where the target sum is dynamic by replacing 8 with a variable
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
ORM stands for Object-Relational Mapping, a technique used to map object-oriented programming language to a relational database.
ORM helps developers to work with databases using objects instead of SQL queries
It simplifies the data access layer by automatically translating objects into database tables and vice versa
Popular ORM frameworks in C# include Entity Framework, NHibernate, and Dapper
CLR stands for Common Language Runtime, a virtual machine component of the .NET framework responsible for managing execution of .NET programs.
CLR is responsible for managing memory, handling exceptions, and enforcing security in .NET applications.
It provides services such as garbage collection, type safety, and code access security.
CLR compiles Intermediate Language (IL) code into native code during execution.
Examples
I was interviewed before Jan 2024.
Dot net core is the open-source, cross-platform version of .NET, while .NET is the traditional framework for Windows applications.
Dot net core is open-source and cross-platform, allowing for development on Windows, macOS, and Linux.
.NET is the traditional framework for Windows applications, providing a wide range of libraries and tools.
Dot net core is more lightweight and modular, making it easier to deploy and maintai...
I applied via Company Website and was interviewed in Jan 2024. There were 2 interview rounds.
I applied via LinkedIn and was interviewed in Apr 2024. There was 1 interview round.
Errors in SQL can be handled using try-catch blocks, error handling functions, and logging mechanisms.
Use try-catch blocks to catch and handle errors in SQL queries
Utilize error handling functions like @@ERROR, ERROR_MESSAGE(), and ERROR_NUMBER() to retrieve error information
Implement logging mechanisms to track and monitor errors for troubleshooting
Consider using transactions to ensure data integrity and rollback chan
based on 2 reviews
Rating in categories
Senior Software Engineer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
294
salaries
| ₹0 L/yr - ₹0 L/yr |
Automation Test Engineer
254
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
236
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Automation Test Engineer
210
salaries
| ₹0 L/yr - ₹0 L/yr |
Accenture
TCS
Infosys
Wipro