Answer:
def insSort(arr):
ct=0;
for i in range(1, len(arr)):
key = arr[i]
j = i-1
while j >=0 and key < arr[j] :
arr[j+1] = arr[j]
j -= 1
ct=ct+1;
arr[j+1] = key
return arr,ct;
print(insSort([2,1]))
Output of the program is also attached.
Answer:
Automation testing can be used for:
<u>Input-output test
:</u> If the main function of your software is to transform input data into output data you can configure a new test by providing a new input/output pair, then the test will check to see if the output matches with the expected values.
<u>Unit test
:</u> This test is a script to check the return values of a specific code by initializing it and calling his methods. This is a part of a test-driven development process.
<u>Integration test
:</u> This test is a code level script that does a complete check process involving multiple objects. For example, you might make a test for “buy a product” which checks to see if the database is updated, if the data is correct of the person is correct, and if the person placing the order gets the right confirmation email.
<u>Smoke Tests:</u> This test is executed immediately after implementation on production to ensure that the application is still functioning.
Answer:
warehouse
Explanation:
A bit similar to a database, a data warehouse is a collection or large store of data from different sources that businesses and organization can use to make intelligent business decisions. The data sources for a data warehouse are typically databases from different vendors and architectures.
Data warehouses are typically data repositories used by organizations for data analysis and reporting purposes.