Java Tutorial #10 Quiz

Q1: An infinite loop is a loop that never stops running because the condition is never false.

Q2: What should you do if you create and infinite loop?

Q3: Arrays use _______ to tack the position of an item in an array.

Q4: If we have an array named famMembers how would we get the number of items in that array?

Q5: Given the code below, what would go between the square brackets?
for(int x=0; x < famMembers.length; x++){
System.out.println(famMembers[]);
}

Q6: What does the ArrayIndexOutOfBoundException mean?

Did you find our site helpful? Consider donating to help us provide more quality content.