i need your help to anwer these question
please help me i will fail if i did not anwer it 
Part 1
int j;
for(int i=0;i<14;i++) {
if(i<10) {
j = 2 + i;
}
System.out.println("j: " + j + " i: " + i);
}
What is WRONG with the above code?
1) Integer "j" is not initialized.
2) Nothing.
3) You cannot declare integer i inside the for-loop declaration.
4) The syntax of the "if" statement is incorrect.
5) You cannot print integer values without converting them to strings.
Part 2
int values[] = {1,2,3,4,5,6,7,8};
for(int i=0;i< X; ++i)
System.out.println(values[i]);
Referring to the above, what value for X will print all members of array "values"?
1) 1
2) 7
3) 8
4) 9
5) None, since there is a syntax error in the array declaration
Part 3
What is the value of k after the following code fragment?
int k = 0;
int n = 12
while (k < n)
{k = k + 1;}
1) 0
2) 11
3) 12
4) 13
5) None
_________________
A short Java program is listed below. One block of the program is missing. Your challenge is to match the candidate block of code (on the left), with the output that you’d see if the block were inserted. Not all the lines of output will be used, and some of the lines of output might be used more than once. Draw lines connecting the candidate blocks of code with their matching output.
Class Test {
public static void main (String [] args) {
int x = 0;
int y = 0;
while (x < 5) {
there some thing missing here
System.out.print(x + “ ” + y + “ ” );
x = x + 1;
}
}
}
Candidates:
1)y = x - y;
2)y = y + x;
3)y = y + 2;
if (y > 4) {
y = y+1;
}
4)x = x + 1;
y = y + x
5)If (y < 5) {
x = x +1;
if (y < 3) {
x = x -1;
}
}
Y = y -2;
Possible output:
1) 22 46
2) 11 34 59
3) 02 14 26 38
4)02 14 36 48
5) 00 11 21 32
6)11 21 32 42 53
7)00 11 23 36 410
8)02 14 25 36 47




