Mphasis
Samsung E&A Interview Questions and Answers
Q1. What are the locators in selenium, Write xpath for given element Diff between find element and findelements What is smoke sanity and regression testing Black box and white box testing difference Defect life cyc...
read moreAnswers to common interview questions for Software Test Engineer position
Locators in Selenium are used to locate elements on a web page, such as ID, name, class name, tag name, link text, and XPath
Example of XPath for an element: //input[@id='username']
findElement() is used to find a single element on a web page, while findElements() is used to find multiple elements
Smoke testing is a preliminary testing to check if the software build is stable enough for further testing, San...read more
Q2. Write a code to reverse a string
Code to reverse a string using array of characters
Create an array of characters from the input string
Use two pointers to swap characters at opposite ends of the array until they meet
Convert the array back to a string and return
Q3. when we use final keyword
The final keyword is used in Java to declare constants, prevent method overriding, and prevent class inheritance.
Used to declare constants - value cannot be changed
Prevents method overriding in subclasses
Prevents class inheritance - class cannot be extended
Q4. What is software testing
Software testing is the process of evaluating a software application or system to find defects and ensure it meets the specified requirements.
Software testing involves executing software applications or systems to identify defects and ensure they meet the specified requirements.
It is done to ensure that the software is reliable, efficient, and meets the user's needs.
Testing can be done manually or using automated tools.
Types of testing include functional, performance, securit...read more
Q5. How you test in detail
I follow a structured approach to testing, including planning, designing test cases, executing them, and reporting defects.
I start by analyzing requirements and identifying test scenarios
I design test cases and prioritize them based on risk and impact
I execute test cases and report defects using a bug tracking tool
I perform regression testing to ensure fixes do not introduce new issues
I use automation tools to increase efficiency and coverage
I collaborate with developers and ...read more
Q6. Write the code for abstraction
Abstraction in programming is the concept of hiding the implementation details and showing only the necessary features of an object.
Abstraction can be achieved in programming languages like Java using abstract classes and interfaces.
Abstract classes are classes that cannot be instantiated and may contain abstract methods that must be implemented by subclasses.
Interfaces define a contract for classes to implement, without providing any implementation details.
Example: abstract ...read more
Q7. what is constructor
A constructor is a special type of method that is automatically called when an object is created in a class.
Constructors have the same name as the class they are in.
They can be used to initialize object properties.
Constructors do not have a return type.
Example: public class Car { public Car() { // constructor code here } }
Q8. Explain OOPS concept in detail
OOPS is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOPS stands for Object-Oriented Programming System
It focuses on creating objects that interact with each other to solve a problem
Key principles include encapsulation, inheritance, polymorphism, and abstraction
Encapsulation: Bundling data and methods that operate on the data into a single unit
Inheritance: Allows a class to inherit prop...read more
Q9. Type of joins in SQL
Types of joins in SQL include inner join, outer join, left join, and right join.
Inner join: Returns rows when there is a match in both tables
Outer join: Returns all rows when there is a match in one of the tables
Left join: Returns all rows from the left table and the matched rows from the right table
Right join: Returns all rows from the right table and the matched rows from the left table
Top Softwaretest Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month