Filter interviews by
Use two variables to keep track of highest and second highest numbers in the array.
Iterate through the array and compare each element with the highest and second highest variables.
Update the variables accordingly to find the second highest number.
Test inputs include valid inputs, boundary values, invalid inputs, and edge cases.
Valid inputs: Providing inputs within the valid range to ensure the program functions correctly.
Boundary values: Testing inputs at the boundaries of valid ranges to check for any issues.
Invalid inputs: Testing inputs outside the valid range to see how the program handles errors.
Edge cases: Testing extreme or unusual inputs to uncover any
Top trending discussions
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
Check if an integer is a palindrome
Convert the integer to a string
Reverse the string and compare with the original string
If they are the same, the integer is a palindrome
I applied via Approached by Company and was interviewed in Apr 2023. There were 2 interview rounds.
BDD framework is a software development process that encourages collaboration between developers, QA, and non-technical stakeholders.
BDD stands for Behavior Driven Development
Uses natural language to define requirements and tests
Focuses on the behavior of the system from the end user's perspective
Uses tools like Cucumber, SpecFlow, or JBehave
Feature file with feature for automation testing
Feature: Login functionality
Scenario: User logs in with valid credentials
Given user is on the login page
When user enters valid username and password
Then user should be logged in successfully
To run a feature file, use a test automation tool like Cucumber or SpecFlow.
Use a test automation tool like Cucumber or SpecFlow to run feature files
Create a test runner class or configuration file to specify which feature file to run
Execute the test runner class or configuration file to run the feature file
Check the test results to see if the feature file ran successfully
The number of feature files will depend on the project requirements and the level of granularity in test scenarios.
Number of feature files can vary based on the size and complexity of the project
Each feature file typically represents a specific functionality or feature being tested
Feature files can be organized based on modules, user stories, or test scenarios
No, a class cannot be an interface in programming.
A class is a blueprint for objects, while an interface is a contract for classes to implement certain methods.
A class can implement multiple interfaces, but it cannot extend multiple classes.
Interfaces cannot have constructors or instance variables, while classes can have both.
Class is a blueprint for objects, while interface is a contract for classes to implement certain methods.
Class can have both data members and methods, while interface can only have method signatures.
A class can implement multiple interfaces, but can only inherit from one class.
Interfaces are used to achieve multiple inheritance in Java.
Classes can have constructors, while interfaces cannot.
Example: Class 'Car' can have...
A program to replace all vowels with 'x' in a given string.
Iterate through each character in the string
Check if the character is a vowel (a, e, i, o, u)
If it is a vowel, replace it with 'x'
Return the modified string
Different types of asserts used in Selenium include assert, verify, and waitForAssert
Assert: Stops the execution if the verification fails
Verify: Continues the execution even if the verification fails
waitForAssert: Waits for a certain condition to be true before proceeding
I applied via Naukri.com and was interviewed before Mar 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Apr 2021. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
A constructor is a special type of method in a class that is automatically called when an object of that class is created.
Constructors have the same name as the class they belong to
They are used to initialize the object's state or perform any necessary setup
Constructors can have parameters to customize the initialization process
Example: public class Car { public Car(String color) { this.color = color; } }
Yes, a static method can be overridden in Java using the concept of method hiding.
In Java, static methods cannot be overridden in the traditional sense like instance methods.
When a subclass defines a static method with the same signature as a static method in the superclass, it is called method hiding.
Method hiding does not follow polymorphism and is resolved at compile time based on the reference type.
Example: class...
Yes, a static local variable can be created inside a static method.
Yes, a static local variable can be declared inside a static method in programming languages like C++.
Static local variables retain their values between function calls.
Example: static void myStaticMethod() { static int count = 0; count++; }
String memory allocation is dynamic and depends on the length of the string.
String memory allocation is dynamic and can change based on the length of the string.
In Java, a String object is stored in the heap memory.
Each character in a String typically takes up 2 bytes of memory.
String objects in Java are immutable, meaning once a String object is created, it cannot be changed.
Yes, you can create a static method inside an abstract class or interface.
Static methods can be defined in interfaces since Java 8.
Static methods in interfaces are used for providing utility methods that are not tied to any specific instance of the interface.
Static methods in abstract classes can be used for common functionality that does not require an instance of the class.
The parent class of Java is the Object class.
All classes in Java are directly or indirectly derived from the Object class.
The Object class is the root class in Java's class hierarchy.
It provides methods that are common to all objects in Java, such as toString(), equals(), and hashCode().
Window Handles in Selenium are unique identifiers used to handle multiple browser windows in a Selenium test script.
Window Handles are unique alphanumeric strings assigned to each browser window opened by Selenium.
They are used to switch between different browser windows during a test script execution.
Window Handles can be obtained using getWindowHandles() method in Selenium.
Example: Set
posted on 30 Dec 2024
Reverse a string using Java program and handle stale element in Selenium
Create a Java program to reverse a string using StringBuilder or char array
In Selenium, handle stale element exception by refreshing the element or using WebDriverWait
Example: Java program - input: 'hello', output: 'olleh'; Selenium - handle stale element by refreshing the element before interacting with it
My expected salary is based on my experience, skills, and the market rate for Automation Test Engineers.
I have researched the average salary range for Automation Test Engineers in this location.
I am looking for a competitive salary that reflects my expertise in automation testing.
I am open to negotiation based on the overall compensation package offered.
Locators in Selenium are used to identify web elements on a webpage for automation testing purposes.
Locators include ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, and XPath.
ID is the most efficient locator as it is unique for each element.
XPath is powerful but can be slow and brittle.
CSS Selector is faster than XPath and can be used for complex selections.
Using unique locators helps create
Velocity is a measure of work completed in a sprint, while a burn down chart tracks progress towards completing the work.
Velocity is the amount of work completed by a team in a sprint, usually measured in story points or tasks completed.
Burn down chart is a visual representation of the remaining work in a sprint, showing progress towards completing all tasks.
Velocity helps teams plan future sprints based on past perfor...
Interview experience
Technical Support Engineer
22
salaries
| ₹7.5 L/yr - ₹18 L/yr |
Escalation Engineer
12
salaries
| ₹12 L/yr - ₹18 L/yr |
Automation Developer
9
salaries
| ₹18.5 L/yr - ₹26 L/yr |
Professional Service Engineer
6
salaries
| ₹14 L/yr - ₹17.5 L/yr |
Resident Engineer
4
salaries
| ₹15 L/yr - ₹32 L/yr |
Tufin
Skybox Security Inc.
Palo Alto Networks
Check Point Software Technologies