网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
填空题
下列程序运行结果为()。 Program main Implicit none Integer::floor=5,i Do i=1, floor If(i==3)cycle If(i==4)cycle Write(*,*)i End do end
参考答案
参考解析
解析:
暂无解析
更多 “填空题下列程序运行结果为()。 Program main Implicit none Integer::floor=5,i Do i=1, floor If(i==3)cycle If(i==4)cycle Write(*,*)i End do end” 相关考题
考题
program exam(output); var x,y,x:integer; proedure silly(x:integer;vary:integer); begin x:=5;y:=6;z:=3; writeln(x,y,z) end; begin x:=1;y:=2;z:=3; silly(x,y); writeln(x,y,z) end. 以上程序运行结果为().
A567 563B567 567C567 167D567 163
考题
下列程序的运行结果为includeint i=0;class A{public: A( ){i++;}};void main( ){
下列程序的运行结果为 #include<iostream.h> int i=0; class A{ public: A( ){i++;} }; void main( ) { A a,b[3] ,*c; c=b; cout << i << end1; }A.2B.3C.4D.5
考题
请分析下列程序。 int main() { printf("This is in main program"); if(fork()==0) printf("I am in child process"); else printf("I am in parent process");} 程序正确运行后结果是A.This is in main program I am in child process I am in parent processB.This is in main program I am in child processC.This is in main program I am in parent processD.This is in main program I am in child process This is in main program I am in parent process
考题
下列程序的运行结果为() include main() {struc tdate {int year,month,day; )today;
下列程序的运行结果为( )#include<stdio.h>main(){ struc tdate{int year,month,day;)today;printf("%d\n",sizeof(struct date));}A.8B.6C.10D.12
考题
下列程序的运行结果为 include int i=0; class A { public: A( ) {i++;} }; void m
下列程序的运行结果为#include<iostream.h>int i=0;class A {public:A( ) {i++;}};void main( ){A a,b [3] , * c;c=b;cout < < i < < endl;}A.2B.3C.4D.5
考题
下列程序的运行结果为 include void main( ) { int a=2; int b=a+1; cout
下列程序的运行结果为#include<iostream.h>void main( ){int a=2;int b=a+1;cout < < a/b < < endl;}A.0.66667B.0C.0.7D.0.66666666…
考题
下面程序运行时输出的结果为C:\Program Files is a directory.将程序补充完整。Import java.io.*;public class DirTest {public static void main(String[] args) {File myDir=Flew File("C:/Program Files/");System.out.println(myDir+(______.isDirectory()?"is":"is not")+"a directory.");}}
考题
下列程序中,实现将封装数据类型Integer和基本数据类型int之间的转换,以及Integer,int类型和String类型之间的转换。请将程序补充完整。程序运行结果如下:123456456public class ex7_1{public static void main(String[]args) {Integer intObj;int n;String s;intObj = new Integer(123);n=intObj.__________;System.out.printin(Integer.toString(n));s=new String("456");intObj=Integer._________;System.out.println(intObj.__________);n=Integer.parseInt(s);System.out.println(Integer.toString(n));}}
考题
下列程序的运行结果为______。 include void main( ) { int i; for(i=1;i
下列程序的运行结果为______。include<iostream.h>void main( ){int i;for(i=1;i<6;i++)if(i==3)break;cout<<"i="<<i<<endl;}
考题
阅读下列程序: Function func(n As Integer)As Integer Sum = 0 For i = 1 To n Sum = Sum + (i + 1)* i Next i func = Sum End Function.Private Sub Command1_Click () Dim a As Integer a= 5 s = func (A)Print s End Sub 程序运行后,单击命令按钮,输出的结果为A.80B.60C.70D.15
考题
下列程序的运行结果为【】。 include void main(void) {int a=2,b=-1,c=2; if(a
下列程序的运行结果为【 】。include<iostream.h>void main(void){int a=2,b=-1,c=2;if(a<b)if(b<0)c=0;else c=c+1;cout<<c<<endl;}
考题
在窗体上画一个命令按钮,然后编写如下程序 Private Sub Command4 Click() Dim a As Integer,b As Integer a=1 b=2 Print N(a,B)End Sub Function N(x As Integer,y As Integer)As Integer N=IIf(x>y,x,y) End Function 程序运行后,单击命令按钮,输出结果为A.lB.2C.5D.8
考题
下面程序的运行结果为【】。 include void fun(intx=0,iot y=0) {cout
下面程序的运行结果为【 】。include<iostream.h>void fun(intx=0,iot y=0){cout<<X<<y;}Void main(){fun(5);}
考题
下列程序段的运行结果是______。Dimnum As Integer,a As Integer,b As Integera=88:b=24DoWhile b<>0num=a Modba=bb=numWendPrintaLoop
考题
下列程序的运行结果为______。 #define MS DOS #ifdef MS DOS #define INTEGER SIZE 32 #else #define INTEGER SIZE 16 #endif main () { printf ("integer_size=%d\n", INTEGER_SIZE); }A.integersize=32B.integer_size=16C.integersize=32,integer_size=16D.错误
考题
下列程序的运行结果是()。 include main() {static char a[]="Languagef",b[]="program
下列程序的运行结果是( )。#include<stdio.h>main(){ static char a[]="Languagef",b[]="programe";Char*p1,*p2;int k;p1=a;p2=b;for(k=0;k<=8;k++)if(*(p1+k)==*(p2+k))printf("%c",*(p1+k));}A.gaeB.angC.programD.有语法错
考题
下列程序的运行结果为includeint i=0;class A{public:A(){i++;}};void main(){Aa,b
下列程序的运行结果为 #include<iostream.h> int i=0; class A{ public: A(){i++;} }; void main() { Aa,b[3],*c; c=b; cout<<i<<end1;A.2B.3C.4D.5
考题
填空题下列程序的运行结果是()。 Program test Implicit none Integer::sum,i sum=0.0 do i=1,203,2 sum=sum+i end do write(*,*) i end
考题
填空题下列程序的运行结果是()。 Program test Implicit none Complex a,b,c A=(1.0,2.0) b= (2.0,4.0) c=a+b Write(*,*) c Stop end
考题
填空题下列程序的运行结果是()。 Program main implicit none integer, target :: a=1 integer, pointer :: p p=a p=3 write(*,*)a end
考题
填空题下列程序的运行结果是()。 Program test Implicit none Integer::i Integer::a(5)=(/ (i, i=1,5) /) Integer::b(5)=0 Where (a3) b=a End where Write(*,”(5(i3,1x))”) b end
考题
填空题下列程序的运行结果是()。 Program main implicit none integer ::a=1 integer ::b=2 call add ( a ) Call add ( b) Write(*,*) a , b Stop end Subroutine add (sum) Implicit none integer :: sum sum=sum+1 Return end
考题
填空题下列程序的运行结果是()。 Program test Implicit none Integer,parameter:: limit=10 Integer counter Integer:: ans=0 Counter=2 do while(counter=limit) ans=ans+counter counter=counter+2 end do Wrte(*,*)ans end
考题
填空题下列程序的运行结果是()。 Program test Implicit none Integer::i Integer::a(5) Forall ( i=1:5 ) A(I)=5 End forall Write(*,*)a Stop end
热门标签
最新试卷