Answer:
Swap codes in line 7 and 8
Explanation:
The code segment below
Line 1: count ← 0
Line 2: sum ← 0
Line 3: FOR EACH value IN numbers
Line 4: {
Line 5: count ← count + 1
Line 6: sum ← sum + value
Line 7: average ← sum / count
Line 8: }
Line 9: DISPLAY (average)
The above code will make the program translator calculate the average value at each iteration.
This will take a longer time to execute and also means more instructions for the program translator.
Swapping line 7 and 8 will reduce the number of instructions to execute. This will have an instant effect on the time taken to execute the program.
Swapping line 7 and 8 means that, the program translator will only calculate the average after it must have finished calculating the sum of the values in the iteration statement.
Answer:
The answer is "option D"
Explanation:
Trojan horse is a software, that is installed on a system and appears benign, but in actual it is the addition of malicious which unexpected modifications in config files and unusual activity even when the computer is idle are strong signs that a Trojan exists on a system. and other options are not correct that can be described as follows:
- In option A, It is a malware that is also known as Trojan.
- In option B, It is malware, not a virus but the malware includes viruses.
- In option C, It doesn't install spyware on the user's computer.
- In option E, It doesn't use for enterprise networks to penetrate.