Multiple Choice Question

Quiz Guidelines

 

QID: 
162
Question: 

What can you do to make the following code compile?

public class TestClass {
public static void main(String[] args) {
int[] values = { 10, 20, 30 };
for( /* put code here */ ){
}
}
}

Select 2 options

A. int k : values
B. int k in values
C. int k; k<0; k++
D. ;;
E. ; k<values.length;k++

Q&A Set: