单选题有程序:DIMENSION(4,4)READ(*,*)AWRITE(*,10)A10FORMAT(1x,6E9.2)END此程序执行后的输出结果的记录数为:()A2B3C4D16
单选题
有程序:DIMENSION(4,4)READ(*,*)AWRITE(*,10)A10FORMAT(1x,6E9.2)END此程序执行后的输出结果的记录数为:()
A
2
B
3
C
4
D
16
参考解析
解析:
每条记录输出6个数,共有16个数组元素,共存放16个数,因此要分为3条记录进行输出。
相关考题:
有以下程序:void main(){ int k=10,n=0; for(;nk;) { //n++; if(n++%3!=0)continue; k--; } printf("%d,%d\n",k,n);}程序运行后的输出结果是( )。A.7,7 B.6,6 C.3,3 D.4,4
在Visual FoxPro 中说明数组的命令是( )。A) DIMENSION和ARRAYB) DECLARE和ARRAYC) DIMENSION和DECLARED) 只有DIMENSION
下列程序段执行后,内存变量sl的值是( )。 s1=networksl=stuff(sl,4,4,BIOSnetworksl=stuff(sl,4,4,BIOS)? s1A.networkB.netBl0SC.netD.BIOS
下面程序的输出结果是( )。 main() {struct m1{int a;int b;}en[2]={1,3,2,7); printf("%d\n",en[0].b/en[0].a*en[1].a);A.6B.0C.1D.3
阅读下列FORTRAN程序:DIMENSION M(6)READ(*,*)MDO 10 J=l,6 DO 10 K=J,6 IF(M(K)LTM(J))THEN N=M(K)M(K)=M(J)M(J)=N END IF 10 CONTINUEWRITE(*,100)(M(I),I=1,6)100 FORMAT(2X,614)END键盘输入10,7,9,2,1,3;程序运行后的输出结果是:A. 1 2 3 7 9 10B. 10 9 7 3 2 1C. 7 9 2 1 3 10D. 3 1 2 9 7 10
已知顺序数据文件FILE3.DAT 有如下数据: 50,54,64,65 65,70,85,90 46,73,60,72阅读FORTRAN 程序 DIMENSION M(12) OPEN(10,FILE=’FILE3.DAT’) READ(10,*)(M(I),I=1,12) DO 10J=1,12 IF (M(J).GE.60) N=N+110 CONTINUE WRITE(*,20) N20 FORMAT(2x,’N=’,12) END程序输出后的结果是:(A)N=7 (B)N=8(C)N=4 (D)N=9
下列哪几项照度标准值分级表述和国家标准规范要求一致?(A)0.5、1、3、5、10(1x)(B)10、20、30、50、70、100(1x)(C)100、200、300、500、700、1000(1x)(D)1500,2000,3000,5000(1x)
有程序:READ(*,50)SWRITE(*,100)S50FORMAT(1X,F7.3)100FORMAT(1X,F8.3)END执行此程序,由键盘输入123456789,则输出S的值为:()A、1234.576B、2345.678C、345.678D、*******
有程序:F1(x)=2.0/(1.0+x)F2(Y)=F1(Y)*Y+1.0A=F1(1.0+F2(1.0)WRITE(*,10)A10FORMAT(1x,E8.2)END此程序执行后的输出结果为:()A、3.00B、3.0C、3.00E+00D、30E+01
有程序:READ(*,100)A100FORMAT(3x,F6.2)WRITE(*,200)A200FORMAT(1x,F8.2)END当执行此程序时,从键盘输入1234567890↙,则程序的运行结果是:()A、4567.89B、1234.56C、******D、1234.5
单选题阅读下列FORTRAN程序: CHARACTER*10 A, B*6 DO 10 I=1,10 A(I:I)=' ' 10 COUNTINUE A(1:5)='ABCDE' B='FGHIJK' A(4:9)=B WRITE(*,100) A 100 FORMAT(1X,A) END 程序运行结果是()A ABCDEFGHIJB ABCDEGHIJKC ABCFGHIJKD BCDEFGHIJK
单选题有程序:READ(*,50)SWRITE(*,100)S50FORMAT(1X,F7.3)100FORMAT(1X,F8.3)END执行此程序,由键盘输入123456789,则输出S的值为:()A1234.576B2345.678C345.678D*******
单选题阅读下列程序 K(X,Y)=X/Y+X A=-2.0 B=4.0 B=1.0+K(A,B) WRITE(*,10)B 10 FORMAT(1X,F4.1) END 程序运行结果是()A-1.0B1.0C2.0D3.0
单选题有程序:ADD(X,Y)=X**2+YOPEN(8,FILE=‘F’,STATUS=‘NEW’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTED’,REAL=16DO10I=1,4D=ADD(REAL(I),2、0)WRITE(8,REC=I)D10CONTINUECLOSE(8)OPEN(2,FILE=‘F’,STATUS=‘OLD’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTFED’,REAL=6DO20I=2,4,2READ(2,REC=I)CWRITE(*,30)C20CONTINUE20FORMAT(1x,F4.1)CLOSE(2)END执行此程序的结果是:()A3.0;11.0B6.0;11.0C6.0;18.0D11.0;18.0
单选题有程序:READ(*,100)A100FORMAT(3x,F6.2)WRITE(*,200)A200FORMAT(1x,F8.2)END当执行此程序时,从键盘输入1234567890↙,则程序的运行结果是:()A4567.89B1234.56C******D1234.5
单选题You need to meet the business requirements of the packaging department. What should you do?()AAdd the ProductSize data table and the ProductSizeDescriptor column to the Product dimension. Set the order of the ProductSKU attribute to the ProductSizeDescriptor column.BAdd the ProductSize data table as a dimension and then add this dimension to the cube as a Referenced dimension. Set the order of the key attribute of the ProductSize dimension to the ProductSizeDescriptor column.CAdd the ProductSize data table and the ProductSizeDescriptor column to the Product dimension. Create a user-defined hierarchy that has ProductSKU as the top-level attribute and ProductSizeDescriptor as the bottom-level attribute.DAdd the ProductSize data table as a dimension and then add this dimension to the cube as a Referenced dimension. Create a user-defined hierarchy within the ProductSize dimension. Set the ProductSizeDescriptor attribute as the top-level attribute.
单选题有以下程序#includemain(){ ints,t,A=10; doubleB=6; s=sizeof(A); t=sizeof(B); printf(%d,%d,s,t);}在VC++2010平台上编译运行,程序运行后的输出结果是( )。A3,4B4,4C4,8D10,6
单选题阅读下列程序 DIMENSION M(3,3) DATA M/1,2,3,4,5,6,7,8,9/ WRITE(*,100)(M(3,J),J=1,3) 100 FORMAT(1X,3I2) END 程序运行结果是()A 2 5 8B 3 6 9C 4 5 6D 7 8 9
单选题阅读下列程序 INTEGER A(100),G READ(*,*)N,(A(I),I=1,N) DO 10 I=1,N-1 G=I DO 20 J=I+1,N IF(A(J).LT.A(G))THEN G=J ENDIF 20 CONTINUE K=A(I) A(I)=A(G) A(G)=K 10 CONTINUE WRITE(*,’(1X,10I2)’)(A(I),I=1,N) END 程序运行时输入的初始值是3,6,9,8,则运行结果是()A 6 9 8B 8 9 6C 6 8 9D 9 8 6