Vidyalelo
Java Programming · Q43

Flow Control

Programming · Java Programming · question 43

Q43

What is the value of a[1] after the following code is executed? int[] a = 0, 2, 4, 1, 3; for(int i = 0; i < a.length; i++) a[i] = a[(a[i] + 3) % a.length];

A.
0
B.
1
Answer
C.
2
D.
3
E.
4

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board