Add office photos
Engaged Employer

KnowCross Solutions

3.8
based on 16 Reviews
Filter interviews by

10+ TCS Interview Questions and Answers

Updated 5 Feb 2024

Q1. what is the role of migration scripts in code first approach

Ans.

Migration scripts help in updating the database schema when changes are made to the code first model.

  • Migration scripts are used to update the database schema to match the code first model

  • They help in keeping the database schema in sync with the code first model

  • They are executed automatically when the application starts or manually using the Package Manager Console

  • They can be used to add, modify or delete database objects like tables, columns, indexes, etc.

  • They can be versione...read more

Add your answer

Q2. what is the difference between dot net and dot net core.

Ans.

Dot net is a framework for building Windows applications while Dot net core is a cross-platform framework.

  • Dot net is Windows-only while Dot net core is cross-platform

  • Dot net core is open-source while Dot net is not

  • Dot net core is modular while Dot net is monolithic

  • Dot net core has better performance and scalability

  • Dot net core supports microservices architecture

Add your answer

Q3. how do you achieve one to many relationship in sql server

Ans.

One to many relationship in SQL Server

  • Create a foreign key in the child table referencing the primary key in the parent table

  • Use JOIN to retrieve data from both tables

  • Use GROUP BY to group data by the parent table's primary key

  • Use COUNT to get the number of child records for each parent record

Add your answer

Q4. What is orm. What orm models have you worked on

Ans.

ORM stands for Object-Relational Mapping. It is a technique to map database tables to classes in object-oriented programming.

  • ORM allows developers to work with databases using object-oriented programming concepts.

  • ORM models I have worked on include Hibernate, Entity Framework, and Sequelize.

  • ORM helps to reduce the amount of boilerplate code required to interact with databases.

  • ORM provides a layer of abstraction between the application and the database, making it easier to swi...read more

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

Q5. how do you make your application scalable

Ans.

To make an application scalable, consider factors like load balancing, caching, database optimization, and horizontal scaling.

  • Use load balancers to distribute traffic evenly across multiple servers

  • Implement caching to reduce the number of requests to the server

  • Optimize database queries and indexes to improve performance

  • Use horizontal scaling to add more servers as needed

  • Design for fault tolerance and high availability

Add your answer

Q6. how is mapping done in code first

Ans.

Mapping in code first is done using attributes or fluent API to map classes to database tables.

  • Mapping can be done using attributes like [Table], [Column], [Key], etc.

  • Fluent API can be used to configure mapping in OnModelCreating method of DbContext.

  • Navigation properties can be mapped using [ForeignKey] attribute or fluent API.

  • Mapping can also be done for complex types and inheritance hierarchies.

  • Mapping can be customized using conventions or custom mapping.

  • Example: [Table("C...read more

Add your answer
Are these interview questions helpful?

Q7. what ioc containers have you 8sed

Ans.

I have used multiple IOC containers including Unity, Autofac, and Ninject.

  • I have used Unity for dependency injection in a .NET MVC project.

  • I have used Autofac for dependency injection in a .NET Core project.

  • I have used Ninject for dependency injection in a Xamarin.Forms project.

  • I have also worked with Simple Injector and Castle Windsor.

Add your answer

Q8. how is the code deployed in your project

Ans.

We use a continuous integration and deployment pipeline to automatically deploy code changes to our production environment.

  • We use Git for version control and have a separate branch for production-ready code.

  • Our CI/CD pipeline is set up using Jenkins and Docker.

  • Tests are run automatically before deployment to ensure code quality.

  • Deployment is triggered automatically when changes are pushed to the production branch.

  • We use Kubernetes for container orchestration and scaling.

  • Rollb...read more

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

Q9. what are the new features in c#

Ans.

C# 9.0 introduces new features like records, init-only setters, and top-level programs.

  • Records provide a concise syntax for defining immutable types.

  • Init-only setters allow for setting properties only during initialization.

  • Top-level programs allow for writing simple console applications without a class or Main method.

  • Improved pattern matching with logical patterns and relational patterns.

  • Function pointers and improved support for native interop.

  • New target-typed expressions an...read more

Add your answer

Q10. what is microservices architecture

Ans.

Microservices architecture is a software development approach where a single application is broken down into smaller, independent services.

  • Each service is responsible for a specific task or function

  • Services communicate with each other through APIs

  • Allows for greater flexibility, scalability, and easier maintenance

  • Examples include Netflix, Amazon, and Uber

Add your answer

Q11. how are pipelines created

Ans.

Pipelines are created by defining a series of steps to be executed in a specific order to process data or perform tasks.

  • Define the steps to be executed in a pipeline configuration file

  • Use a pipeline orchestration tool to execute the steps in the defined order

  • Each step in the pipeline can be a separate program or script

  • Data is passed between steps in the pipeline

  • Pipelines can be used for data processing, continuous integration/continuous deployment, and more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.7
 • 86 Interview Questions
3.7
 • 33 Interview Questions
4.2
 • 22 Interview Questions
3.9
 • 20 Interview Questions
4.6
 • 14 Interview Questions
4.0
 • 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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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