i
TCS
Filter interviews by
findElement is used to locate a single element on a web page, while findElements is used to locate multiple elements.
findElement returns the first matching element on the page, while findElements returns a list of all matching elements.
findElement throws NoSuchElementException if no element is found, while findElements returns an empty list.
findElement is used when you expect only one element to be present, while findE...
Java program to find the largest number in an array of strings
Convert each string element in the array to an integer using Integer.parseInt()
Initialize a variable to store the largest number and compare each element to update it
Return the largest number found in the array
I applied via Approached by Company and was interviewed in Feb 2022. There were 2 interview rounds.
Java programming with questions on Java, selenium and API TESTING
What people are saying about TCS
posted on 25 Aug 2024
I applied via Walk-in and was interviewed in Jul 2024. There was 1 interview round.
Swap pair of characters in each string of an array of strings.
Iterate through each string in the array
For each string, swap pairs of characters by iterating through the string with a step of 2
Return the modified array of strings
Find duplicate characters in a set of strings.
Iterate through each string in the array.
For each string, iterate through each character and store them in a hashmap with their frequency.
Identify characters with frequency greater than 1 as duplicates.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Asked some questions on selenium, sql query and java programming
I applied via Naukri.com and was interviewed in Nov 2023. There was 1 interview round.
1) continue - skips the current iteration and continues with the next iteration in a loop. break - exits the loop immediately. 2) Maven is a build automation tool used primarily for Java projects. 3) Extent Report is a reporting library for Selenium test automation.
continue statement is used to skip the current iteration and continue with the next iteration in a loop
break statement is used to exit the loop immediately
M...
posted on 6 Apr 2024
The second non-repetitive character is to be found in a given array of strings.
Iterate through each character in the strings and count their occurrences
Identify the characters that occur only once
Return the second non-repetitive character
Interview experience
based on 4 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.4k
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
29k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture