A 2d array (i.e. 2 dimensional array) represents its elements in rows and columns
<h3>The program in Java</h3>
The method in Java, where comments are used to explain each line is as follows
//This defines the method
public static int diagSum(int[][] myArray) {
//This initializes sum to 0
int sum = 0;
//This iterates through each row of the array
for (int i = 0; i < myArray.length; i++) {
//This calculates the sum of the diagonals
sum+=myArray[i][i];
}
//This returns the sum
return sum;
}
Read more about methods at:
brainly.com/question/15969952
Deleting a character when you make a mistake and the print it without errors
• Installed a program containing ransomware/malware. (Do not accept downloaded without inferring it was installed)
• Opened an email attachment containing malware.
• Opened a file containing a malicious macro.
• Left his computer unsecure allowing someone else to install malware on it. (Should include an example, e.g. not logging off)
Answer:
RAM
Explanation:
RAM or Random Access Memory only holds programs which are currently running