i
TCS
Filter interviews by
Value cannot be passed in a disabled text box.
Check if there is any other way to pass the value, such as through a different input field.
If not, enable the text box temporarily, pass the value, and then disable it again.
Alternatively, check if there is any JavaScript code that can be used to pass the value.
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are contracts that define a set of methods that a class must implement.
Abstract classes can have constructors while interfaces cannot
A class can implement multiple interfaces but can only inherit from one abstract class
Abstract classes can have instance variables while interfaces cannot
Interface...
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
It separates the test code from the page-specific code.
It improves code maintainability and reduces code duplication.
It allows for easy modification of UI elements without affecting the test code.
It enhances test script readability and reduces the effort required to create new test scripts.
It is widely ...
XPath and CSS selectors are both used to locate elements on a web page, but they have different syntax and capabilities.
XPath uses a path expression to navigate through the HTML structure, while CSS selectors use a pattern matching approach.
XPath can select elements based on their attributes, text content, and position in the document, while CSS selectors are limited to attributes and tag names.
XPath has a wider r...
What people are saying about TCS
V-model is a software development model that emphasizes testing at every stage of the development process.
It is a sequential development process
Each stage has a corresponding testing stage
Testing is done at every stage to ensure quality
It is a highly structured and disciplined approach
It is often used in safety-critical industries such as aerospace and defense
Test data can be passed in testNG using DataProvider annotation.
Create a method that returns a two-dimensional array of test data
Annotate the test method with @DataProvider and specify the name of the data provider method
Pass the test data as parameters to the test method
To select values in Dropdowns, click on the dropdown menu and choose the desired option from the list.
Click on the dropdown menu to open the list of options
Scroll or use arrow keys to navigate through the options
Click on the desired option to select it
Some dropdowns may have a search bar to filter options
Screenshots can be taken in Selenium using the TakesScreenshot interface.
Create an object of the TakesScreenshot interface
Call the getScreenshotAs() method on the driver object
Save the screenshot to a desired location using the File class
IFrames/Window handles can be handled using switchTo() method in Selenium
Use driver.switchTo().frame() method to switch to an IFrame
Use driver.switchTo().defaultContent() method to switch back to the main page
Use driver.getWindowHandles() method to get all window handles
Use driver.switchTo().window() method to switch to a new window
Assert checks if a condition is true and stops the test if it's false. Verify checks if a condition is true and continues the test if it's false.
Assert is used to validate the expected result of a test case.
Verify is used to validate the actual result of a test case.
Assert stops the test execution if the condition is false.
Verify continues the test execution if the condition is false.
Assert is used for critical te...
I applied via Naukri.com and was interviewed in Dec 2021. There were 3 interview rounds.
Implicit and Explicit waits are used in Selenium to wait for elements to load before performing actions.
Implicit wait waits for a specified amount of time before throwing an exception if the element is not found.
Explicit wait waits for a specific condition to be met before proceeding with the next step.
Syntax for implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Syntax for explicit wait: We...
Screenshots can be taken in Selenium using the TakesScreenshot interface.
Create an object of the TakesScreenshot interface
Call the getScreenshotAs() method on the driver object
Save the screenshot to a desired location using the File class
To select values in Dropdowns, click on the dropdown menu and choose the desired option from the list.
Click on the dropdown menu to open the list of options
Scroll or use arrow keys to navigate through the options
Click on the desired option to select it
Some dropdowns may have a search bar to filter options
XPath and CSS selectors are both used to locate elements on a web page, but they have different syntax and capabilities.
XPath uses a path expression to navigate through the HTML structure, while CSS selectors use a pattern matching approach.
XPath can select elements based on their attributes, text content, and position in the document, while CSS selectors are limited to attributes and tag names.
XPath has a wider range ...
Locators in Selenium are used to identify web elements on a web page.
Locators can be based on ID, class name, name, tag name, link text, partial link text, CSS selector, or XPath.
Using the right locator strategy is important for reliable test automation.
Examples of locators: driver.findElement(By.id("elementId")), driver.findElement(By.className("className")), driver.findElement(By.xpath("//tagName[@attribute='value']"...
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are contracts that define a set of methods that a class must implement.
Abstract classes can have constructors while interfaces cannot
A class can implement multiple interfaces but can only inherit from one abstract class
Abstract classes can have instance variables while interfaces cannot
Interfaces can...
Page Object Model is a design pattern used in test automation to create an object repository for web UI elements.
It separates the test code from the page-specific code.
It improves code maintainability and reduces code duplication.
It allows for easy modification of UI elements without affecting the test code.
It enhances test script readability and reduces the effort required to create new test scripts.
It is widely used ...
Annotations in TestNG are used to provide additional information to the test methods and control the test execution flow.
Annotations are used to mark a method as a test method, configuration method, or to specify the order of execution.
TestNG provides several built-in annotations such as @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, etc.
Annotations can also be used to group tests, enable/disable tests, and...
Test data can be passed in testNG using DataProvider annotation.
Create a method that returns a two-dimensional array of test data
Annotate the test method with @DataProvider and specify the name of the data provider method
Pass the test data as parameters to the test method
V-model is a software development model that emphasizes testing at every stage of the development process.
It is a sequential development process
Each stage has a corresponding testing stage
Testing is done at every stage to ensure quality
It is a highly structured and disciplined approach
It is often used in safety-critical industries such as aerospace and defense
Assert checks if a condition is true and stops the test if it's false. Verify checks if a condition is true and continues the test if it's false.
Assert is used to validate the expected result of a test case.
Verify is used to validate the actual result of a test case.
Assert stops the test execution if the condition is false.
Verify continues the test execution if the condition is false.
Assert is used for critical test ca...
Exceptions while running scripts
Syntax errors
Runtime errors
Logical errors
Timeout errors
Memory errors
IFrames/Window handles can be handled using switchTo() method in Selenium
Use driver.switchTo().frame() method to switch to an IFrame
Use driver.switchTo().defaultContent() method to switch back to the main page
Use driver.getWindowHandles() method to get all window handles
Use driver.switchTo().window() method to switch to a new window
Value cannot be passed in a disabled text box.
Check if there is any other way to pass the value, such as through a different input field.
If not, enable the text box temporarily, pass the value, and then disable it again.
Alternatively, check if there is any JavaScript code that can be used to pass the value.
I applied via LinkedIn and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Company Website and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Amcat and was interviewed before Jul 2021. There were 2 interview rounds.
Refer R S Agarwal book for apptitude
A C program to perform arithmetic operations on fractional numbers.
Use float or double data type to store fractional numbers.
Use scanf() to take input from the user.
Perform arithmetic operations like addition, subtraction, multiplication, and division.
Use printf() to display the result.
What people are saying about TCS
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 3 interview rounds.
1.It covers all aptitude topics, and English sentences
2.Essay writing
3.Coding
I applied via Naukri.com and was interviewed before Mar 2021. There were 3 interview rounds.
I come from a supportive family that values education and hard work, which has greatly influenced my career path in technology.
Parents: My parents are both educators, instilling a love for learning and curiosity in me from a young age.
Siblings: I have a younger sister who is pursuing a degree in computer science, and we often collaborate on tech projects together.
Family Values: Our family emphasizes the importance of p...
I bring a unique blend of technical skills, problem-solving abilities, and a passion for innovation that aligns with your team's goals.
Strong technical skills: Proficient in languages like Python and Java, demonstrated by developing a web application that improved user engagement by 30%.
Problem-solving mindset: Successfully resolved a critical bug in a production system under tight deadlines, ensuring minimal downtime.
...
I expect a competitive salary based on my skills, experience, and industry standards, ideally in the range of $X to $Y.
Research industry standards: For example, Glassdoor or Payscale can provide insights into average salaries for similar roles.
Consider your experience: If you have 5 years of experience, you might expect a higher salary than someone just starting.
Factor in location: Salaries can vary significantly based...
I excel in problem-solving and teamwork, but I sometimes struggle with time management under tight deadlines.
Strength: Strong problem-solving skills - I enjoy tackling complex coding challenges, like optimizing algorithms for better performance.
Strength: Effective teamwork - I thrive in collaborative environments, having successfully led a project with cross-functional teams.
Weakness: Time management - I occasionally u...
Yes, I have technical certifications and I am proficient in multiple programming languages and development tools.
I have certifications in Java and Python
I am proficient in Java, Python, C++, and JavaScript
I have used development tools such as Eclipse, Visual Studio Code, and PyCharm
I applied via Company Website and was interviewed before Jan 2021. There were 2 interview rounds.
I applied via Job Portal and was interviewed before Dec 2019. There was 1 interview round.
based on 17 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
65.6k
salaries
| ₹7.7 L/yr - ₹12.6 L/yr |
AST Consultant
53.4k
salaries
| ₹12 L/yr - ₹20.5 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.6 L/yr - ₹6.4 L/yr |
Associate Consultant
32.8k
salaries
| ₹16.2 L/yr - ₹28 L/yr |
Amazon
Wipro
Infosys
Accenture