有程序:DATAA,B,C/4.0,-8.0,3.0/P=B*B-4*A*CIF(P.GE.0.0)THENS=(-B+SQRT(P))/(2*A)T=C/(A*S)P=(S+T)/2ELSES=0T=0ENDIFWRITE(*,*)PEND执行此程序,则运行的结果是:()A、0.0B、1.0C、2.0D、3.0

有程序:DATAA,B,C/4.0,-8.0,3.0/P=B*B-4*A*CIF(P.GE.0.0)THENS=(-B+SQRT(P))/(2*A)T=C/(A*S)P=(S+T)/2ELSES=0T=0ENDIFWRITE(*,*)PEND执行此程序,则运行的结果是:()

  • A、0.0
  • B、1.0
  • C、2.0
  • D、3.0

相关考题:

有以下程序#include stdio.hmain( ){ int n,*p=NULL;*p=n;printf("Input n:"); scanf("%d",p); printf("output n:"); printf("%d\n",p);}该程序试图通过指针 p 为变量 n 读入数据并输出,但程序有多处错误,以下语句正确的是A)int n,*p=NULL;B)*p=n;C)scanf("%d",p)D)printf("%d\n",p);

有以下程序:point(char*p) { *p=’d’; }main(){ char b[4]={’a’,’b’,’c’,’d’},*p=b; Point(p); printf("%c\n",*p);}程序运行后的输出结果是( )。A.a B.b C.c D.d

有以下程序: main() { char s[]="159",*P; P=s; printf("%c",*P++);printf("%c",*P++); } 程序运行后的输出结果是( )。A.15B.16C.12D.59

有以下程序 include main() { int n,*p=NULL; *p=n; printf(" 有以下程序 #include <stdio.h> main() { int n,*p=NULL; *p=n; printf("Input n:");scanf("%d",p);printf("output n:");printf("%d\n",p); } 该程序试图通过指针p为变量n读入数据并输出,但程序有多处错误,以下语句正确的是A.int n,*p=NULL;B.*p=n;C.scanf("%d",p)D.printf("%d\n",p);

有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[] 有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcat(p,r);strcpy(p+strlen(q),q); printf("%d\n",strlen(p)); } 程序运行后的输出结果是A.9B.6C.11D.7

有以下程序:inlucdemain()D)2 3 3{int n,*P=NULL;*p=printf("input n:");scanf("%d 有以下程序: #inlucde<stdio.h> main()D)2 3 3 {int n,*P=NULL; *p=&n; printf("input n:");scanf("%d",&p);printf("output n:");printf("%d\n",p); } 该程序试图通过指针P为变量n读入数据并输出,但程序有多处错误,以下语句正确的是( )。A.int n,*P=NULL;B.*P=&n;C.scanf(“%d",&p)D.printf("%d\n",p);

有以下程序: include point ( char * p) {p + = 3; }main( ) char b[4] = {'a','b','c 有以下程序: #include <stdio.h>point ( char * p) { p + = 3; }main( ) char b[4] = {'a','b','c','d'} , *p=b; point(p); printf( "% c \n" , * p);A.aB.bC.cD.d

有以下程序: include main( ) {char s[ ] ="159" , * p;p=s;printf( "% c", * p + + 有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。A.15B.16C.12D.59

有以下程序includemain(){char *p=“abcde、Ofghjik\0”;printf(“%d\n”,strlen(p));} 程 有以下程序 #include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果A.12B.15C.6D.5

有以下程序: point(char *p){p+=3;} main() {char b[4]={'a','b','c','d',},*p=b; point(p);printf("%c\n",*p); } 程序运行后的输出结果是 ______。A.aB.bC.cD.d

有以下程序:includemain(){char *p="abcde\Ofghjik\0";printf("%d\n",strlen(p));}程 有以下程序: #include <string.h> main() {char *p="abcde\Ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是( )。A.12B.15C.6D.5

有程序段: int * p,a,b=1; p=a; *p=10;a=* p+b; 执行该程序段后,a的值是 ( )A.12B.11C.10D.编译出错

根据液态液化石油气管道设计压力分级规定,Ⅲ级管道的压力分级应为( )。A.p1.6MPa B.1.6 MPa≤P≤4.0MP C.p4.0MPa D.P≤4.0MPa

P态电子云有几种()A.1.0B.2.0C.3.0D.4.0

P态电子云有几种()A、1.0B、2.0C、3.0D、4.0

外门窗的抗风压性能分级为9级时,分级指数值(P3)的范围为()kPa。A、3.5≤P3<4.0B、4.0≤P3<4.5C、4.5≤P3<5.0D、P3≥5.0

程序段G71P0035Q0060U4.0W2.0S500中,Q0060的含义是()。A、精加工路径的最后一个程序段顺序号B、最高转速C、进刀量

下列压力范围中,属于低压管道的是()MPa。A、0P1.6B、1.6P4.0C、4.0P10D、P10

下列选项中,,属高压管道的是()MPa。A、0P1.6B、1.6P4.0C、4.0P10D、P10

压力等级是()的阀门是中压阀门。A、1.6≤P<10MPAB、1.6<P≤10MPAC、1.6≤P≤4.0MPAD、4.0<P≤10MPA

有程序:INTEGERA(3)DATAA/3*1/N=2DO10I=1.NDO10J=1,N10A(I)=A(J)+1WRITE(*,*)A(N)END此程序的运行结果为:()A、1B、2C、3D、4

有程序:DIMENSIONA(4,3)DATAA/3*-1.0,3*-2.0,3*-3.0,3*-4.0/S=0.0DO10K=1,4D=ABS(A(K,1))DO20J=2,3IF(ABS(A(K,J)).GT.D)D=ABS(A(K,J))20CONTINUES=S+D10CONTINUEWRITE(*,*)SEND此程序执行后的结果为:()A、15.0B、12.0C、9.0D、10.0

变压器的励磁电感与对地电容产生铁磁谐振,能产生()过电压。A、3.0~4.0(p.u.)B、2.0~3.0(p.u.)C、1.0~2.0(p.u.)D、4.0(p.u.)

在BASIC源程序中,要求READ与DATAA语句个数相同。()

单选题P态电子云有几种()A1.0B2.0C3.0D4.0

单选题有程序:INTEGERA(3)DATAA/3*1/N=2DO10I=1.NDO10J=1,N10A(I)=A(J)+1WRITE(*,*)A(N)END此程序的运行结果为:()A1B2C3D4

判断题在BASIC源程序中,要求READ与DATAA语句个数相同。()A对B错