Filter interviews by
Top trending discussions
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
posted on 20 Jun 2024
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
A Java program to check if a number is prime or not.
Create a function to check if a number is prime by iterating from 2 to the square root of the number.
If the number is divisible by any number in that range, it is not prime.
Handle edge cases like 0, 1, and negative numbers separately.
Example: public static boolean isPrime(int num) { for(int i=2; i<=Math.sqrt(num); i++) { if(num % i == 0) { return false; } } return tru
Program to determine if a given year is a leap year or not
Check if the year is divisible by 4
If the year is divisible by 100, also check if it is divisible by 400
If both conditions are met, it is a leap year
I used OOPS concepts in my framework for creating reusable components and maintaining code modularity.
Used inheritance to create a base class with common functionalities shared by multiple classes
Implemented polymorphism to allow different classes to implement the same method in their own way
Encapsulated data and behavior within classes using access modifiers like private and public
Utilized abstraction to hide the impl...
Java program to add numbers 6134 to get total 14.
Create an array of integers with the numbers to be added
Iterate through the array and add the numbers
Check if the total equals 14
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
You can check the OS on which the Selenium program is running by using the 'System.getProperty()' method in Java.
Use 'System.getProperty('os.name')' to get the name of the operating system
Use 'System.getProperty('os.version')' to get the version of the operating system
Use 'System.getProperty('os.arch')' to get the architecture of the operating system
I applied via Job Portal and was interviewed in May 2024. There were 2 interview rounds.
Class to accept details of student
Create a class named Student with attributes like name, age, grade, etc.
Include a method to input details of the student.
Use constructor to initialize the attributes with input values.
kwargs in Python is a special syntax that allows you to pass a variable number of keyword arguments to a function.
kwargs stands for keyword arguments.
It is used in Python functions to accept a variable number of keyword arguments.
kwargs is represented by a double asterisk (**).
Example: def my_func(**kwargs):
Magical methods are special methods in Python that begin and end with double underscores, used for operator overloading and other special behaviors.
Magical methods are also known as dunder methods, short for 'double underscore'.
They are used to define how objects of a class behave when certain operations are performed on them, such as addition, subtraction, comparison, etc.
Examples of magical methods include __init__ f...
I applied via Company Website and was interviewed in Jan 2024. There was 1 interview round.
Best practices in automation framework include modular design, code reusability, error handling, and continuous integration.
Modular design: Break the automation framework into smaller modules for better maintainability and reusability.
Code reusability: Write reusable functions and libraries to avoid duplication of code.
Error handling: Implement proper error handling mechanisms to gracefully handle exceptions and failur...
Give second largest number in array
maven and gradle
path parameter and query parameter
how to run cucumber test cases
I was interviewed in May 2022.
based on 9 reviews
Rating in categories
Software Engineer
6.2k
salaries
| ₹2 L/yr - ₹11 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23 L/yr |
Associate Software Engineer
4.5k
salaries
| ₹2 L/yr - ₹6.4 L/yr |
Module Lead
2.4k
salaries
| ₹8 L/yr - ₹33 L/yr |
Transaction Processing Officer
2.2k
salaries
| ₹1.4 L/yr - ₹4.2 L/yr |
Cognizant
Wipro
Accenture
TCS