0:00

Which of the following would be the correct result from the following expression: 150 (in decimal) – 21 (in octal) + 101 (in binary) – E (in hexadecimal)?

$$150-17+5-14=124$$
5

Given the following code are the contents of itemArray and val after a call of mod(itemArray,val)?

int[] itemArray = {9, 8, 7, 6};
int val = 5;

public static void mod(int[] a, int value)
{
for (int i=0; i < a.length; i++)
{
a[i] = i;
}
value = a[a.length-1];
}

2