Answer:
Option d pretest
Explanation:
Given the pseudocode:
- do stepA
- do stepB
- if conditionC is true
- then do stepD
- else
- do stepE
- end if
- while conditionF is true
- do stepG
- end while
The pseudocode above shows that there is a pretest before some codes are executed. For example, line 3 check if condition is true then only execute stepD otherwise execute stepE. Line 8 check if conditionF is true then repeatedly execute stepG. These are examples of pretest a condition will must be met (pretest passed) before a block of codes can be executed. This pretest can be seen in if-else statements and also the while condition.
Answer:
import java.util.Scanner;
class Main {
public static int calcSeries(int n) {
int sum = 0;
for(int i=10; i>=n; i--) {
sum += i;
}
return sum;
}
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int n = 0;
do {
System.out.print("Enter n: ");
n = reader.nextInt();
if (n >= 10) {
System.out.println("Please enter a value lower than 10.");
}
} while (n >= 10);
reader.close();
System.out.printf("sum: %d\n", calcSeries(n));
}
}
Answer:
Raster Graphic is a bitmap. They are basically a grid of small pixels that make an image.
Answer:
True
Explanation:
If a module or code is not ready then the unit test can use the Stubs to simulate a called upon function to test the process. On the other hand if the main unit is not ready the test can use Drivers to simulate the calling of said function to test the rest of the modules.
Therefore, a unit test will use either Drivers or Stubs at a given moment for testing but not both simultaneously.
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.