Add office photos
Employer?
Claim Account for FREE

One Network Enterprises

3.9
based on 65 Reviews
Filter interviews by

TCS Interview Questions and Answers

Updated 27 Sep 2024

Q1. Override equals methods

Ans.

Overriding the equals method allows for custom comparison logic in Java classes.

  • Override the equals method in a class to provide custom comparison logic.

  • Ensure the overridden equals method follows the contract specified in the Java documentation.

  • Consider overriding the hashCode method as well when overriding equals to maintain consistency.

Add your answer

Q2. write the program to reverse a string

Ans.

Program to reverse a string using array of characters

  • Create an array of characters to store the input string

  • Iterate through the input string and store each character in the array

  • Iterate through the array in reverse order to construct the reversed string

Add your answer

Q3. diff between put and post method

Ans.

PUT is used to update or replace an existing resource, while POST is used to create a new resource.

  • PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.

  • POST is not idempotent, meaning multiple identical requests may have different effects.

  • PUT is used when the client knows the specific URI of the resource it wants to update.

  • POST is used when the server assigns a URI for the newly created resource.

Add your answer

Q4. method used in rest AP

Ans.

REST APIs typically use HTTP methods like GET, POST, PUT, DELETE to perform CRUD operations on resources.

  • GET - retrieve data from a server

  • POST - create new data on a server

  • PUT - update existing data on a server

  • DELETE - remove data from a server

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

Q5. What are Test case designed techniques ?

Ans.

Test case design techniques are methods used to create test cases for software testing.

  • Boundary Value Analysis

  • Equivalence Partitioning

  • Decision Table Testing

  • State Transition Testing

  • Use Case Testing

Add your answer

Q6. Root cause analysis techniques

Ans.

Root cause analysis techniques are used to identify the underlying cause of a problem or issue.

  • Fishbone diagram (Ishikawa diagram)

  • 5 Whys technique

  • Pareto analysis

  • Fault tree analysis

  • Failure mode and effects analysis (FMEA)

Add your answer

Q7. Reverse string java program

Ans.

Reverse a string in Java using StringBuilder or iterative approach.

  • Use StringBuilder's reverse() method to reverse the string.

  • Iterate through the string from end to start and build the reversed string.

  • Handle null or empty string cases.

  • Example: input 'hello' -> output 'olleh'

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

Interview Process at TCS

based on 15 interviews
Interview experience
4.5
Excellent
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.7
 • 2.8k Interview Questions
3.8
 • 483 Interview Questions
4.1
 • 203 Interview Questions
4.0
 • 195 Interview Questions
3.2
 • 164 Interview Questions
3.9
 • 135 Interview Questions
View all
Top One Network Enterprises Interview Questions And Answers
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

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