Private type stu
X as string
Y as integer
E.nd type
Private Sub Command1_Click()
D.im a as stu
a.x=”ABCD”
a.Y=12345
print a
E.nd Sub
程序运行时出现错误,错误的原因是
A.)Type定义语句没有放在标准模块中
B.)变量声明语句有错
C.)赋值语句不对
D.)输出语句print不对
[单选题]有如下语句: Type Student Name As String Age As Integer Sex As String End Type Dim Stu As Student With Stu .Name="张红" .Age=22 .Sex="女" End With 执行Print Stu.Age语句后的结果是A.张红B.22C.“女”D.Age
[单选题]设有如下的记录类型Type StudentnumberAs stringname As Stringage As IntegerE.nd Type则正确引用该记录类型变量的代码是( )。A. Student.name="张红"B. Dim s As Students.name="张红"C. Dim s As Type StudentD. Dim s As Types.name="张红" s.Dame="张红"
[单选题]有如下程序:includemain(){float x=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0£¯x;有如下程序: #include<stdio.h> main() { float x=2.0,y; if(x<0.0) y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; printf("%f/n",y); } 该程序的输出结果是( )。A.0B.0.25C.0.5D.1
[单选题]有如下程序 float fun (int x,int y){return(x+y);} main() { int a=2,b=5,c=8; printf("%3.Of/n",fun((int)fun(a+c,B) ,(a-C) )) } 程序运行后的输出结果为_______。A.编译出错B.9C.21D.9
[单选题]没有如下程序Private Sub Commandl—Click()x=10:u=0F.or i=1 TO 5D.ox=x-2y=y+2Loop Until y>5 Or x<一lNextE.nd Sub运行程序,其中Do循环执行的次数是A.15B.10C.7D.3
[单选题]有如下程序main(){float x=2.0,y;if(x10.0)y=1.0£¯x;else y=1.0;printf("%f有如下程序 main() {float x=2.0,y; if(x<0.0)y=0.0; else if(x>10.0)y=1.0/x; else y=1.0; printf("%f/n",y);} 该程序的输出结果是A.0.000000B.0.250000C.0.500000D.1.000000
[单选题]有如下程序main(){ float x=2.0,y;if(x<0.0)y=0.0;else if(x>10.0)y=1.0/x;else y=1.0;printf("%f/n",y);}该程序的输出结果是A.0.000000B.0.250000C.0.500000D.1.000000
[单选题]有如下程序main(){ float x=2.0,y;if(x<0.0)y=0.0;else if(x<10.0)y=1.0/x;else y=1.0;printf("%f/n",y);}该程序的输出结果是A.0.000000B.0.250000C.0.500000D.1.000000
[单选题]有如下程序:includevoid main(){float x=2.0,y;if(x<0.0)y=0.0;else if(x<10.0)y=1有如下程序: #include<iostream.h> void main() { float x=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; cout<<y; } 该程序的输出结果是A.0B.0.25C.0.5D.1.0
[单选题]有如下程序includevoid main(){ float X=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y有如下程序 #include<iostream.h> void main() { float X=2.0,y; if(x<0.0)y=0.0; else if(x<10.0)y=1.0/x; else y=1.0; cout<<y; } 该程序的输出结果是A.0B.0.25C.0.5D.1