Answer:
long power(int i)
{
return pow(2,i);
}
Explanation:
The above written function is in C++.It does not uses loop.It's return type is long.It uses the function pow that is present in the math library of the c++.It takes two arguments return the result as first argument raised to the power of second.
for ex:-
pow(3,2);
It means 3^2 and it will return 9.
Opening unfamiler emails and visiting unknown websites
Answer:
Algorithms is formula for solving a problem. It is helpful because it specifically give instructions detail to computer to what a computer should perform a specific task.
For e.g. calculating report cards.
Answer:
There is no value of the number variable, for which the loop can be true in any iteration.
Explanation:
- The above loop states the condition that the value should be less than 100 and greater than 500. It is because the loop holds the and condition which gives the true if both conditions will be true.
- The first condition of the while loop states that the value of the number variable is less than the 100.
- The second condition of the while loop state that the value of the number variable is greater than the 500.
- The and condition of the while loop will true if both conditions will true.
- But there is no number which is less than 100 and greater than 500.
- So no number can satisfy the while condition to be true.
Answer:
Characteristics of system testing include;
1. It is the first full assessment of a complete software package.
2. It evaluates the functional, non-functional, and business requirements of a software package.
3. It is similar to black-box testing.
4. It is done by a team of specialized software testers.
5. It helps to ensure the optimal performance of the software after it is deployed.
Explanation:
System testing is a form of software testing that is done to evaluate the full software package before deployment. The testing is done on the basis of some standards and specifications that had been previously established. It is the first testing that is done in a series of software ware testing. This system testing ensures that the functional, business, and non-functional requirements of a software package are met.
It minimizes the problems that are likely to be experienced by a software program that goes unchecked. One such problem is troubleshooting. It is a very important test that should be performed on any developed software.