7. (B) If k starts with the value NUMCARDS, the method encounters cards[NUMCARDS] on Line 7 and t hrow s an ArrayIndexOutOfBoundsException.