i
TCS
Filter interviews by
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Java program to print sum of digits from a given string
Iterate through each character in the string
Check if the character is a digit using Character.isDigit() method
Convert the digit character to integer using Character.getNumericValue() method
Sum up all the digits found in the string
OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.
Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...
Polymorphism is the ability of a single function or method to operate on different types of data.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example of compile-time polymorphism: function overloading in Java.
Example of runtime polymorphism: method overriding in Java
Java program to print the sum of elements in a string array.
Convert each element in the string array to an integer using Integer.parseInt()
Sum up all the integers to get the total sum
I was interviewed in Sep 2024.
I chose TCS for its global presence, reputation for innovation, and opportunities for growth.
TCS is a global leader in IT services with a strong reputation for innovation and quality.
I am attracted to TCS's focus on continuous learning and development, which aligns with my career goals.
TCS offers diverse opportunities for growth and career advancement, which is important to me.
I believe my skills in automation testing ...
I can join within 2 weeks of receiving an offer.
I have a 2-week notice period at my current job.
I need time to wrap up my current projects before starting a new role.
I am excited about the opportunity and eager to join the team.
I can start sooner if necessary, depending on the circumstances.
Locators are used in automation testing to identify web elements on a webpage. Common types include ID, class name, name, xpath, and CSS selector.
ID: Unique identifier for an element
Class name: Name of the class attribute of an element
Name: Name attribute of an element
XPath: Path of the element in the HTML structure
CSS selector: Selector based on CSS attributes
An interface in programming defines a contract for classes to implement, specifying methods and properties that must be included.
Interfaces in programming are used to define a set of methods that a class must implement.
They provide a way to achieve abstraction and multiple inheritance in languages that do not support it.
Interfaces are like blueprints for classes, ensuring consistency and standardization in code.
Example...
Abstract class is a class that cannot be instantiated and may contain abstract methods.
Cannot be instantiated directly
May contain abstract methods that must be implemented by subclasses
Can have both abstract and non-abstract methods
Used for defining a common interface for subclasses
Absolute xpath starts from the root node, while relative xpath starts from any node in the DOM.
Absolute xpath starts with a single forward slash (/) and is more brittle as any changes in the DOM structure can break the xpath.
Relative xpath starts with a double forward slash (//) and is more flexible as it can start from any node in the DOM.
Absolute xpath is longer and less readable compared to relative xpath.
Example: A...
Different exceptions in automation testing
Common exceptions include NoSuchElementException, TimeoutException, StaleElementReferenceException
Handle exceptions using try-catch blocks to gracefully handle errors
Custom exceptions can be created for specific scenarios
Exceptions can be logged for debugging purposes
What people are saying about TCS
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.
Java program on arrays to manipulate array of strings
Declare an array of strings
Initialize the array with values
Access and manipulate elements in the array
TCS interview questions for designations
Get interview-ready with Top TCS Interview Questions
Implemented a robust automation framework to handle dynamic web elements and data-driven testing.
Developed custom functions to handle dynamic element identification using XPath and CSS selectors.
Implemented data-driven testing using Excel sheets to easily update test data.
Resolved issues with handling pop-up windows and alerts during test execution.
Optimized test scripts for faster execution by implementing parallel te...
I applied via Walk-in and was interviewed in Jul 2024. There were 3 interview rounds.
Scenario based questions, string operation programs
I applied via Walk-in and was interviewed in Sep 2024. There was 1 interview round.
4 Interview rounds
based on 257 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.6k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.3k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.9k
salaries
| ₹2.2 L/yr - ₹5.6 L/yr |
Associate Consultant
28.9k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture