Answer: Automated testing is testing of the software by the means of automation by using special tools .These software tools are responsible for the testing of the execution process , functioning and comparing the achieved result with actual result.
It is helps in achieving the accuracy as compared with manual testing and also also function without any human interruption.It produces the test scripts that can be re-used.
Answer:
The code is given below in Java with appropriate comments
Explanation:
//Import the input.
import java.util.Scanner;
class CensoredWords
{
//Define the main method.
public static void main(String args[ ])
{
//Define the variables.
String userInput="" ;
//Define the scanner object
Scanner scobj = new Scanner(System.in);
//Accept the userInput.
System.out.print("Enter String: ");
userInput=scobj.nextLine();
//Check if the input contains darn.
//Print censored.
if(userInput.toUpperCase().indexOf("DARN") != -1)
System.out.printf("Censored");
//IF the input does not contains darn
//Print userInput.
else
System.out.printf(userInput)
return;
}
}
The code of five digits is of the form:
A B C D F
Where A (the first digit) may be any of 9 digits (because 0 is excluded)
B, C, and D, may be each any of 10 digits (0 - 9)
F (the last digit) may be 0, 2, 4, 6 or 8, i.e. 5 different digits.
So the number of different available codes is:
9 * 10 * 10 * 10 * 5 = 45,000.
Answer: 45,000
This is for Python
numbers = [7, 3, 6, 9, 0]
print(numbers.sort())
Output: [0, 3, 6, 7, 9]
numbers = [7, 3, 6, 9, 0]
print(numbers.sort(reverse = True))
Output: [9, 7, 6, 3, 0]