Add office photos
Employer?
Claim Account for FREE

Capgemini Engineering

3.5
based on 2.1k Reviews
Filter interviews by

TCS Interview Questions and Answers

Updated 13 Sep 2024
Popular Designations

Q1. Single linked list operations ( adding and deleting a node)

Ans.

Single linked list operations involve adding and deleting nodes in a linear data structure.

  • To add a node, create a new node and set its next pointer to the current head, then set the head to the new node.

  • To delete a node, traverse the list until the node to be deleted is found, then set the previous node's next pointer to the node after the one being deleted.

  • Be careful to handle edge cases such as adding to an empty list or deleting the head node.

Add your answer

Q2. Explain about the different layers in OSI model.

Ans.

The OSI model has 7 layers that define how data is transmitted over a network.

  • Layer 1: Physical layer - deals with the physical aspects of transmitting data

  • Layer 2: Data link layer - responsible for error-free transfer of data between nodes

  • Layer 3: Network layer - manages the routing of data between nodes

  • Layer 4: Transport layer - ensures reliable delivery of data between applications

  • Layer 5: Session layer - establishes and manages connections between applications

  • Layer 6: Pre...read more

Add your answer

Q3. Programs on string operations

Ans.

String operations programs manipulate and modify strings.

  • Use built-in string functions like substring, replace, and split.

  • Implement algorithms like string reversal, palindrome check, and string compression.

  • Regular expressions can also be used for advanced string operations.

  • Examples: reversing a string, counting occurrences of a substring, converting a string to title case.

Add your answer

Q4. Binary search with an example

Ans.

Binary search is a search algorithm that finds the position of a target value within a sorted array.

  • Divide the array into two halves

  • Compare the target value with the middle element

  • If the target value matches the middle element, return its position

  • If the target value is less than the middle element, search the left half

  • If the target value is greater than the middle element, search the right half

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

Q5. Resources type vs traits in raml

Ans.

Resources type defines the structure of the data while traits define reusable properties and behaviors.

  • Resources type specifies the structure of the data that can be accessed through the API endpoints.

  • Traits define reusable properties and behaviors that can be applied to multiple resources or methods.

  • Resources type is used to define the data model, while traits are used to define common functionalities like authentication, logging, etc.

Add your answer

Q6. Authentication vs authorization

Ans.

Authentication verifies the identity of a user, while authorization determines what actions the user is allowed to perform.

  • Authentication confirms the identity of a user through credentials like passwords or biometrics.

  • Authorization controls access to resources based on the authenticated user's permissions.

  • Example: Logging into a system with a username and password is authentication, while being able to view certain files based on user roles is authorization.

Add your answer

Q7. What is cloudhub 2.0

Ans.

CloudHub 2.0 is a cloud-based integration platform that allows organizations to connect applications, data, and devices across multiple environments.

  • CloudHub 2.0 offers enhanced scalability and performance compared to its predecessor.

  • It provides a centralized platform for managing integrations, APIs, and data flows.

  • Organizations can use CloudHub 2.0 to streamline their business processes and improve efficiency.

  • Examples of features include real-time monitoring, automated workf...read more

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

Interview Process at TCS

based on 10 interviews in the last 1 year
2 Interview rounds
Aptitude Test Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Analyst Interview Questions from Similar Companies

3.6
 • 79 Interview Questions
3.7
 • 48 Interview Questions
3.4
 • 39 Interview Questions
3.3
 • 30 Interview Questions
3.0
 • 17 Interview Questions
3.5
 • 12 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