• 2022-07-28 问题

    冒泡排序算法描述如下: 它的时间复杂度为:;空间复杂度为def bubble(score):n = len(score)for i in range(n-1):for j in range(n-1-i):if(score[j]>;score[j+1]):score[j],score[j+1] = score[j+1],score[j]

    冒泡排序算法描述如下: 它的时间复杂度为:;空间复杂度为def bubble(score):n = len(score)for i in range(n-1):for j in range(n-1-i):if(score[j]>;score[j+1]):score[j],score[j+1] = score[j+1],score[j]

  • 2022-07-28 问题

    若有定义int score[10];,则对score数组中的元素的正确引用是( ) A: score[10] B: score[6.0] C: score[0] D: score(7)

    若有定义int score[10];,则对score数组中的元素的正确引用是( ) A: score[10] B: score[6.0] C: score[0] D: score(7)

  • 2022-06-04 问题

    score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读下面代码,程序运行结果是()temp=score&#91;0&#93;;for(intindex=1;index<5;index++){if(score&#91;index&#93;temp=score&#91;index&#93;;}} A: 求最大数 B: 求最小数 C: 找到数组最后一个元素 D: 编译出错

    score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读下面代码,程序运行结果是()temp=score&#91;0&#93;;for(intindex=1;index<5;index++){if(score&#91;index&#93;temp=score&#91;index&#93;;}} A: 求最大数 B: 求最小数 C: 找到数组最后一个元素 D: 编译出错

  • 2022-06-18 问题

    设已定义:float score&#91;N&#93;&#91;2&#93;={{89,90},{92,93},{78,95},{100,98},{96,94},{96,97}};则元素score&#91;1&#93;&#91;1&#93;的正确初值是() A: 89 B: 90 C: 92 D: 93

    设已定义:float score&#91;N&#93;&#91;2&#93;={{89,90},{92,93},{78,95},{100,98},{96,94},{96,97}};则元素score&#91;1&#93;&#91;1&#93;的正确初值是() A: 89 B: 90 C: 92 D: 93

  • 2022-06-04 问题

    temp = score&#91;0&#93;; for (int index = 1;index < 5;index++) { if (score&#91;index&#93; < temp) {temp = score&#91;index&#93;; }} score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读上面代码,程序运行结果是【 】 A: 求最大数 B: 求最小数 C: 找到数组最后一个元素 D: 编译出错

    temp = score&#91;0&#93;; for (int index = 1;index < 5;index++) { if (score&#91;index&#93; < temp) {temp = score&#91;index&#93;; }} score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读上面代码,程序运行结果是【 】 A: 求最大数 B: 求最小数 C: 找到数组最后一个元素 D: 编译出错

  • 2022-06-07 问题

    以下程序可计算10名学生1门课成绩的平均分。划线处应填入______。‏#include "iostream"‏using namespace std;‏ ‏void average(float array&#91;&#93;,int n)‏{ ‏ int i=1;‏ while(i&#91;n)‏ array&#91;0&#93;+=array&#91;i++&#93;;‏ array&#91;i-1&#93;=array&#91;0&#93;/n;‏}‏int main()‏{ ‏ float score&#91;10&#93;;‏ int i;‏ for(i=0;i<10;i++)‏ cin&#93;>score[i];‏ ____________;‏ cout<<score&#91;9&#93;;‏ system("pause");return 0;‏}‏‎‏[/i]

    以下程序可计算10名学生1门课成绩的平均分。划线处应填入______。‏#include "iostream"‏using namespace std;‏ ‏void average(float array&#91;&#93;,int n)‏{ ‏ int i=1;‏ while(i&#91;n)‏ array&#91;0&#93;+=array&#91;i++&#93;;‏ array&#91;i-1&#93;=array&#91;0&#93;/n;‏}‏int main()‏{ ‏ float score&#91;10&#93;;‏ int i;‏ for(i=0;i<10;i++)‏ cin&#93;>score[i];‏ ____________;‏ cout<<score&#91;9&#93;;‏ system("pause");return 0;‏}‏‎‏[/i]

  • 2022-06-07 问题

    以下程序可计算10名学生1门课成绩的平均分。划线处应填入______。#include "iostream"using namespace std; void average(float array&#91;&#93;,int n){ int i=1; while(i&#91;n) array&#91;0&#93;+=array&#91;i++&#93;; array&#91;i-1&#93;=array&#91;0&#93;/n;}int main(){ float score&#91;10&#93;; int i; for(i=0;i<10;i++) cin&#93;>score[i]; ____________; cout<<score&#91;9&#93;; system("pause");return 0;}[/i]

    以下程序可计算10名学生1门课成绩的平均分。划线处应填入______。#include "iostream"using namespace std; void average(float array&#91;&#93;,int n){ int i=1; while(i&#91;n) array&#91;0&#93;+=array&#91;i++&#93;; array&#91;i-1&#93;=array&#91;0&#93;/n;}int main(){ float score&#91;10&#93;; int i; for(i=0;i<10;i++) cin&#93;>score[i]; ____________; cout<<score&#91;9&#93;; system("pause");return 0;}[/i]

  • 2021-04-14 问题

    下面代码的输出结果是()。 <?php $score=87; if($score>=90 && $score<=100){$grade="优秀";} if($score>=80){$grade="良好";} if($score>=70){$grade="一般";} if($score>=60){$grade="及格";} else{$grade="不及格";} echo $grade; ?>

    下面代码的输出结果是()。 <?php $score=87; if($score>=90 && $score<=100){$grade="优秀";} if($score>=80){$grade="良好";} if($score>=70){$grade="一般";} if($score>=60){$grade="及格";} else{$grade="不及格";} echo $grade; ?>

  • 2022-06-09 问题

    以下参数传递正确的是: A: def score(mid_score, end_score): ……score(88, 79) B: def score( *,mid_score, end_score, mid_rate=0.4): ……score(88, 79) C: def score( *,mid_score, end_score, mid_rate=0.4): ……score(end_score = 79, mid_score = 88) D: def score( *,mid_score, end_score, mid_rate=0.4): ……score(mid_score = 88, end_score = 79,0.5)

    以下参数传递正确的是: A: def score(mid_score, end_score): ……score(88, 79) B: def score( *,mid_score, end_score, mid_rate=0.4): ……score(88, 79) C: def score( *,mid_score, end_score, mid_rate=0.4): ……score(end_score = 79, mid_score = 88) D: def score( *,mid_score, end_score, mid_rate=0.4): ……score(mid_score = 88, end_score = 79,0.5)

  • 2022-06-07 问题

    There are ________students playing basketball in the room. A: score of B: scores of C: two score D: two score of

    There are ________students playing basketball in the room. A: score of B: scores of C: two score D: two score of

  • 1 2 3 4 5 6 7 8 9 10