LTIMindtree
30+ Birlasoft Interview Questions and Answers
Q1. 1. diff b/w findelements vs findelement? 2. set vs map? 3. wap for occurences of characters 4. wap for fibonacci series 5. write xpath from a website(they will tell the exact location) 6. How to get galues from...
read moreAnswers to various technical questions related to automation testing and software development.
findElements vs findElement: findElements returns a list of web elements matching the locator, while findElement returns the first web element matching the locator.
Set vs Map: Set is a collection of unique elements, while Map is a collection of key-value pairs.
Program for occurrences of characters: Write a program to count the occurrences of each character in a given string.
Program f...read more
Q2. What is difference between abstract class and abstract method
Abstract class is a class that cannot be instantiated while abstract method is a method without implementation.
Abstract class can have both abstract and non-abstract methods while abstract method can only exist in an abstract class or interface.
Abstract class can have constructors while abstract method cannot.
Abstract class can provide default implementation for its non-abstract methods while abstract method cannot.
Example of abstract class: Animal class with abstract method ...read more
Q3. Git commands you have used, and how to handle merge conflict?
Git commands used and handling merge conflicts
Git commands used: git clone, git pull, git push, git add, git commit, git merge, git rebase
To handle merge conflict: git status to see conflicted files, git diff to see the differences, manually resolve conflicts in the files, git add the resolved files, git commit the changes
Q4. Java oops concepts n where did u apply that in automation framework
Java OOPs concepts are used in automation framework design for better code organization and reusability.
Encapsulation: Used to hide the internal implementation details of classes and provide access through methods.
Inheritance: Allows for code reuse by creating parent-child relationships between classes.
Polymorphism: Enables methods to behave differently based on the object they are called on.
Abstraction: Helps in defining the structure of classes without implementing the deta...read more
Q5. Print all even numbers in an array exactly like this -> {2,4,6}. Without even concatenating the curly braces.
Print even numbers in array without curly braces.
Iterate through array and check if each element is even.
If element is even, add it to a new array of strings.
Join the elements of new array with commas to form final output.
Q6. How fast you can learn new technology and Process and what is your strategy to improve ROI very fast
I have a proven track record of quickly learning new technologies and processes, with a focus on maximizing ROI.
I prioritize understanding the fundamentals of the new technology or process before diving into details
I leverage online resources, tutorials, and documentation to accelerate my learning curve
I seek guidance and mentorship from experienced professionals in the field to gain insights and best practices
I set clear goals and milestones to measure my progress and ensure...read more
Q7. Difference between hash map and hash table
HashMap and HashTable are both data structures used to store key-value pairs, but they differ in their implementation and features.
HashMap is not synchronized and allows null values and keys, while HashTable is synchronized and does not allow null values or keys.
HashMap is faster than HashTable for non-thread-safe operations, but HashTable is safer for thread-safe operations.
HashMap uses Iterator to traverse the elements, while HashTable uses Enumerator.
Example: HashMap can b...read more
Q8. How to perform swipe action in mobile devices
Swipe action in mobile devices can be performed using swipe() method in Appium or TouchAction class in Selenium.
Use swipe() method in Appium to perform swipe action in mobile devices
Alternatively, use TouchAction class in Selenium for swipe action
Specify the start and end coordinates for the swipe action
Adjust the duration and speed of the swipe as needed
Q9. Write a program to find the given number is palindrome or not.
Program to check if a number is a palindrome or not.
Convert the number to a string to easily check for palindrome
Reverse the string and compare it with the original string
If they are the same, the number is a palindrome
Q10. How can we pass test data to the tests?
Test data can be passed to tests using data-driven testing approach, parameterization, test data files, or test data generation.
Use data-driven testing approach to pass test data from external sources like Excel sheets, databases, or CSV files.
Parameterize test data by defining variables in test scripts or test cases.
Store test data in separate test data files and read them during test execution.
Generate test data dynamically within the test scripts or using test data generat...read more
Q11. What are all the Selenium suites?
Selenium suites include Selenium IDE, Selenium WebDriver, Selenium Grid, and Selenium Standalone Server.
Selenium IDE is a record and playback tool for creating automated tests.
Selenium WebDriver is a powerful tool for automating web applications across different browsers.
Selenium Grid allows running tests in parallel on multiple machines.
Selenium Standalone Server is used to configure and run Selenium RC (Remote Control) tests.
Q12. What is Webdriver interface?
Webdriver interface is a part of Selenium that provides a way to interact with web browsers.
Webdriver interface allows automation scripts to control web browsers like Chrome, Firefox, etc.
It provides methods to interact with web elements like clicking, typing, selecting, etc.
Webdriver interface can be implemented in various programming languages like Java, Python, etc.
Q13. Sql query to find Salary greater than Adam's salary
Use a SQL query to find salaries greater than Adam's salary.
Use a subquery to get Adam's salary
Compare salaries using WHERE clause
Q14. What are the types of mobile apps
Types of mobile apps include native apps, web apps, and hybrid apps.
Native apps are developed for specific platforms like iOS or Android
Web apps are accessed through a web browser and do not need to be downloaded from an app store
Hybrid apps combine elements of both native and web apps
Examples include Instagram (native), Twitter (web), and Uber (hybrid)
Q15. Program to remove duplicate letters in a string
Program to remove duplicate letters in a string
Iterate through the string and keep track of seen characters in a set
Append characters to a new string only if they are not already in the set
Return the new string without duplicate letters
Q16. Difference between Abstract and Interface classes
Abstract classes can have both abstract and non-abstract methods, while interfaces can only have abstract methods.
Abstract classes can have constructors, fields, and methods with implementation.
Interfaces can only have abstract methods and constants.
A class can implement multiple interfaces but can only inherit from one abstract class.
Abstract classes are used to define a common behavior for subclasses, while interfaces are used to define a contract for classes to implement.
E...read more
Q17. Differenc between Implicit & Explicit wait
Implicit wait is set globally for all elements, while explicit wait is applied to specific elements only.
Implicit wait is set using driver.manage().timeouts().implicitlyWait() method
Explicit wait is implemented using WebDriverWait class in Selenium
Implicit wait is not recommended as it can slow down the test execution
Explicit wait is more flexible and efficient as it waits for a specific condition to be met
Q18. Difference between hashmap and hashtable?
HashMap is non-synchronized and allows null values, while Hashtable is synchronized and does not allow null values.
HashMap is non-synchronized, meaning it is not thread-safe, while Hashtable is synchronized and thread-safe.
HashMap allows null values and one null key, while Hashtable does not allow null keys or values.
HashMap is generally preferred for non-thread-safe applications, while Hashtable is used in thread-safe scenarios.
Example: HashMap
map = new HashMap<>(); Hashtab...read more
Q19. Difference between throw and throws
throw is used to explicitly throw an exception in a method, while throws is used to declare the exception that a method may throw.
throw is used within a method to throw an exception when a certain condition is met
throws is used in the method signature to declare the exceptions that the method may throw
throw is followed by an exception object, while throws is followed by the exception class
Example: public void divide(int a, int b) { if(b==0) throw new ArithmeticException(); }
E...read more
Q20. Real Automation Coding experience and explain
I have 3 years of experience in automation testing using Selenium and Java. Developed test scripts for regression testing.
Utilized Selenium WebDriver with Java to automate test cases
Developed test scripts for regression testing
Used frameworks like TestNG for test execution and reporting
Q21. What's Maven Life Cycle?
Maven Life Cycle is a sequence of phases that define the order in which goals are executed to build and deploy a Maven project.
Maven Life Cycle consists of three main phases: clean, default, and site.
Each phase consists of a series of goals that are executed in a specific order.
You can run a specific phase or goal using the command 'mvn
'.
Q22. How start appium in automation
To start Appium in automation, you need to install Appium server, set up desired capabilities, and run the server.
Install Appium server using npm install -g appium
Set up desired capabilities in your test script
Start the Appium server using the command appium
Q23. Difference between array and arraylist?
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection that can grow or shrink as needed.
Arrays can store primitive data types and objects, while ArrayList can only store objects.
Arrays require a specified size during initialization, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaration, w...read more
Q24. how to defain generators?
Generators are functions that can pause and resume their execution, allowing for lazy evaluation of values.
Generators are defined using the function* syntax in JavaScript.
They use the yield keyword to pause execution and return a value.
Generators can be iterated over using a for...of loop.
They are useful for generating sequences of values on demand.
Q25. what is instance verable?
Instance variable is a variable declared in a class, but outside of any method. It is unique to each object of the class.
Instance variables are also known as member variables or attributes.
They hold data that is unique to each object created from the class.
Example: In a class representing a car, instance variables could include 'color', 'model', and 'year'.
Q26. Explain automation framework structure
Automation framework structure is the organization of tools, libraries, and guidelines used for automated testing.
Automation framework consists of a set of guidelines, coding standards, and best practices.
It includes tools and libraries for test script development, execution, and reporting.
Frameworks can be data-driven, keyword-driven, modular, or hybrid.
Common frameworks include Selenium WebDriver for web testing and Appium for mobile testing.
Q27. How to handle otp
OTP can be handled by generating, sending, and verifying it in automated tests.
Generate OTP using a random number generator
Send OTP to the user via email, SMS, or any other communication channel
Verify OTP entered by the user against the generated OTP
Q28. Tell about CI tools
CI tools are software tools used to automate the process of continuous integration in software development.
CI tools help in automatically building, testing, and deploying code changes.
Popular CI tools include Jenkins, Travis CI, CircleCI, and GitLab CI/CD.
They integrate with version control systems like Git to trigger automated builds upon code changes.
CI tools provide feedback to developers quickly, helping in identifying and fixing issues early in the development cycle.
Q29. Regression vs retesting
Regression testing ensures changes do not affect existing functionality, while retesting focuses on verifying fixed defects.
Regression testing is performed to ensure that new code changes do not negatively impact existing functionality.
Retesting is done to verify that a specific defect has been fixed.
Regression testing is typically automated to save time and effort.
Retesting is usually done manually to ensure the fix is effective.
Examples: After adding a new feature, regressi...read more
Q30. Bubble sort program
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 they are in the wrong order, swap them.
Continue comparing adjacent elements and swapping them if necessary until the entire array is sorted.
Repeat this process for each element in the array until no more swaps are needed.
Q31. Jenkins explain
Jenkins is a popular open-source automation server used for continuous integration and continuous delivery of software projects.
Jenkins is used to automate the building, testing, and deployment of software projects.
It allows for the integration of various tools and plugins to support the automation process.
Jenkins can be configured to trigger builds automatically based on code changes in a version control system.
It provides a web-based user interface for easy configuration an...read more
More about working at LTIMindtree
Interview Process at Birlasoft
Top Automation Test Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month