Top 50 SDET Question
Here are some common coding interview questions that are often asked for SDET (Software Development Engineer in Test) positions:
-
Write a function to reverse a string
-
Find the missing number in an integer array
-
Implement a simple calculator that can add, subtract, multiply and divide two numbers
-
FizzBuzz - Print numbers from 1 to N, but print "Fizz" for multiples of 3, "Buzz" for multiples of 5, and "FizzBuzz" for multiples of both 3 and 5
-
Find duplicate elements in an array
-
Check if two strings are anagrams
-
Remove duplicates from a sorted array
-
Implement binary search on a sorted array
-
Write a function that checks if a string has balanced parentheses
-
Find the first non-repeating character in a string
-
Rotate an array by K positions
-
Merge two sorted arrays into one sorted array
-
Print all permutations of a string
-
Find the longest palindrome in a string
-
Reverse a linked list iteratively and recursively
-
Find the Kth largest element in an array
-
Find the intersection of two arrays
-
Implement a queue using stacks
-
Check if a binary tree is a binary search tree
-
Print the level order traversal of a binary tree
-
Find the height of a binary tree
-
Find the lowest common ancestor of two nodes in a binary tree
-
Implement breadth first search on a graph
-
Implement depth first search on a graph
-
Find cycles in a directed graph
-
Find shortest path between two vertices in an unweighted graph
-
Write SQL queries to select, insert, update and delete rows in a table
-
Differences between unit, integration and system testing
-
Write test cases to test a login functionality
-
Write test cases for boundary values
-
Test a registration form, checking valid and invalid input
-
Write a test plan to test a simple calculator app
-
How to test APIs - status codes, response body, performance, security
-
How to perform load/stress testing on a web application
-
How to automate tests using Selenium
-
Explain equivalence partitioning and boundary value analysis
-
Explain white box testing vs black box testing
-
How to perform sanity, smoke, regression and compatibility testing
-
How to log and report defects found during testing
-
How to design test cases from use cases
-
Differences between STLC and SDLC
-
Explain test plan, test scenario, test suite and test cases
-
How to prioritize and severity bugs based on business impact
-
Perform risk analysis of a testing project using various techniques
-
How to improve test coverage and what metrics to use
-
Explain how you would test a website or web application
-
Testing database applications - concept of CRUD testing
-
Compare manual vs automated testing and hybrid framework
-
Implement data driven testing using Excel sheets
-
Explain how you would perform security testing and types of vulnerabilities