题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-04 04:01:56

[单选题]第257题 (1.0分)
运行以下程序,输出结果是().
For I=1 To 3
Cls
Print"I=",I;
Next
A.123
B.3
C.I=1I=2I=3
D.I=3

更多"[单选题]第257题 (1.0分)运行以下程序,输出结果是().For"的相关试题:

[单选题]第257题 (1.0分)
运行以下程序,输出结果是().
For I=1 To 3
Cls
Print"I=",I;
Next
A.123
B.3
C.I=1I=2I=3
D.I=3
[单选题]运行以下程序,输出结果是().
For I=1 To 3
Cls
Print"I=",I;
Next
A.123
B.3
C.I=1I=2I=3
D.I=3
[单选题]运行以下程序后,输出的图形是().
For r=0 To 150
Circle(320,240),r
For i=1 To l000
Next i
Next r
A.一个半径逐渐变小的空心圆
B.一个固定的空心圆
C.一个半径逐渐变大的空心圆
D.一个固定的实心圆
[单选题]运行以下程序后,输出的图形是().
For k=100 To 200
PSet(2*k,k)
Next k
A.两条相互平行的直线
B.两条分离的斜线
C.两条交叉的斜线
D.一条直线
[单选题]41题 (1.0分)运行以下程序后,输出的图形是().F.or k=100 To 200 P.Set(2*k,k) N.ext k
A.两条相互平行的直线
B.两条分离的斜线
C.两条交叉的斜线
D.一条直线
[单选题] 在Java中,以下程序编译运行后的输出结果为( )。
Public class Test {
Int x, y;
Test(int x, int y) {
This.x = x;
This.y = y;
}
Public static void main(String[] args) {
Test pt1, pt2;
Pt1 = new Test(3, 3);
Pt2 = new Test(4, 4);
System.out.print(pt1.x + pt2.x);
}
}
A. 6
B. 3 4
C. 8
D. 7
[单选题]31题 (1.0分)运行以下程序后,输出的图形是().F.or r=0 To 150C.ircle(320,240),rF.or i=1 To l000 N.ext iN.ext r
A.一个半径逐渐变小的空心圆
B.一个固定的空心圆
C.一个半径逐渐变大的空心圆
D.一个固定的实心圆
[单选题]运行以下程序,若输入China#<回车>,则输出结果为( )。
#include
Using namespace std;
Int main()
{
int c1=0,c2=0; char ch;
while ((ch=getchar())!='#')
switch (ch)
{ case 'a':
case 'h':c2++;
default: c1++;
}
cout << c1 << "," << c2 << endl;
return 0;
}
A. 2,0
B. 5,0
C. 5,5
D. 5,2
[单选题]以下程序段运行后的输出结果是( )。
Int main()
{ char str[][9]={"hello", "student", "computer"};
cout << str[1];
return 0;
}
A. h
B. hello
C. student
D. computer
[单选题]以下程序运行后输出结果是( )
#include
Using namespace std;
Int
A,b;
Void f()
{ int x=20,y=25;
a=a+x+y;
b=b+x-y;
}
Int main()
{ int x=9,y=7;
a=x+y;b=x-y;
f();
cout << a << "," << b << endl;
return 0;
}
A. 61,-3
B. 16,2
C. 25,-5
D. 以上都不正确
[单选题]以下程序输出结果是 。 #include "stdio.h" void f (); main() {int a; for(a=1;a<=3;a++) fun(); } void fun() {static int i=1; i+=3; printf("%2d",i); }
A.4 7 10
B.4 4 4
C.4 5 6
D.4 6 8
[单选题]以下程序输出结果是()。        main() { int m=5; if(m++>5) printf("%d\n",m); esle printf("%d\n",m- -); }
A.7
B.6
C.5
D.4
[简答题]以下程序输出的最后一个值是____。
#include
Using namespace std;
Int ff(int n)
{ static int f=1;
f=f*n;
return (f);
}
Int main( )
{ for (int i=1;i<=5;i++)
cout << ff(i) << endl;
return 0;
}
[单选题]编译并运行以下程序段的结果是:( )
Public class MyClass{
Final static int i;
MyClass(){i =0;}
Public static void main(String args[]){
System.out.println(i);
}
}
A.编译出错
B.null
C.1
D.0
[单选题]运行如下程序,输出结果是( )。
#include
Using namespace std;
Int main(){
int a=2,b=-1,c=2;
if(a if(b<0) c=0;
else c+=1;
cout << c << endl;
return 0;
}
A. 0
B. 1
C. 2
D. 3
[单选题]第186题 (1.0分)
以下程序输出的结果为().
x=1
Y=4
Do While y<=4
x=x*y
Y=y+1
Loop
Print x
A.4
B.8
C.12
D.16
[单选题]运行如下程序,输出结果为( )。
#include
Using namespace std;
Int main() {
int x=1,y=0;
if(!x) y++;
else if(x==0)
if(x) y+=2;
else y+=3;
cout << y << endl;
return 0;
}
A. 3
B. 2
C. 1
D. 0

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码