i
TCS
Filter interviews by
I applied via Company Website and was interviewed in Jun 2024. There were 2 interview rounds.
Yes, constructors are non-static methods used to initialize objects of a class.
Constructors are special methods used to initialize objects of a class.
They are non-static, meaning they are called on an instance of the class.
Constructors have the same name as the class and do not have a return type.
Example: public class Test { public Test() { // constructor code } }
To get elements from a drop down, I use Selenium WebDriver's Select class
Use Select class from Selenium WebDriver to interact with drop down elements
Identify the drop down element using its locator
Instantiate a Select object with the drop down element
Use Select object's methods like selectByVisibleText(), selectByValue(), selectByIndex() to choose an option
Select is a class in Selenium WebDriver.
Select is used for handling dropdowns in Selenium WebDriver.
It provides methods to select options by visible text, value, or index.
Example: Select dropdown = new Select(driver.findElement(By.id("dropdown")));
Example: dropdown.selectByVisibleText("Option 1");
To read data from Excel, use libraries like Apache POI or Openpyxl in Python.
Use libraries like Apache POI or Openpyxl in Python to read data from Excel files
Identify the Excel file and specify the sheet and cell from which to read data
Use appropriate methods provided by the library to extract data from the specified cell or range
I have used various types of test automation frameworks including data-driven, keyword-driven, and behavior-driven frameworks.
Data-driven framework: Used to separate test data from test scripts, allowing for easier maintenance and scalability. Example: TestNG with Excel or CSV files.
Keyword-driven framework: Utilizes keywords to represent actions or operations, making test scripts more readable and reusable. Example: R...
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size data structure in Java, while ArrayList is a dynamic-size data structure.
Arrays can hold primitive data types and objects, while ArrayList can only hold objects.
Arrays require a specified size during initialization, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaratio...
Array list stores elements in contiguous memory locations, while linked list stores elements in nodes with pointers to the next node.
Array list allows random access to elements based on index, while linked list requires traversal from the beginning to access elements.
Insertions and deletions are faster in linked list as it only requires updating pointers, while in array list it may require shifting elements.
Array list ...
Challenges in automation include complex test scenarios, maintenance of scripts, and compatibility issues.
Complex test scenarios require thorough planning and execution.
Maintenance of scripts is essential to keep them up-to-date with application changes.
Compatibility issues arise when automation tools do not support all technologies used in the application.
Different types of exceptions include checked, unchecked, runtime, and custom exceptions.
Checked exceptions are checked at compile time and must be handled using try-catch or throws keyword.
Unchecked exceptions are not checked at compile time and can be handled using try-catch or left unhandled.
Runtime exceptions are unchecked exceptions that occur at runtime, such as NullPointerException or ArrayIndexOutOfBoundsExcept...
I use a combination of tools such as Jira, TestRail, and Excel for reporting.
Jira for tracking bugs and issues
TestRail for test case management and execution results
Excel for creating customized reports and data analysis
Assert is used to validate the expected result while verify is used to check the actual result without stopping the execution.
Assert is used to validate the expected result and if the assertion fails, the test is marked as failed and stops execution.
Verify is used to check the actual result against the expected result but does not stop the execution even if the verification fails.
Assert is commonly used for critical ch...
Pushing code to GitHub involves using Git commands to add, commit, and push changes to a remote repository.
Use 'git add .' to stage all changes
Use 'git commit -m 'Your commit message here'' to commit changes
Use 'git push origin master' to push changes to the master branch on GitHub
I applied via Recruitment Consulltant and was interviewed in Aug 2024. There was 1 interview round.
Types of waits include implicit, explicit, and fluent waits in test automation.
Implicit wait: Wait for a certain amount of time before throwing an exception.
Explicit wait: Wait for a certain condition to be met before proceeding.
Fluent wait: Wait for a condition with a defined maximum wait time and polling frequency.
ArrayList is a resizable array implementation, LinkedList is a doubly linked list implementation.
ArrayList uses a dynamic array to store elements, LinkedList uses nodes with pointers to store elements.
ArrayList provides fast random access, LinkedList provides fast insertion and deletion.
Example: ArrayList
Selenium 4 features include improved relative locators, new grid architecture, and better support for Chrome DevTools Protocol.
Improved relative locators for more flexible element locating
New grid architecture for better scalability and performance
Better support for Chrome DevTools Protocol for enhanced debugging capabilities
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
Java code to find second largest string in an array of strings
Create an array of strings
Sort the array in descending order based on string length
Return the second element in the sorted array
Use window handles to switch to child window, extract text, and input in another child window
Use getWindowHandles() to get all window handles
Switch to child window using switchTo().window() method
Extract text from the first child window
Switch to another child window and input the extracted text
What people are saying about TCS
TCS interview questions for designations
I applied via Naukri.com and was interviewed in Feb 2022. There were 4 interview rounds.
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed in Aug 2021. There were 3 interview rounds.
A work load model is a representation of the expected workload on a system or application.
It helps in identifying the resources required to handle the expected workload.
It can be used to simulate different scenarios and identify potential bottlenecks.
It can also help in capacity planning and optimization.
Examples include the number of users accessing a website, the amount of data processed by an application, or the fre
A rendezvous point is a synchronization point where two or more processes or threads meet to exchange information.
It is used in distributed systems to ensure that all processes start at the same time.
It is also used in load testing to simulate multiple users accessing a system simultaneously.
Examples include message queues, semaphores, and sockets.
It helps to avoid race conditions and deadlocks.
Spike testing is a type of performance testing that involves testing the system's ability to handle sudden and extreme spikes in traffic or load.
It is used to identify the breaking point of the system
It involves simulating sudden and extreme spikes in traffic or load
It helps in identifying performance bottlenecks and scalability issues
Examples include sudden increase in user traffic, sudden increase in database queries
Population option in Neo load is used to simulate realistic user behavior by generating virtual users based on real-world user data.
Population option allows for creating virtual users based on real-world user data
It helps in simulating realistic user behavior and load on the application
It can be used to generate virtual users based on demographics, location, behavior, etc.
This option is useful for load testing applicat...
A garbage dump is a place where waste materials are disposed of.
It is a site where garbage is collected and stored.
It can be a landfill or an incinerator.
It can cause environmental pollution and health hazards.
Recycling and proper waste management can reduce the need for garbage dumps.
I was interviewed before Sep 2020.
Round duration - 140 minutes
Round difficulty - Medium
Test timing was at 2:00 pm , it was conducted in a college and the environment was good for the test. Camera was a primary part of test, so no suspicious activity.
Given two numbers in the form of two arrays where each element of the array represents a digit, calculate the sum of these two numbers and return this sum as an ar...
Given two numbers represented as arrays, calculate their sum and return the result as an array.
Iterate through the arrays from right to left, adding digits and carrying over if necessary
Handle cases where one array is longer than the other by considering the remaining digits
Ensure the final sum array does not have any leading zeros
Round duration - 20 minutes
Round difficulty - Easy
The round was conducted at around 12 p.m. I was called at the college location and then it was conducted. The interviewer was quite polite and frank.
Round duration - 8 minutes
Round difficulty - Easy
This round was conducted right after finishing and clearing the technical round at the same place and on the same day.
Tip 1 : Practice atleast 2-3 Coding problems daily so your logic building becomes stronger.
Tip 2 : Exercise problems based on OOPS concepts and others too.
Tip 3 : If you can have your own project built, then it's the major point and will act as a plus point.
Tip 1 : Your resume should be in standard form, short and simple will be more effective.
Tip 2 : Whatever you have learned, you need to mention it in your resume as that will be your primary source of selection and having project on your resume is important.
I applied via Campus Placement and was interviewed before Jan 2020. There were 4 interview rounds.
I applied via Campus Placement and was interviewed before Feb 2020. There were 4 interview rounds.
based on 4 interviews
1 Interview rounds
based on 53 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹0 L/yr - ₹0 L/yr |
IT Analyst
66.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
AST Consultant
51.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
29.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Amazon
Wipro
Infosys
Accenture