Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
The output of the code will be 'animal is created' followed by 'Dog is created'.
The code defines a class Animal with a constructor that prints 'animal is created'.
It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.
In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.
The output will be 'HelloThere'
Concatenation of 'Hello' and 'There' results in 'HelloThere'
The final string is printed using System.out.println()
The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.
StringBuffer is mutable, so the original 'Hello' string can be modified
The append() method adds the specified string to the end of the buffer
The final output will be 'HelloThere'
Option a is valid, option b is valid, option c is invalid.
Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.
Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.
Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ
Sort input array of strings in descending order without using inbuilt functions
Iterate through the array and compare each element with the rest to find the largest element
Swap the largest element with the first element, then repeat the process for the remaining elements
Continue this process until the array is sorted in descending order
findElement returns the first matching element on the page, while findElements returns a list of all matching elements.
findElement returns a single WebElement matching the locator provided
findElements returns a list of WebElements matching the locator provided
findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list
getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows
getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles
getwindowhandle is used to switch between windows in Selenium WebDriver
Output type of getwindowhandle is String, while output type of getwindowhandles() is Set
String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.
String is immutable, meaning its value cannot be changed once it is created.
StringBuilder is mutable, allowing for modifications to the string without creating a new object.
StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.
Example: String str = "Hello"; StringBuil
The @BeforeMethod annotation is used to run a method before each test method in a class, while @BeforeTest is used to run a method before any test method in a test tag.
The @BeforeMethod annotation is specific to TestNG framework and is used to initialize test data before each test method.
@BeforeTest annotation is also specific to TestNG and is used to initialize test data before any test method in a test tag.
If a class...
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Start at the beginning of the array and compare the first two elements. If the first element is greater than the second, swap them.
Continue comparing adjacent elements and swapping them if necessary until the end of the array is reached.
Repeat this process for each ...
Custom assertions in Selenium allow for creating personalized validation checks in test automation scripts.
Custom assertions can be created by extending the Assert class in Selenium.
They can be used to validate specific conditions or elements on a web page.
Custom assertions can improve test readability and maintainability by encapsulating complex validation logic.
Example: Creating a custom assertion to verify the prese
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.
Sort program for a list of strings
Use a sorting algorithm like bubble sort, selection sort, or quicksort
Compare adjacent elements and swap them if they are in the wrong order
Repeat this process until the list is sorted
XPath for search in Google
Use the input element with name attribute 'q' for the search box
XPath: //input[@name='q']
Use the button element with name attribute 'btnK' for the search button
XPath: //input[@name='btnK']
I applied via Referral and was interviewed in May 2024. There was 1 interview round.
I like the constant learning and problem-solving in IT, but dislike the long hours and high stress levels.
Like: Constant learning opportunities
Like: Problem-solving challenges
Dislike: Long working hours
Dislike: High stress levels
Multiple choice questions and answers given
Yes, I am open to relocating for the right opportunity.
I am willing to relocate for the right job opportunity that aligns with my career goals.
I am open to exploring new locations and experiencing different cultures.
I understand the importance of being flexible and adaptable in the field of automation engineering.
I have relocated for previous job opportunities and have successfully adjusted to new environments.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Senior Manager
4
salaries
| ₹7.3 L/yr - ₹16.1 L/yr |
Project Engineer
3
salaries
| ₹2 L/yr - ₹5 L/yr |
Senior Site Engineer
3
salaries
| ₹4.6 L/yr - ₹5.1 L/yr |
TCS
Accenture
Wipro
Cognizant