单项选择题
使用Lambda表达式对班级所有成绩求和,下列语法正确的是()
A.scoreList.Sum(ScoreValue)
B.scoreList.Sum(t =>t.ScoreValue)
C.scoreList.Count(ScoreValue)
D.scoreList.Count(t =>t.ScoreValue)
点击查看答案&解析
相关考题
-
单项选择题
使用Lambda表达式查询出班级成绩的最高分,下列语法正确的是()
A.studentList.Max(t =>t.ScoreValue)
B.studentList.Max(ScoreValue)
C.studentList.Sum(t =>t.ScoreValue)
D.studentList.Sum(ScoreValue) -
单项选择题
使用Lambda表达式对班级所有成绩求平均分,下列语法正确的是()
A.scoreList.Count(t =>t.ScoreValue)
B.scoreList.Count(ScoreValue)
C.scoreList.Average(t =>t.ScoreValue)
D.scoreList.Average(ScoreValue) -
单项选择题
使用Lambda表达式可以查询出班级成绩在80分以上的人数,下列语法正确的是()
A.studentList.Count(t =>t.ScoreValue >=80)
B.studentList.Count(ScoreValue >=80)
C.studentList.GroupBy(t =>t.ScoreValue >=80)
D.studentList.GroupBy(ScoreValue >=80)