i
TCS
Filter interviews by
I applied via Naukri.com and was interviewed before Sep 2023. There was 1 interview round.
I was interviewed before Oct 2023.
Given a string to reverse
Print reverse numbers from 10 to 1
I chose TCS for its global presence, diverse opportunities, and strong reputation in the industry.
Global presence with offices in multiple countries
Diverse opportunities for career growth and development
Strong reputation in the industry for quality services and innovation
I applied via Approached by Company and was interviewed before Sep 2022. There were 2 interview rounds.
Using Kafka to create a pipeline with a database for real-time data processing.
Set up Kafka Connect to stream data from database to Kafka topics
Use Kafka Streams to process and analyze data in real-time
Integrate with database connectors like JDBC or Debezium
Ensure data consistency and fault tolerance in the pipeline
Sink connectors are used to connect a sink to the plumbing system, allowing for drainage of water and waste.
Sink connectors come in various sizes and materials to fit different sink and plumbing configurations.
They are typically made of PVC, stainless steel, or brass.
Proper installation of sink connectors is important to prevent leaks and ensure proper drainage.
Examples of sink connectors include P-traps, tailpieces, a
What people are saying about TCS
I applied via Referral and was interviewed before Mar 2023. There were 3 interview rounds.
My automation test framework is built using Selenium WebDriver and TestNG for web applications.
Utilizes Selenium WebDriver for interacting with web elements
Uses TestNG for test case management and reporting
Includes page object model design pattern for better code organization
Integration with CI/CD tools like Jenkins for automated test execution
Screenshots in Selenium can be taken using the getScreenshotAs method of the WebDriver interface.
Use the getScreenshotAs method of the WebDriver interface to capture the screenshot.
Save the screenshot as a file using the FileUtils class.
Handle exceptions like IOException when saving the screenshot.
TestNG profiling is a feature that allows developers to analyze the performance of their test cases and identify bottlenecks.
TestNG profiling helps in identifying slow-running test cases and optimizing them for better performance.
It provides detailed information on the execution time of each test method, helping developers prioritize optimization efforts.
Profiling can be done at the method level, class level, or suite ...
CSS selector is used to select HTML elements based on their id, class, attributes, etc. XPath is a language for navigating XML documents.
CSS selector is more commonly used for selecting elements in HTML documents.
XPath is more powerful and flexible, allowing for more complex selection of elements.
CSS selector is easier to read and write for simple selections.
XPath can traverse both upwards and downwards in the document...
String is immutable in Java to ensure security, thread safety, and optimization.
String objects are stored in the String pool, which helps in memory optimization.
Immutable strings are thread-safe, as their values cannot be changed once created.
String immutability prevents malicious code from modifying sensitive data.
Example: String str = "Hello"; str.concat(" World"); // This does not change the original string value.
Use Selenium Java code to identify broken links on a web page
Create a WebDriver instance using Selenium
Find all the links on the web page using findElements method
Iterate through each link and check for response code using HttpURLConnection class
Identify links with response code other than 200 as broken links
Code for Explicit wait in Selenium WebDriver
Import WebDriverWait and ExpectedConditions classes
Specify the maximum time to wait and the polling interval
Use ExpectedConditions methods like elementToBeClickable, visibilityOfElementLocated, etc.
Apply the wait to a specific element or condition
To automate a drop down, you can use tools like Selenium WebDriver to interact with the drop down element and select options programmatically.
Use Selenium WebDriver to locate the drop down element on the webpage
Identify the options within the drop down using findElements method
Use select class in Selenium to interact with the drop down and select desired option
TCS interview questions for designations
I applied via Recruitment Consulltant and was interviewed before Oct 2023. There were 2 interview rounds.
To find the second highest salary in a company, you need to sort the salaries in descending order and then select the second salary from the sorted list.
Sort the salaries in descending order
Select the second salary from the sorted list
Seeking new challenges and growth opportunities
Looking for a new challenge to expand my skills and knowledge
Interested in exploring different industries or sectors
Seeking better career advancement opportunities
Want to work with a more innovative or dynamic team
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed in Jun 2022. There were 2 interview rounds.
I applied via Recruitment Consulltant and was interviewed in Feb 2022. There was 1 interview round.
String memories are allocated in different places depending on the programming language and platform.
In C, string memories are allocated on the stack or heap depending on how they are declared.
In Java, string memories are allocated on the heap.
In Python, string memories are allocated on the heap and are managed by the interpreter.
In JavaScript, string memories are allocated on the heap and are managed by the garbage co
The == operator compares the reference of two String objects, while the equals() method compares their values.
The == operator checks if two String objects refer to the same memory location.
The equals() method checks if two String objects have the same sequence of characters.
Using == for String comparison can lead to unexpected results.
Example: String str1 = "hello"; String str2 = "hello"; str1 == str2 will return true ...
Code for setters and getters methods
For each instance variable, create a setter and getter method
Setters should take in a parameter and assign it to the instance variable
Getters should return the value of the instance variable
Naming convention for setters and getters should follow camelCase
TestNG allows test case execution order to be specified using priority attribute or by using dependsOnMethods attribute.
TestNG executes test cases in the order specified by priority attribute.
If priority attribute is not specified, TestNG executes test cases in alphabetical order of method names.
TestNG also allows test case execution order to be specified using dependsOnMethods attribute.
dependsOnMethods attribute spec...
The Alert class in Java provides different methods to display alerts or messages to the user.
The showMessageDialog() method displays a message dialog with an OK button.
The showConfirmDialog() method displays a confirmation dialog with Yes/No buttons.
The showOptionDialog() method displays a customized dialog with options to choose from.
The showInputDialog() method displays an input dialog to get input from the user.
The ...
4xx status codes indicate client errors in API testing.
4xx status codes are returned by the server when the client has made an error in the request.
Some common 4xx status codes include 400 Bad Request, 401 Unauthorized, 403 Forbidden, and 404 Not Found.
API testers should verify that the correct 4xx status code is returned for each type of client error.
Proper handling of 4xx status codes can improve the user experience
I applied via Naukri.com and was interviewed before May 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed before Mar 2022. There were 2 interview rounds.
Some of the top questions asked at the TCS AST Consultant interview -
The duration of TCS AST Consultant interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 107 interviews
5 Interview rounds
based on 3.5k reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.5k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹5.8 L/yr |
Associate Consultant
29.4k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture