Professional Documents
Culture Documents
Basic Testing Knowledge
Basic Testing Knowledge
1. Which path would you use to test every transition from one state to another (states: S0, S1,
S2, S3, S4) in the most efficient way? Can you find multiple paths?
1:012314
2:0124123
4. The expected result of a test case that needs to describe the correct behavior is:
• Only important when testing the whole system
• Only important when testing the component (feature / behavior)
• Never specified in advance
• Derived from the code
• Most useful when specified in advance----corect
SQL
8. Write a SQL statement in order to determine the number of people that placed an order with
a value higher than 300. Use table 'cust_order' table.
SELECT COUNT(price)
FROM cust_order
WHERE price>300;
9. Write a SQL statement in order to display the name, order number and purchase date of the
customers that have their orders processed (if is_processed is 1 then the order has been
processed, if is_processed is 0 it has not been processed). Use 'cust_order' and 'order_details'
tables.
10. Write a SQL statement in order to display the name, order number and purchase date of the
customers that have their orders processed (if is_processed is 1 then the order has been
processed, if is_processed is 0 it has not been processed). Use 'cust_order' and 'order_details'
tables.
11. Write a SQL statement in order to update every order such as all of them will be processed
(value for is_processed should be 1).
UPDATE order_details
SET is_processed='1';
12. Write a SQL statement in order to delete the entries for 'Alfred Horn' and 'Ana Trujillo'. Use
'cust_order' table.
13. Write a pseudocode which changes all the vocals from lowercase to uppercase in the next
sequence: Bobby loves to play football for Manchester United.
14. Write a pseudocode that sums all the values marked with bold for the following matrix. The
solution should also work for a matrix with random number of rows and columns (matrix
number of rows and columns is all the time equal).
0 1 2
4 5 6
8 9 10
12 13 14
n=4
m=3
sum=0
matrix=[...]
for(i=0;i<n;i++)
for(j=0;j<m;j++)
{
if(j==i||j==i+1)
{
sum=sum+matrix[i,j]
}
}
print sum
Logic
FIVE=IV
API