Quiz Yourself on 2D Arrays

Attempt the following quiz to test your understanding of 2D arrays.

1

Consider the following segment:

String[][] families = {{"Kim", "Allen"}, 
                       {"Nancy", "John"}, 
                       {"Chris", "Samantha"}, 
                       {"Rob", "Mary"}}

What is the value at families[2][0]?

A)

Nancy

B)

Chris

C)

Allen

Question 1 of 140 attempted

Get hands-on with 1400+ tech skills courses.