Sdet Engineer

80+ Sdet Engineer Interview Questions and Answers

Updated 1 Jul 2025
search-icon

Asked in Nykaa

6d ago

Q. Tell me about the projects and knowledge on selenium api and etc?

Ans.

I have worked on multiple projects involving Selenium API for automated testing of web applications.

  • Developed test scripts using Selenium WebDriver to automate testing of web applications

  • Utilized Selenium Grid for parallel testing across different browsers and platforms

  • Integrated Selenium with testing frameworks like TestNG or JUnit for test execution and reporting

  • Implemented Page Object Model design pattern for better test maintenance and readability

Asked in Witty Com

6d ago

Q. In this example, the internal data structure (std::vector) can be changed to another type (e.g., std::list) without affecting how users interact with the Example class, as long as the public methods (add, get)...

read more
Ans.

Yes, the internal data structure can be changed without affecting user interaction as long as public methods remain the same.

  • Use abstraction to hide implementation details from users

  • Ensure public methods have consistent behavior regardless of internal data structure

  • Consider using interfaces or abstract classes to define common behavior

Sdet Engineer Interview Questions and Answers for Freshers

illustration image

Asked in Jivox

2d ago

Q. Write a program to log in and print employees' first names and salaries.

Ans.

This task involves writing a login function to retrieve and print employee details like first name and salary.

  • Define a function named 'printEmployeeDetails'.

  • Use a data structure (like an array or list) to store employee information.

  • Each employee can be represented as an object or dictionary with 'firstName' and 'salary' keys.

  • Iterate through the employee list and print the 'firstName' and 'salary' for each employee.

  • Example: For an employee object: { 'firstName': 'John', 'salar...read more

Asked in Nutanix

6d ago

Q. Given an array representing the amount of fuel in three types of tanks (O2, H2, and Petrol), where you can only use two types of fuel at each step, what is the minimum number of steps required to deplete all fu...

read more
Ans.

Determine the minimum steps to deplete fuel from two types of tanks in an array of fuel amounts.

  • Choose Two Fuels: You can only use two types of fuels at each step, e.g., O2 and H2.

  • Step Calculation: Each step reduces the amount of fuel in the chosen tanks by 1.

  • Example: For [4, 5, 6], if you choose O2 and H2, you can deplete them in 5 steps.

  • Strategy: Prioritize using the fuels with the highest amounts to minimize total steps.

Are these interview questions helpful?

Asked in Info Edge

4d ago

Q. What do you mean by run time polymorphism and how is it achieved?

Ans.

Run time polymorphism is the ability of a method to do different things based on the object it is acting upon.

  • Run time polymorphism is achieved through method overriding in object-oriented programming.

  • It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.

  • The actual method that gets called is determined by the type of object at run time.

  • Example: Animal class has a method 'makeSound'. Dog and Cat classes extend Animal a...read more

Asked in Nykaa

5d ago

Q. Write a Selenium program for Swiggy that navigates to the cart.

Ans.

Selenium program to automate adding items to cart on Swiggy

  • Launch the Swiggy website using Selenium WebDriver

  • Search for desired food items and add them to cart

  • Verify items are added correctly before proceeding to checkout

Sdet Engineer Jobs

Metlife logo
Sdet Engineer 2-4 years
Metlife
4.1
₹ 5 L/yr - ₹ 9 L/yr
Pune
COMCAST logo
SDET Engineer 3 (CTS-F0264) 8-11 years
COMCAST
4.0
Chennai
Wipro Limited logo
SDET Engineer 3-5 years
Wipro Limited
3.7
Chennai

Q. What reusable methods have you designed, and what was their impact?

Ans.

I have designed reusable methods for data validation, logging, and error handling.

  • Created a data validation method that checks for required fields and data types

  • Implemented a logging method that records important events and errors

  • Developed an error handling method that gracefully handles exceptions and provides detailed error messages

Asked in Info Edge

2d ago

Q. Explain each OOP concept with clarity and write a class where you are implementing these.

Ans.

Explanation of OOPs concepts with a class implementation

  • Encapsulation: Class with private data members and public methods to access them

  • Inheritance: Class extending another class to inherit its properties and methods

  • Polymorphism: Class with multiple methods with the same name but different parameters

  • Abstraction: Class with abstract methods that must be implemented by subclasses

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in PubMatic

4d ago

Q. Have you used fluent wait in Selenium, and why is it not commonly used?

Ans.

Fluent wait in Selenium is used for handling dynamic elements and synchronization issues.

  • Fluent wait is used to wait for a condition to be true before proceeding with the next steps in Selenium automation scripts.

  • It provides more flexibility in defining wait conditions compared to implicit or explicit waits.

  • Fluent wait can be used to wait for a specific element to be visible, clickable, or any other custom condition.

  • It is not used as frequently because it can lead to longer e...read more

6d ago

Q. What APIs have you implemented in your project?

Ans.

I have implemented RESTful APIs using Node.js and Express framework in my project.

  • Implemented CRUD operations for managing user data

  • Used authentication middleware for secure access

  • Integrated third-party APIs for external data retrieval

Asked in Euler Motors

1d ago

Q. What api is called for capturing audio files and what is gradle file

Ans.

The API for capturing audio files is MediaRecorder in Android. Gradle is a build automation tool for Android projects.

  • MediaRecorder API is used for capturing audio files in Android

  • Gradle is a build automation tool used for building, testing, and deploying Android projects

  • Example: MediaRecorder recorder = new MediaRecorder();

  • Example: Gradle file for an Android project is typically named build.gradle

Asked in Elucidata

5d ago

Q. How do you center a div both horizontally and vertically?

Ans.

To center a div horizontally and vertically, use CSS flexbox or grid layout

  • Use CSS flexbox with 'justify-content: center' and 'align-items: center'

  • Alternatively, use CSS grid with 'place-items: center'

  • Set the div's width and height, and margin: auto to center horizontally

Asked in Nutanix

4d ago

Q. Given a string made of A's and B's, what is the maximum length of consecutive A's or consecutive B's you can get by replacing A's with B's and vice versa?

Ans.

Find the maximum length of consecutive A's or B's by replacing A's with B's and vice versa in a given string.

  • Count the maximum consecutive A's and B's in the original string.

  • Consider replacing A's with B's and vice versa to maximize the length.

  • Example: For 'AABBA', replacing one A with B gives 'ABBA' (max 3 B's).

  • Example: For 'AAABBB', replacing one B with A gives 'AAAAA' (max 5 A's).

Asked in Info Edge

2d ago

Q. How is encapsulation different than abstraction?

Ans.

Encapsulation is the concept of bundling data and methods that operate on the data into a single unit, while abstraction is the concept of hiding the implementation details and showing only the necessary features of an object.

  • Encapsulation is about wrapping the data (variables) and methods (functions) that operate on the data into a single unit (class).

  • Abstraction is about hiding the implementation details and showing only the necessary features of an object.

  • Encapsulation hel...read more

4d ago

Q. Write code to check if a string meets specific password requirements using built-in Java functions.

Ans.

Code to check if a string meets password requirements using built-in Java functions.

  • Use String class methods like length(), contains(), matches() to check for password requirements.

  • Use regular expressions to validate password requirements such as minimum length, uppercase, lowercase, digits, special characters.

  • Example: String password = "Pass123!"; boolean isValid = password.length() >= 8 && password.matches(".*[A-Z].*") && password.matches(".*[a-z].*") && password.matches("....read more

Asked in Swiggy

2d ago

Q. What is the difference between Severity, Priority, and Criticality?

Ans.

Severity, Priority, and Criticality are different aspects of issue management in software testing.

  • Severity refers to the impact of a defect on the system's functionality.

  • Priority indicates the order in which defects should be fixed based on business needs.

  • Criticality combines severity and priority to determine the overall importance of a defect.

  • For example, a defect causing a system crash would have high severity, high priority, and high criticality.

  • On the other hand, a minor...read more

Q. All the popular status codes you know and there meaning

Ans.

Popular HTTP status codes and their meanings

  • 200 - OK: Request succeeded

  • 404 - Not Found: Resource not found

  • 500 - Internal Server Error: Server error

  • 401 - Unauthorized: Authentication required

  • 302 - Found: Resource temporarily moved

  • 503 - Service Unavailable: Server unavailable

6d ago

Q. Reversing strings using different methods

Ans.

Different methods to reverse strings in an array

  • Use built-in functions like reverse() in JavaScript

  • Iterate through each string and reverse characters manually

  • Use recursion to reverse each string

Asked in CommVault

6d ago

Q. Given a program and its expected functionality, how would you find the bugs in that program?

Ans.

Identify bugs in a given program by analyzing its functionality and expected behavior.

  • Check for syntax errors: e.g., missing semicolons or brackets.

  • Validate logic flow: e.g., ensure if-else conditions are correctly implemented.

  • Test edge cases: e.g., inputting maximum or minimum values.

  • Review data types: e.g., ensure integers are not being compared to strings.

  • Look for off-by-one errors: e.g., iterating through arrays incorrectly.

Asked in PubMatic

5d ago

Q. How do you retrieve all links from a webpage?

Ans.

To get all the links available on a page, you can use web scraping techniques.

6d ago

Q. Code for nested dictionary Projects related Resume based

Ans.

Code for nested dictionary

  • Use curly braces to define the outer dictionary

  • Use square brackets to define the inner dictionaries

  • Access values using keys

Asked in Bright Money

3d ago

Q. 1. Printing all Prime Numbers from 1 to N

Ans.

Printing all prime numbers from 1 to N.

  • Iterate from 2 to N and check if each number is prime or not.

  • Use a nested loop to check if a number is divisible by any number less than it.

  • If a number is not divisible by any number less than it, it is a prime number.

  • Print all prime numbers found.

Asked in Amazon

1d ago

Q. How does a linked list work in data structures?

Ans.

A linked list is a linear data structure where each element is a separate object with a reference to the next element.

  • Each element in a linked list is called a node

  • Nodes are connected using pointers or references

  • Linked lists can be singly linked (each node points to the next) or doubly linked (each node points to the next and previous)

Asked in Vibrant

4d ago

Q. What are the basic OOPS concepts in the language you selected in your resume?

Ans.

OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.

  • Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).

  • Inheritance: Mechanism where a new class inherits properties and behavior from an existing class (e.g., a 'Dog' class inheriting from an 'Animal' class).

  • Polymorphism: Ability to present the same interface for different underlying data types (e.g., method o...read more

Asked in DE Shaw

2d ago

Q. Implement LFU cache using OOP concepts from scratch.

Ans.

Implement LFU cache using OOPs concepts

  • Create a class for LFU cache with methods like get, put, and remove

  • Use a hashmap to store key-value pairs and a hashmap to store frequency of each key

  • Implement a doubly linked list to store keys with the same frequency

Asked in Swiggy

3d ago

Q. What is a paradox in testing?

Ans.

A paradox in testing refers to a situation where a test case both passes and fails at the same time.

  • Paradox in testing can occur when a test case has conflicting requirements or conditions.

  • It can also happen when there are errors in the test setup or execution that lead to unexpected results.

  • For example, a test case may pass when run individually but fail when run as part of a test suite due to dependencies.

  • Identifying and resolving paradoxes in testing is crucial for ensurin...read more

Asked in Nykaa

4d ago

Q. Explain waits in Selenium.

Ans.

Waits in Selenium are used to make the automation script wait for a certain condition to be met before proceeding.

  • There are three types of waits in Selenium: Implicit Wait, Explicit Wait, and Fluent Wait.

  • Implicit Wait sets a default waiting time for the entire script to wait for an element to be found.

  • Explicit Wait is used to wait for a certain condition to occur before proceeding to the next step.

  • Fluent Wait is a more flexible wait that allows you to define the maximum amoun...read more

Asked in Swiggy

4d ago

Q. What is Backward Compatibility?

Ans.

Backward compatibility refers to the ability of a system to accept input intended for an older version of the system.

  • Allows newer versions of software to work with data or systems from older versions

  • Ensures that changes in the software do not break compatibility with existing data or systems

  • Helps in smooth transition and adoption of new versions without disrupting existing processes

Asked in Swiggy

2d ago

Q. What is Equivalence Partitioning?

Ans.

Equivalence partitioning is a software testing technique where input data is divided into partitions and only one value from each partition is tested.

  • Input data is divided into groups or partitions based on similar characteristics

  • One value from each partition is selected as a representative for testing

  • Helps in reducing the number of test cases while ensuring maximum coverage

  • Example: Testing a login form with valid, invalid, and boundary input partitions

Asked in Metalbook

4d ago

Q. Write a program to remove duplicate numbers from an array.

Ans.

Program to remove duplicate numbers from array of strings

  • Iterate through the array and store each element in a set to keep track of unique elements

  • If an element is already in the set, remove it from the array

  • Return the array with duplicates removed

1
2
3
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k Interviews
Amazon Logo
4.0
 • 5.4k Interviews
Bharti Airtel Logo
3.9
 • 953 Interviews
Google Logo
4.4
 • 895 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Sdet Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits