Add office photos
Engaged Employer

Capgemini

3.7
based on 43.1k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Tata Motors Interview Questions and Answers

Updated 12 Jan 2025
Popular Designations

Q1. What is the difference between IEnumerable and IQueryable?

Ans.

IEnumerable is used for in-memory collection operations, while IQueryable is used for database query operations.

  • IEnumerable is used for querying data from in-memory collections like arrays, lists, etc.

  • IQueryable is used for querying data from a database using LINQ to SQL or Entity Framework.

  • IEnumerable executes the query in-memory, while IQueryable executes the query on the database server.

  • IEnumerable is suitable for LINQ to Objects, while IQueryable is suitable for LINQ to E...read more

Add your answer

Q2. How many session can have in application ?

Ans.

The number of sessions in an application is not fixed and can vary based on the application's design and requirements.

  • The number of sessions in an application can depend on factors such as user activity, server capacity, and session management techniques.

  • For example, a simple web application may have a limited number of sessions based on the server's capacity, while a complex enterprise application may have a larger number of sessions to handle multiple users and tasks.

  • Sessio...read more

Add your answer

Q3. What is temp table in sql

Ans.

Temp table is a temporary table that is created in the memory or on the disk and is used to store data temporarily.

  • Temp table is created using the CREATE TABLE statement with the # symbol before the table name.

  • It is used to store intermediate results during complex queries or stored procedures.

  • Temp tables are automatically dropped when the session that created them ends or when the connection is closed.

  • Example: CREATE TABLE #tempTable (id INT, name VARCHAR(50))

  • Example: INSERT...read more

Add your answer

Q4. What is the repository design pattern?

Ans.

Repository design pattern is a design pattern that separates the data access logic from the business logic in an application.

  • It helps in achieving separation of concerns by isolating the data access code in a separate layer.

  • It provides a centralized way to access data from various sources such as databases, web services, etc.

  • It makes the codebase more maintainable and testable by abstracting the data access logic.

  • Example: Using a repository pattern to handle database operatio...read more

Add your answer
Discover Tata Motors interview dos and don'ts from real experiences

Q5. How Authentication works in Web api ?

Ans.

Authentication in Web API involves verifying the identity of a user or system before granting access to resources.

  • Authentication headers like Authorization header are used to send credentials

  • Web API can use various authentication methods like JWT, OAuth, Basic Authentication

  • Authentication middleware is used to validate credentials and generate tokens

  • Access control lists (ACLs) can be used to define permissions for different users

Add your answer

Q6. Explain pillars of OOP & SOLID principles

Ans.

Pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism. SOLID principles are Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion.

  • Pillars of OOP: Abstraction - hiding complex implementation details, Encapsulation - bundling data and methods together, Inheritance - creating new classes from existing ones, Polymorphism - ability to use objects of different classes interchangeably

  • SOLID principles: Single R...read more

Add your answer
Are these interview questions helpful?

Q7. SQL procedure and function difference

Ans.

SQL procedure is used to perform an action, while function returns a value.

  • Procedures can modify data, while functions cannot.

  • Functions can be used in SQL statements, while procedures cannot.

  • Functions must return a value, while procedures do not have to.

  • Example of a procedure: CREATE PROCEDURE myProcedure AS SELECT * FROM myTable;

  • Example of a function: CREATE FUNCTION myFunction() RETURNS INT AS BEGIN RETURN 5; END;

Add your answer

Q8. What is dependency injection?

Ans.

Dependency injection is a design pattern where components are given their dependencies rather than creating them internally.

  • Dependency injection helps in achieving loose coupling between classes.

  • It allows for easier testing by providing a way to mock dependencies.

  • There are three types of dependency injection - constructor injection, setter injection, and interface injection.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Explain join with example of self join.

Ans.

Join is used to combine rows from two or more tables based on a related column between them.

  • Join is used to retrieve data from multiple tables based on a related column.

  • Self join is when a table is joined with itself.

  • Example: SELECT e1.name, e2.name FROM employees e1, employees e2 WHERE e1.manager_id = e2.employee_id;

Add your answer

Q10. What is MVC ?

Ans.

MVC stands for Model-View-Controller, a software design pattern for organizing code in a web application.

  • MVC separates the application into three main components: Model (data), View (UI), and Controller (logic).

  • Model represents the data and business logic of the application.

  • View is responsible for displaying the data to the user.

  • Controller handles user input, updates the model, and selects the view to display.

  • MVC promotes code reusability, modularity, and separation of concer...read more

Add your answer

Q11. What is async-await?

Ans.

Async-await is a feature in C# that allows asynchronous programming for better performance and responsiveness.

  • Async-await allows methods to run asynchronously, improving performance by not blocking the main thread.

  • It simplifies asynchronous programming by using keywords 'async' and 'await'.

  • Example: async Task GetDataAsync() { await Task.Delay(1000); return 1; }

Add your answer

Q12. DI Concept in .net core

Ans.

DI concept in .NET Core allows for loosely coupled components by injecting dependencies at runtime.

  • DI stands for Dependency Injection

  • It helps in achieving Inversion of Control (IoC)

  • Reduces tight coupling between components

  • Improves testability and maintainability of code

  • Example: Services are injected into controllers in ASP.NET Core

Add your answer

Q13. Explain Millewares and DI ?

Ans.

Middleware is software that acts as a bridge between an operating system or database and applications, while DI (Dependency Injection) is a design pattern used to increase flexibility and maintainability of code.

  • Middleware is software that provides common services and capabilities to applications, such as authentication, logging, and routing.

  • DI is a design pattern where the dependencies of a class are injected from the outside rather than created within the class itself.

  • Middl...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Tata Motors

based on 5 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top DOT NET Developer Interview Questions from Similar Companies

4.0
 • 17 Interview Questions
5.0
 • 16 Interview Questions
3.7
 • 16 Interview Questions
3.5
 • 12 Interview Questions
3.5
 • 10 Interview Questions
3.6
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter