Programmers/Coders write the instructions for a Computer.
Answer:
- public class Main {
-
- public static void main (String [] args) {
-
- for(int i = 1; i < 10; i++){
- int num = 0;
- num += i;
- }
- System.out.println(num);
- }
- }
Explanation:
In programming each variable has its scope. For example, a variable defined within the for loop has no longer exist outside the loop body. To illustrate this we can write a short program as presented above.
Firstly, create a for loop that traverse the number 1 - 10 (Line 5 - 8). Within the loop create a variable num and initialize it with zero (Line 6) and increment it with i value for each iteration (Line 7).
Outside the loop, we try to print the num (Line 9). When we run the program this will result in an error as the num which is declared inside the for loop will no longer exist outside the loop body.
Well, this is pretty tricky so lets define all the purposes of these
Safe mode - troubleshoots windows ; determines HARDWARE malfunctions
Check device manager - Highlights malfunctioning hardware that is connected to the P.C.
Refreshing pc - practically nothing
resetting your pc - removes all programs, files, etc. and starts as a new Windows.
I will have to go with answer C.) Refresh your P.C.