Add office photos
Employer?
Claim Account for FREE

Ohhpro Technologies

2.9
based on 12 Reviews
Filter interviews by

TCS Interview Questions and Answers

Updated 10 Oct 2024

Q1. Write a Program to remove duplicate elements from ArrayList.

Ans.

Program to remove duplicate elements from ArrayList

  • Create a new HashSet to store unique elements

  • Iterate through the ArrayList and add elements to the HashSet

  • Convert the HashSet back to an ArrayList to remove duplicates

Add your answer

Q2. Write a Program to print Longest non repeating substring.

Ans.

Program to print Longest non repeating substring

  • Use a sliding window approach to iterate through the string

  • Keep track of the characters seen so far in a set

  • Update the start index of the substring when a repeating character is encountered

  • Calculate the length of the current substring and update the longest substring found so far

Add your answer

Q3. Create DB schema and Build RESTFul API using SpringBoot,

Ans.

Design DB schema and create RESTFul API using SpringBoot

  • Design the database schema with tables, relationships, and constraints

  • Create entity classes in Java corresponding to the database tables

  • Use Spring Data JPA to interact with the database

  • Implement RESTful endpoints using Spring Boot controllers

  • Use annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping for mapping HTTP requests to controller methods

  • Serialize and deserialize data using JSON for API communica...read more

Add your answer

Q4. Write a Java program to reverse a string.

Ans.

A Java program to reverse a string.

  • Create a char array from the input string

  • Use two pointers to swap characters from start and end of the array

  • Convert the char array back to a string and return

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

Q5. Make a calculator app with all functionality

Ans.

A calculator app with all functionality

  • Create a UI with buttons for numbers, operators, and functions

  • Implement logic to perform calculations based on user input

  • Include features like memory functions, history of calculations, and error handling

Add your answer

Q6. Creating dynamic form from given dataset

Ans.

Use the dataset to dynamically create a form.

  • Iterate through the dataset to generate form fields

  • Use React state to manage form data

  • Implement validation for form fields

  • Handle form submission to send data

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

Interview Process at TCS

based on 3 interviews
Interview experience
2.3
Poor
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 537 Interview Questions
4.1
 • 398 Interview Questions
3.8
 • 397 Interview Questions
3.9
 • 343 Interview Questions
3.6
 • 260 Interview Questions
View all
Top Ohhpro Technologies 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