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

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

下列程序段的执行结果为()x=Int((69-60)*Rnd+60)SelectCasexCaseIs>=90Print"优秀"Case80To89Print"良好"Case60To79Print"合格"CaseElsePrint"不合格"EndSelect

  • A、优秀
  • B、良好
  • C、合格
  • D、不合格

参考答案

更多 “下列程序段的执行结果为()x=Int((69-60)*Rnd+60)SelectCasexCaseIs=90Print"优秀"Case80To89Print"良好"Case60To79Print"合格"CaseElsePrint"不合格"EndSelectA、优秀B、良好C、合格D、不合格” 相关考题
考题 阅读下面程序,则程序的执行结果为 【10】 。#include "stdio.h"main(){ int a=10;fun(a);printf( "%d\n",a);}fun(int x){ x=50;}

考题 执行以下程序段后,变量x=______,y______。int x=5;int y=0;y = --x * 3;

考题 以下程序段的执行结果为()。includedefinePLUS(x,y)x+yvoid main (){int x=1,y=2, 以下程序段的执行结果为( )。 #include< iostream.h> #definePLUS(x,y) x+y void main () {int x=1,y=2,Z=3,sum: sum=PLUS (x+y,Z) * PLUS (y,Z): cout<<"SUM="<<sum; cout<<endl:}A.SUM=9B.SUM=12C.SUM=18D.SUM=30

考题 执行下列语句段后程序的输出结果是______。int x[]={1,2,3,4,5};int q=x;cout*(++q)<<end1;

考题 阅读下面程序,则程序的执行结果为( )。 include"stdio.h" main() {int a=10; fun(A); printf("%d\n",A);} fun(int x) {x=50;}

考题 以下程序段的执行结果为 include define PLUS(X,Y)X+Y void main( ) { int x= 以下程序段的执行结果为 #include<iostream.h> #define PLUS(X,Y)X+Y void main( ) { int x=1,y=2,z=3,sum; sum=PLUS(x+y,z) * PLUS(y,z); cout < <"SUM=" < < sum; cout< <end1;}A.SUM=9B.SUM=12C.SUM=18D.SUM=30

考题 在下面程序的横线处填上适当的语句,使该程序执行结果为10。 include using namespace 在下面程序的横线处填上适当的语句,使该程序执行结果为10。include <iostream>using namespace std;class MyClass{public:MyClasS(int A){X=a;}【 】//取x的值private:int x;};int main(){MyClass my(10);

考题 以下程序段的执行结果为【】。includedefine PLUS(x, y) x+ yvoid main() { int x=1, y 以下程序段的执行结果为【 】。include<iostream.h>define PLUS(x, y) x+ yvoid main(){int x=1, y=2,z=3,sum;sum=PLUS(x+ y, z)*PLUS(y, z);cout<<"SUM="<<sum;cout<<end1;}

考题 执行下列程序段,结果是includevoid main( ){int x=40; char y='C'; int n; n=(x0xff)(y>'B'); cout<<n;}A.0B.1C.2D.3

考题 执行下列程序段,结果是includevoid main( ){int x=40; char y='C'; int n;?n=(x char y='C'; int n; ? n=(x0) xff) (y>'B') ; cout < < n;}A.0B.1C.2D.3

考题 下列程序段执行后的输出结果为 int x=3; int y=10; System.out. println(y %x) ;A.0B.1C.2D.3

考题 以下程序的执行结果是______。 include class A{ int a: public: void seta(int x) { 以下程序的执行结果是______。include<iostream.h>class A{int a:public:void seta(int x) {a=x;}void showa() {cout<<a<<end1;}};class B{int b;public:void setb(int x) {b=x;}void showb(){cout<<b<<end1;}};

考题 下列程序段的执行结果为 X=2 Y=5 If X * Y 0A.TrueB. 下列程序段的执行结果为 X=2 Y=5 If X * Y <1 Then Y=Y - 1 Else Y=-1 Print Y-X>0A.TrueB.FalseC.-1D.1

考题 下列程序段的输出结果是includevoid fun(int * x,int * y){cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * x,int * y) { cout << * X << * y; *X=3; *y=4; } void main() { int x=1,y=2; fun(y,x); cout << X << y<<endl; {A.2143B.1212C.1234D.2112

考题 以下程序的执行结果是 ______。 include int max(int x,int y) { ret 以下程序的执行结果是 ______。include<iostream.h>int max(int x,int y){return(x>y? x:y);}void main(){int n=2,m=10;max(n,m)--;cout<<"n="<<n<<",m="<<m<<endl;}

考题 有如下程序段includevoid main(){int a=14,b=15,x;char c='A':x=(a 有如下程序段 include<iostream.h> void main() {int a=14,b=15,x; char c='A': x=(a b) (c<'B'=; cout<<x;= 执行该程序段后,x的值为A.tureB.FALSEC.0D.1

考题 下列程序的输出结果为【 】。ineludeint max(int x, int y){return (x 下列程序的输出结果为【 】。inelude<iostream. h>int max(int x, int y){return (x>y? x: y); }void main() {int n=3, m=12;max(m, n)++cout<<"m="<<m<<", n= "<<n<<end1;}

考题 下述程序段的执行结果是()。includeVoid main(){int x; for(x=1;x 下述程序段的执行结果是( )。 #include <stdio.h> Void main() { int x; for(x=1;x<=100;x++) if(++x%3==0) if(++x%4==0) if(++x%7==0) printf("%d",x); }A.75B.76C.77D.84

考题 下面程序段的执行结果是( )。 int x=10; for(;x;x--) { if(x%3) continue; printf("%d",x); }A.875421B.963C.741D.852

考题 有如下程序段:int x=3,do{ x-=2;cout<<x;}while(!(--x));执行这个程序段的输出结果是( )。A.1B.30C.1-2D.死循环

考题 执行下列程序时输入12345678,程序的运行结果是______。 include main() { int x,y; sca 执行下列程序时输入12345678,程序的运行结果是______。 #include<stdio.h> main() { int x,y; scanf("%2d%2d"); printf("%d\n",x+y); }A.17B.46C.15D.9

考题 下列程序段的输出结果是 include void fun(int * X,int * y) {cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * X,int * y) { cout < < * X < < * y; * X=3; * y=4; } void main( ) { int x=1,y=2; fun(y,x); cout < < X < < y < < end1; }A.2143B.1212C.1234D.2112

考题 执行下列程序段,结果是 #include(iostream.h> void main() { int x=40; char y=‘C’;int n; n=(x0xff)(y>‘B’); cout<<n;}A.0B.1C.2D.3

考题 下列程序段的执行结果为()。includeusing namespace std;class example{int n;public: 下列程序段的执行结果为( )。 #include<iostream> using namespace std; class example{ int n; public: example(int i){n=i;} void add(){s+=n;} static int s; void pr(){ cout<<s<<endl; } }; int example::s=0; int fuc(char *x); int main(){ example x(2),y(3),z(4); x. add(); y. add(); z.pr(); return 0; }A.2B.3C.5D.6

考题 下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)A、-36B、1C、-1D、-72

考题 单选题下列程序段的执行结果为()x=Int((69-60)*Rnd+60)SelectCasexCaseIs=90Print"优秀"Case80To89Print"良好"Case60To79Print"合格"CaseElsePrint"不合格"EndSelectA 优秀B 良好C 合格D 不合格

考题 单选题下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)A -36B 1C -1D -72