Sdet Engineer
80+ Sdet Engineer Interview Questions and Answers

Asked in Nykaa

Q. Tell me about the projects and knowledge on selenium api and etc?
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

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 moreYes, 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

Asked in Jivox

Q. Write a program to log in and print employees' first names and salaries.
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

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 moreDetermine 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.

Asked in Info Edge

Q. What do you mean by run time polymorphism and how is it achieved?
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

Q. Write a Selenium program for Swiggy that navigates to the cart.
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




Asked in Piramal Capital Housing Finance

Q. What reusable methods have you designed, and what was their impact?
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

Q. Explain each OOP concept with clarity and write a class where you are implementing these.
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 🌟

Asked in PubMatic

Q. Have you used fluent wait in Selenium, and why is it not commonly used?
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

Asked in Valuefy Solutions

Q. What APIs have you implemented in your project?
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

Q. What api is called for capturing audio files and what is gradle file
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

Q. How do you center a div both horizontally and vertically?
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

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?
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

Q. How is encapsulation different than abstraction?
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

Asked in Amagi Media Labs

Q. Write code to check if a string meets specific password requirements using built-in Java functions.
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

Q. What is the difference between Severity, Priority, and Criticality?
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

Asked in Piramal Capital Housing Finance

Q. All the popular status codes you know and there meaning
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

Asked in Sequoia Group

Q. Reversing strings using different methods
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

Q. Given a program and its expected functionality, how would you find the bugs in that program?
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

Q. How do you retrieve all links from a webpage?
To get all the links available on a page, you can use web scraping techniques.
Use a web scraping tool like BeautifulSoup in Python or Selenium to extract all the links from the page
Identify the HTML elements that contain the links, such as tags with href attributes
Iterate through the elements to extract the URLs and store them in a list

Asked in Amagi Media Labs

Q. Code for nested dictionary Projects related Resume based
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

Q. 1. Printing all Prime Numbers from 1 to N
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

Q. How does a linked list work in data structures?
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

Q. What are the basic OOPS concepts in the language you selected in your resume?
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

Q. Implement LFU cache using OOP concepts from scratch.
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

Q. What is a paradox in testing?
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

Q. Explain waits in Selenium.
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

Q. What is Backward Compatibility?
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

Q. What is Equivalence Partitioning?
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

Q. Write a program to remove duplicate numbers from an array.
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
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Sdet Engineer Related Skills

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


Reviews
Interviews
Salaries
Users

