若有定义int score[10];,则对score数组中的元素的正确引用是( )
A: score[10]
B: score[6.0]
C: score[0]
D: score(7)
A: score[10]
B: score[6.0]
C: score[0]
D: score(7)
举一反三
- 若有定义int score[10];,则对score数组中的元素的正确引用是( )
- 定义一个存储5个学生成绩的数组不正确的是() A: int[] score = new int[5]; B: int score[] = new int[5]; C: double[] score; score = new double[5]; D: double[] score = new double[];
- 在下列代码中,有( )处实现了拆箱。 int score=5; object o= score; o=10; score =(int)o; object oScore = score;
- 用户输入0-100之间的百分制成绩,将其转为五分制输出,下面正确的答案为: A: score = float(input()) degree = "EEEEEEDCBAA" score_five = degree[score / 10] print(score_five) B: score = float(input()) degree = "EEEEEEDCBAA" score_five = degree[score // 10] print(score_five) C: score = float(input()) degree = "EEEEEEDCBAA" score_five = degree[int(score // 10)] print(score_five) D: score = float(input()) degree = "EEEEEEDCBA" score_five = degree[int(score // 10)] print(score_five)
- score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读下面代码,程序运行结果是() temp = score[0]; for (int index = 1;index < 5;index++) { if (score[index] < temp) { temp = score[index]; } }