You are on page 1of 5

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

2. When testing a new application, issues will not be raised against:


• Client requirements
• Improvements suggested by users---corect
• Functional and technical documentation
• Design specification

3. When to stop testing? (explain your answer)


Dedline
minimum bugs
code is ok

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

5. Testing using the 'error guessing' method is best used:


• After more formal techniques have been applied-----corect
• By inexperienced testers
• After the system has gone live
• Only by end users

6. Is it important to test beyond the limits\ specified in the requirements? Why?

Posibil in fuctie de situatie si de persoana...


7. Specify the most needed features in a mobile banking application designed for users that
already have an account/card of that bank. Pick the most important one and describe how
would you test it.

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.

customer_id name order_no price


1 Alfred Horn 650 150
2 Ana Trujillo 730 40
3 Antonio Taqueria 250 200
4 Ana Hardy 630 6000
5 Thomas Moreno 689 540
6 Alfred Horn 321 150

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.

order_no seller purchase_date is_processed


457 Andy Marches 2018-02-06 0
650 Maria Bern 2011-05-23 1
258 Sandor Morris 2006-12-02 1
250 Andy Marches 2018-01-31 0
630 Irlana Venis 2008-04-14 1
441 Maria Bern 2004-07-27 1

SELECT name, order_no, purchase_date


FROM cust_order AND order_details
WHERE is_producess='1' OR is_producess='0';

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.

DELETE FROM cust_order


WHERE name='Alfred Horn','Ana Trujillo'
Pseudocode

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

15. Explain how five minus two equals 4?

FIVE=IV

API

16. Which are the most common HTTP methods?


CONECT, GET ,DELETE,PUT,HEAD,POST OPTIONS,CONNECT

You might also like