Upgrade subject to access all content
Consider the following method.
public static int seqSearch(int x, int key)
for (int i = 0; i < x.length; i++)
if (key == x[i])
Which of the following statements is TRUE?
the for loop always iterates x.length times
the method never returns -1
the last return statement is unreachable
key and x[i] cannot be compared using the == operator
0 is returned only if key was found in the first comparison