Professional Documents
Culture Documents
2021 QA Interview Exercises
2021 QA Interview Exercises
QA Testing
Your team has been asked to test a gumball machine. List some test cases you would suggest
assuming typical functionality.
Optessa Confidential
QA Interview Exercises
SQL
b) Write a select statement to find the total SO_QUANTITY for all sales orders with
SO_PART = “ABC”.
c) Write a select statement to return the total SO_QUANTITY for all sales orders with
SO_PART = “ABC” that have a child table entry for SF_FEATURE = “COLOR” and
SF_VALUE = “RED”.
Optessa Confidential
QA Interview Exercises
SELECT a.id
FROM testA a
INNER JOIN testB b ON a.id = b.id
SELECT a.id
FROM testA a
LEFT OUTER JOIN testB b ON a.id = b.id
Optessa Confidential
QA Interview Exercises
HTML/CSS
Describe which elements in an HTML page would be associated with the follow CSS snippets:
a) div.formContainer
b) #btnSubmit
d) table.dataGrid td
Optessa Confidential
QA Interview Exercises
Programming Logic
How would you adjust the logic inside the loop (pseudocode is acceptable) so it prints the
numbers from 1 to 25 but with the following exceptions:
• For any number that is a multiple of 3 print “Three” instead of the number
• For any number that is a multiple of 4 print “Four” instead of the number
• For any number that is a multiple of both 3 and 4 print “Both” instead of the number
1
2
Three
Four
5
Three
7
…
Optessa Confidential
QA Interview Exercises
General Logic
There are 2 jobs (J1 and J2) each consisting of 2 operations (O1 and O2). A job’s second
operation can only start after the first one is complete. An operation cannot be pre-empted (no
break once it has been started).
There are 2 machines (M1 and M2) that can be used for these jobs. The processing time of each
operation and the possible machines that it can be performed on are described in the table below.
How would you schedule the jobs such that they complete as early as possible? Starting at hour
0 give the start and end time of each operation on each machine.
Optessa Confidential
QA Interview Exercises
Selenium
You have been asked to create a Java-based test class to automate the testing of this page using
Selenium WebDriver and TestNG.
a) Write a line of code that enters text into the Input textbox
c) Write a line of code that asserts the content of the Output area matches an expected
value
Optessa Confidential
QA Interview Exercises
d) Write a line of code that asserts the colour of the text in the Output area matches an
expected value
Optessa Confidential