Premium Employer

Infosys

3.6
based on 40.4k Reviews
Filter interviews by

TCS Interview Questions and Answers

Updated 22 Nov 2024
Popular Designations

Q1. What is the difference between C++and java ? Which one do you think better and why?

Ans.

C++ is a compiled language while Java is an interpreted language. Both have their own advantages and disadvantages.

  • C++ is faster and more efficient than Java due to its compiled nature.

  • Java is more platform-independent and has better memory management.

  • C++ is commonly used for system-level programming while Java is used for web and mobile applications.

  • Choosing between the two depends on the specific project requirements and goals.

View 8 more answers

Q2. What is the most popular SDLC model?

Ans.

The most popular SDLC model is Agile.

  • Agile is iterative and flexible, allowing for changes throughout the development process.

  • It emphasizes collaboration and customer satisfaction.

  • Other popular models include Waterfall, Spiral, and V-Model.

  • Agile is commonly used in software development, but can be applied to other industries as well.

View 1 answer

Q3. entity framework details and show recorded details

Ans.

Entity Framework is an ORM tool for .NET applications. It allows developers to work with databases using objects.

  • Entity Framework is a Microsoft product

  • It supports various database providers such as SQL Server, MySQL, Oracle, etc.

  • It uses LINQ to query data from the database

  • It supports Code First, Database First, and Model First approaches

  • Recorded details can be viewed using SQL Profiler or logging frameworks like Serilog

Add your answer

Q4. 1. Defiance between first and First or defulat

Ans.

Defiance refers to resistance or disobedience, while first and default are different spellings of words with distinct meanings.

  • Defiance implies a refusal to comply with authority or rules.

  • First refers to the initial or primary thing in a sequence or list.

  • Default refers to a pre-set value or option that is used when no other choice is made.

  • Examples: Defiance - civil disobedience, First - first place in a race, Default - default font in a word processor.

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

Q5. Defrance between Var and dynamic

Ans.

Var is statically typed while dynamic is dynamically typed.

  • Var is used to declare variables with a specific type at compile time.

  • Dynamic is used to declare variables whose type is determined at runtime.

  • Var is faster than dynamic because it doesn't require type checking at runtime.

  • Dynamic is more flexible than var because it allows for late binding and duck typing.

  • Example: var x = 5; dynamic y = "hello";

Add your answer

Q6. WHAT IS C and C++?

Ans.

C and C++ are programming languages used for system and application development.

  • C is a procedural language used for system programming and embedded systems.

  • C++ is an object-oriented language used for application development and game programming.

  • Both languages are compiled and have a strong influence on modern programming languages.

  • C++ is an extension of C with additional features like classes, templates, and exceptions.

  • Examples of C and C++ applications include operating syst...read more

Add your answer

Q7. Why CPP is better

Ans.

CPP is better due to its performance, memory management, and object-oriented features.

  • CPP is faster than many other programming languages due to its compiled nature.

  • CPP allows for manual memory management, which can lead to more efficient use of resources.

  • CPP supports object-oriented programming, which can make code more modular and easier to maintain.

  • CPP has a large community and many libraries available, making it a versatile language for various applications.

Add your answer

Q8. Explain Object in programming

Ans.

Objects in programming are instances of classes that encapsulate data and behavior.

  • Objects are created from classes, which act as blueprints for the object's structure and behavior

  • Objects have attributes (data) and methods (behavior) that define their characteristics and actions

  • Objects allow for modular and reusable code by grouping related data and functions together

Add your answer

Q9. circuit breaker design pattern

Ans.

Circuit breaker design pattern is used to prevent a system from repeatedly trying to execute an operation that is likely to fail.

  • Circuit breaker monitors the number of failures and trips when a threshold is reached.

  • It can be reset after a certain period of time to check if the operation is successful again.

  • Helps in improving system stability and resilience by handling failures gracefully.

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

Interview Process at TCS

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

Top Developer Interview Questions from Similar Companies

3.7
 • 30 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