TCS
10+ Reliance Jewels Interview Questions and Answers
Q1. Dependency Injection and how to implement that.
Dependency Injection is a design pattern where dependencies are injected into a class rather than created within the class.
Dependency Injection helps in achieving loose coupling between classes.
It allows for easier testing by enabling mocking of dependencies.
There are different ways to implement Dependency Injection such as constructor injection, property injection, and method injection.
Popular DI containers/frameworks include Unity, Ninject, and Autofac.
Q2. Configuration where do we store in application.
Configuration settings can be stored in various places such as appsettings.json, environment variables, database, or Azure Key Vault.
appsettings.json file in ASP.NET Core projects
Environment variables for sensitive data
Database for dynamic configuration
Azure Key Vault for secure storage
Q3. How we implement dependence injection ?
Dependency injection is a design pattern where objects are passed their dependencies rather than creating them internally.
Create an interface for the dependency
Implement the interface in a separate class
Pass the dependency to the class that needs it
Q4. what are the response codes in api?
Response codes in API indicate the status of a request made to the server.
200 - OK: Request was successful
400 - Bad Request: Request could not be understood by the server
404 - Not Found: Requested resource could not be found
500 - Internal Server Error: Server encountered an unexpected condition
Q5. What is Index in SQL ?
An index in SQL is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are used to quickly locate data without having to search every row in a table.
They can be created on one or more columns in a table.
Examples of indexes include primary keys, unique constraints, and non-unique indexes.
Q6. Difference between abstract class and interfaces
Abstract class can have implementation details, interfaces cannot. Classes can implement multiple interfaces but only inherit from one abstract class.
Abstract class can have method implementations, interfaces cannot.
Classes can implement multiple interfaces but can only inherit from one abstract class.
Interfaces are used to define a contract for classes to implement, while abstract classes can provide a partial implementation.
Q7. Difference between web.config and Machine.config
web.config is specific to a web application and overrides settings in Machine.config
web.config is specific to a web application, while Machine.config is at the machine level
web.config can override settings in Machine.config for a specific application
Machine.config is located in the .NET framework folder, while web.config is in the application folder
Q8. How you authenticate api
API authentication can be done using various methods like OAuth, API keys, JWT tokens, etc.
Use OAuth for secure authorization
Implement API keys for simple authentication
Utilize JWT tokens for stateless authentication
Consider using HMAC for message integrity
Q9. What is a micro service
A micro service is a small, independent, and loosely coupled service that performs a specific business function.
Micro services are designed to be small and focused on a single task or business function.
They communicate with each other through APIs.
Micro services can be independently deployed, scaled, and maintained.
Examples include user authentication service, payment processing service, and notification service.
Q10. what is an api?
An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate with each other.
APIs define the methods and data formats that applications can use to request and exchange information.
APIs can be used to access web services, databases, or other external systems.
Examples of APIs include Google Maps API for accessing map data, Twitter API for posting tweets, and PayPal API for processing payments.
Q11. Explain Solid Principles
Solid Principles are a set of five design principles for writing clean, maintainable, and scalable code.
Single Responsibility Principle (SRP) - A class should have only one reason to change.
Open/Closed Principle (OCP) - Classes should be open for extension but closed for modification.
Liskov Substitution Principle (LSP) - Objects of a superclass should be replaceable with objects of its subclasses without affecting the program's correctness.
Interface Segregation Principle (ISP...read more
Q12. Expected CTC per annum
Depends on the job role, company size, location, and benefits package.
Consider the job role and responsibilities - more senior roles typically command higher salaries.
Research the average salary for DOT NET Developers in your location.
Take into account the size and reputation of the company - larger companies may offer higher salaries.
Factor in any additional benefits such as healthcare, bonuses, or stock options.
Be prepared to negotiate based on your skills and experience.
Fo...read more
Q13. Explain D in SOLID principle
D stands for Dependency Inversion Principle in SOLID principle
High-level modules should not depend on low-level modules. Both should depend on abstractions.
Abstractions should not depend on details. Details should depend on abstractions.
Example: Instead of directly calling a database connection in a class, use an interface to abstract the database connection.
Example: Using dependency injection to inject dependencies into classes rather than creating them within the class.
Q14. Explain about state management
State management in .NET refers to the process of storing and retrieving data during the lifecycle of an application.
State management can be achieved using various techniques such as session state, view state, cookies, and query strings.
Session state allows storing user-specific data across multiple pages during a user session.
View state stores the state of the page and its controls between postbacks.
Cookies can be used to store small pieces of data on the client-side.
Query s...read more
Q15. Reverse a string
To reverse a string, iterate through the characters in the string and build a new string in reverse order.
Create a new empty string to store the reversed string
Iterate through the characters of the original string from the end to the beginning
Append each character to the new string
Return the reversed string
Q16. Routing in .net mvc
Routing in .NET MVC is the process of mapping URLs to controller actions.
Routing is defined in the RouteConfig.cs file in the App_Start folder.
Routes are defined using the MapRoute method, which takes parameters like URL pattern, default values, and constraints.
Routes are matched in the order they are defined, so the most specific routes should be placed at the top.
Route parameters are passed to controller actions as method parameters.
Attribute routing can also be used to def...read more
More about working at TCS
Interview Process at Reliance Jewels
Top DOT NET Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month