Java基础强化练习题2(附答案)

正确答案:B

(4). 下列选项中,能填入空白处4的代码是( )

A. if (student.equalsIgnoreCase(students[i-1])) { break; } B. if (student.equalsIgnoreCase(students[i])) { continue; } C. if (student.equalsIgnoreCase(students[i-1])) { continue; } D. if (student.equalsIgnoreCase(students[i])) { break; } 正确答案:D

(5). 下列选项中,能填入空白处5的代码是( ) A. scores.length < scores.length-1 B. scores.length < scores.length C. i < students.length D. i < students.length-1 正确答案:C

联系客服:779662525#qq.com(#替换为@)