网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序的输出结果是()。 score=80 if score<60: print('不及格') else: pass

A.不及格

B.pass

C.报错

D.无输出


参考答案和解析
不及格
更多 “下面程序的输出结果是()。 score=80 if score<60: print('不及格') else: passA.不及格B.passC.报错D.无输出” 相关考题
考题 下面程序的输出结果是。score80ifscore60print成绩为dscore,end,print不及格() A、成绩为80,不及格B、成绩为80C、不及格D、无输出

考题 有以下程序: struct STU { char num[10]; float score[3];); main() { struct stu s[3]={{"20021",90,95,85}, {"20022",95,80,75}, {"20023",100,95,90}},*p=s; int i; float sum=0; for(i=0;i<3,i++) sum=sum+p->score[i]; printf("%6.2f\n",sum); } 程序运行后的输出结果是( )。A.260B.270C.280D.285

考题 ( 8 )阅读下列程序段public class OperatorsAndExpressions {String conditionalExpression ( int score ) {String result;//如果 score 超过 60 分,则结果是 passed, 否则是 doesn't passresult= ( score=60 ) ?"passed":"doesn't pass" :System.out.println ( result ) ;return result;}public static void main ( String args[] ){OperatorsAndExpressions perAndExp=new OperatorsAndExpressionsQ;//条件表达式OperAndExp. conditionalExpression ( 65 ) ;}}其执行结果是 【 8 】

考题 阅读下面程序public class OperatorsAndExpressions {String conditionalExpression(int score) {String result;//如果score超过60分,则结果是passed,否则是doesn't passresult=(score>=60)?"passed":"doesn't pass":System.out.println(result);return result;}public static void main(String args[]) {OperatorsAndExpressions perAndExp=new OperatorsAndExpressions();//条件表达式OperAndExp.conditionalExpression(65);}}程序的执行结果是______。

考题 下列程序的执行结果是( )。 Privaae Sub Form_Activate Dim score(3)As Integer,total As Integer Dim aa_score As Variant score(1)=50:score(2)=14:score(3)=36 total=0:i=0 For Each aa_score In score i=i+1 total=total+aa_score Print i,aa_score,total Next End SubA.1 0 0 2 50 50 3 14 64 4 36 100B.1 50 50 2 14 64 3 36 100C.0 50 50 1 14 64 2 36 100 3 36 100D.0 0 0 1 50 50 2 14 64

考题 下面程序和运行运行结果是【 】。typedef union student{ char name [10];long sno;char sex;float score [4];} STU;main ( ){ STU a[5];prinff( "% d\n", sizeof(a) );}

考题 运行下面程序后,正确的输出结果是 ______。Private Sub Command1_ Click() x = 6 if x >6 then Print "x>6": Else if x <8 then Print "x<8"; Else if x = 6 then Print "x=6": End if End if End ifEnd SubA.x<8 x=6B.x<8C.x=6D.x<8或x=6

考题 已知x代表某个百分制成绩,下列程序段用于显示对应的五级制成绩,正确的是( )A.If x>=60 Then Print"及格" Else If x>=70 Then Print"中" Else If x>=80 Then Print"良" Else If x>=90 Then Print"优" Else Print"不及格" End IfB.If x<90 Then Print"良" Else If x<80 Then Print"中" Else If x<70 Then Print"及格" Else If x<60 Then Print"不及格" Else Print"优" End IfC.If x>=90 then Print"优" Else If x>=80 Then Print"良" Else If x>=70 Then Print"中" Else If x>=60 Then Print"及格" Else Print"不及格" End If End SelectD.Select Case x Case x>=90 Print"优" Case x>=80 Print"良" Case x>=70 Print"中" Case x>=60 Print"及格" Case Else Print"不及格"

考题 关系SC(S,SNAME,SEX,SCORE,CNAME),从关系SC中检索男生(SEX =M)并且成绩大于等于60的学生姓名,下述表示( )是正确的。Ⅰ.ЛSNAME(σSCORE>60□SEX='M'(SC))Ⅱ.σSCORE>=60□SEX='M'(ЛSNAME(SC))Ⅲ.ЛSNAME(σSCORE>=60□SEX='M'(ЛSNAME,SCORE,SEX(SC))A.Ⅰ和ⅡB.ⅡC.Ⅰ和ⅢD.Ⅰ

考题 在窗体中添加一个命令按钮(其Name属性为Command1),然后编写如下代码: Pfivme Sub Command1_Click( ) score=Iht(Rnd*10)+70 Select Case score Case ls<60 a$=“F” Case 60 T069 a$=“D” Case 70 To 79 a$=“C” Case 80 To 89 a$=“B” Case Else a$=“A” End Select Print aS End Sub 程序运行后,单击命令按钮,输出结果是A.AB.BC.CD.D

考题 下列程序 Private Sub form_Click() score=Int(Rnd * 10)+80 Select Case score Case Is<60:a$="F" Case 60 To 69:a$="D" Case 70 To 79:a$="C" Case 80 To 89:a$="B" Case Else:a$="A" End Select Print a$ End Sub 运行时输出的结果是A.FB.DC.CD.B

考题 下面程序段执行结果为x=Iht(Rnd()+4)Select Case x Case 5 Print"excellent" Case 4 Print"good" Case 3 Print"paSS" Case Else Print "fail"End SelectA.excellentB.goodC.passD.fail

考题 下面程序的运行结果是typedef union student{ char name[10]; long sno; char sex; float score[4];}STU;main(){ STU a[5]; printf("%d\n",sizeof(a));}

考题 有以下程序段struct STU{ char num[10];float score[3];};main(){ struct STU s[3]={ {"20021",90,95,85}, {"20022",95,80,75}, {"20023",100,95,90}, },*p=s; int i;float sum=0; for(i=0;i3;i++) sum=sum+p-score[i]; printf("%6.2f\n",sum); }程序运行后的输出结果是A.260.00 B.270.00 C.280.00 D.285.00

考题 下面程序段执行结果为( )。 x=Int(Rnd()+4) Select Case x Case 5 Print"excellent" Case4 Print"good" Case 3 Print"pass" Case Else Print"fail" End SelectA.excellentB.goodC.passD.fail

考题 有以下程序:include struct STU{char name[10]; int num; int Score;};main(){struct 有以下程序: #include <stdio.h> struct STU { char name[10]; int num; int Score; }; main() { struct STU s[5]={{"YangSan",20041,703},{"LiSiGuo",20042,580}, {"WangYin",20043,680},{"SunDan",20044,550}, {"Penghua",20045,537}}, *p[5],*t; int i,j; for(i=0;i<5;i++) p[i]=s[i]; for(i=0;i<4;i++) for(j=i+1;j<5;j++) if(p[i]->Score>p[j]->Score) { t=p[i];p[i]=p[j];p[j]=t;} printf("%d%d\n",s[1].Score,p[1]->Score); } 执行后的输出结果是( )。A.550 550B.680 680C.580 550D.580 680

考题 本题统计score[]={37,89,63,60,59,78,91)中成绩不及格的人数。public class javal{public static void main(String[]args){int score[]={37,89,63,60,59,78,91),int sum=0:int i=0;while(i<score.length){if(score[i]>=60){;;};i++;}System.OUt.println("below 60 sum:"+sum);}}

考题 score是一个整数数组,有五个元素,已经正确初始化并赋值,仔细阅读下面代码,程序运行结果是( )temp=score[0];for(intindex=1;indexif(score[index]temp=score[index];}}A.求最大数B.求最小数C.找到数组最后一个元素D.编译出错

考题 有以下程序 struct STU { char name[10]; int num; int Score; { main() { struct Stu s[5]={{"YangSan",20041,703},{"LiSiGuo",20042,580}, {"WangYin",20043,680},{"SunDan",20044,550}, {"Penghua",20045;537}},*p[5],*t; int i,j; for(i=0;i<5;i++)p[i]=s[i]; for(i=0;i<4;i++) for(j=i+1;j<5;j++) if(p[i]->Score>p[j]->Score) {t=p[i];p[i]=p[j];p[i]=t;} printf("%d%d\n",s[1].Score,p[1]->Score); } 执行后输出结果是A.550550B.680680C.580550D.580680

考题 有关系SC(S-ID,C-ID,AGE,SCORE),查找成绩大于60分的学生的学号和成绩,用如下的关系代数表达式表示正确的是(其中Л为投影操作符,为选择操作符)( )。Ⅰ.ЛS-ID,SCORE(σSCORE>60(SC))Ⅱ.σSCORE>60(ЛS-ID)SCORE(SC))Ⅲ.ЛS-ID,SCORE(σSCORE,60(ЛS-ID,SCORE,AGE(SC)A.只有Ⅰ正确B.Ⅰ、Ⅲ正确C.Ⅰ、Ⅱ正确D.都正确

考题 下列程序段的执行结果为 a=75 If a > 60 Then Score=1 If a > 70 Then Score=2 If a > 80 Then Score=3 If a > 90 Then Score=4 Print "Score= ";ScoreA.Score=1B.Score=2C.Score=3D.Score=4

考题 有关系模式S(Sno,Sname,Age,Dept);C(Cno,Cname,Teacher);SC(Sno,Cno,Score)。下列查询结果相同的是()。A.πSname((S)σScore>60(SC)) B.πSname(σScore>60(SSC)) C.σScore>60(πSname(SSC)) D.σScore>60(πSname(S)(SC))

考题 a=10ifa==10:print(a-10)else:print[a]程序的输出结果是()。A、0B、10C、-10D、程序异常

考题 学生成绩表grade中有字段score(float),现在要把所有在55分至60之间的分数提高5分,以下sql语句正确的是()A、Update grade set score=score+5B、Update grade set score=score+5 where score=55 or score =60C、Update grade set score=score+5 where score between 55 and 60D、Update grade set score=score+5 where score =55 and score =60

考题 单选题学生成绩表grade中有字段score(float),现在要把所有在55至60分之间的分数提高5分,以下SQL语句正确的是()。A Update grade set score=score+5 where score in 55..60B Update grade set score=score+5 where score =55 AND score =60C Update grade set score=score+5 where score between 55 or 60D Update grade set score=score+5 where score =55 and score =60

考题 单选题有以下程序:#include #include typedef struct stu{ char name[10]; char gender; int score;}STU;void f(char *name, char *gender, int *score){ strcpy(name,Qian); *gender='f'; *score=350;}main(){ STU a={Zhao,'m',290},b; b=a; f(b.name,b.gender,b.score); printf(%s,%c,%d,, a.name, a.gender, a.score); printf(%s,%c,%d, b.name, b.gender, b.score);}程序运行后的输出结果是(  )。A Zhao,m,290,Qian,f,350B Qian,m,290,Zhao,m,290C Zhao,m,290,Zhao,m,290D Zhao,m,290,Qian,m,290

考题 单选题a=10ifa==10:print(a-10)else:print[a]程序的输出结果是()。A 0B 10C -10D 程序异常

考题 单选题有以下程序:#include #include typedef struct stu{ char name[10]; char gender; int score;}STU;void f(STU *c){ strcpy(c-name,Qian); c-gender='f'; c-score=350;}main(){ STU a={Zhao,'m',290},b; b=a; f(b); printf(%s,%c,%d,, a.name, a.gender, a.score); printf(%s,%c,%d, b.name, b.gender, b.score);}程序运行后的输出结果是(  )。A Zhao,m,290,Qian,f,350B Zhao,m,290,Qian,m,290C Zhao,m,290,Zhao,m,290D Zhao,m,290,Qian,m,350