皮皮学,免费搜题
登录
搜题
【单选题】
输入某班学生某门课的成绩(最多不超过40人,具体人数由用户键盘输入),用函数编程统计不及格人数。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 1. #include 2. #define N 40 3. intGetFailNum(int score[], int n); 4. int main() 5. { 6. int i, n, fail, score[N]; 7. printf("How many students?"); 8. scanf("%d", &n); 9. for (i=0; i 10. { 11. scanf("%d", &score[i]); 12. } 13. fail = GetFailNum(score, n); 14. printf("Fail students = %d\n", fail); 15. return 0; 16. } 17. 18. /* 函数功能:统计不及格人数 */ 19. int GetFailNum(_________, int n) 20. { 21. int i, count = 0; 22. for (i=0; i 23. { 24. if (____________) count++; 25. } 26. return ________; 27. }
A.
第19行: int score 第24行: score[i] <= 60 第26行: count
B.
第19行: int score[] 第24行: score[i] <= 60 第26行: i
C.
第19行: int score 第24行: score[i] >= 60 第26行: score[i]
D.
第19行: int score[] 第24行: score[i] < 60 第26行: count
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】在pn结中,p区的多子是空穴,少子是电子。
A.
正确
B.
错误
【判断题】A microprocessor is the most important, and usually the most expensive, component of a computer.
A.
正确
B.
错误
【单选题】Ways of word-formation: zoom
A.
onomatopoeia
B.
blending
C.
conversion
D.
derivation
【简答题】在pn结中,p区的多子是 ,少子是 。
【单选题】The processing speed of a microprocessor is typically represented by its _____ speed.
A.
clock
B.
bit
C.
flash
D.
bus
【判断题】氧脉搏不能作为评定心肺功能的综合指标。( )
A.
正确
B.
错误
【单选题】无菌操作间洁净度应达到?
A.
100级
B.
10000级
C.
100000级
D.
300000级
【单选题】无菌操作间洁净度应达到()级别
A.
A级
B.
B级
C.
C级
D.
D级
【单选题】货币充当商品交换媒介的职能是()
A.
货币是商品
B.
货币是和商品同时产生的
C.
货币是使用价值和价值的统一体
D.
货币的本质是一般等价物
【单选题】你三岁的孩子在玩具店里哭闹,他特别想要买很多玩具,可是你不想给他买那么多,从应对孩子行为的角度出发,你觉得下面哪种做法是有效的( )
A.
给孩子买他想要的玩具,要多少买多少
B.
数落、批评孩子
C.
温和而坚定地将孩子带离发脾气的情境
D.
带孩子去吃冰淇淋作为替代
相关题目: