题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-31 07:20:15

[填空题]运行如下程序段:
x=1
y=1
z=1
For j=1 To 3
Fork=1 To 3
If j=1 Then
x=x+y+z
ElseIf j=2 Then
x=2*x+2*y+2*Z
Else
x=3*x+3*y+3*Z
End If
Next k
Next j
x的值应是 【15】

更多"运行如下程序段: x=1 y=1 z=1 "的相关试题:

[填空题]运行如下程序段: x=1 y=1 z=1 For j=1 To 3 Fork=1 To 3 If j=1 Then x=x+y+z ElseIf j=2 Then x=2*x+2*y+2*Z Else x=3*x+3*y+3*Z End If Next k Next j x的值应是 【15】
[填空题]运行如下程序段: K=l y=1 z=1 For j=1 To For k=1 To 3 If j=1 Then x=x + y +z Else If j=2Then x=2*x+2*y+2*z E1se x=3*x+3*y+3*z End If Next k Next j x的值应是 【15】
[填空题]运行如下程序段: x=1 y=1 z=1 For j=1 To 3 For k=1 To 3 If j=1 Then x=x+y+z ElseIf j=2 Then x=2*x+2*y十2*z Else x=3*x+3*y+3*z End If Next k Next j x的值应是 【15】
[单项选择]下列程序段运行的结果为
public class Test
static void print(String s,int i)
System.out.println("String:"+s+",int:"+i);

static void print(int i,String s)
System.out.println("int:"+i+",String:"+s);

public static void main(String[]args)
print(99,"Int first");


A. String:String first,int:11
B. int:11,String:Int first
C. String:String first,int99
D. int:99,String:Int first
[填空题]运行如下程序段: x=1 y=1 z=1 For j=1 To 3 For k=1 To 3 If j=1 Then x=x+y+z ElseIfj=2 Then x=2*x+2*y+2*z Else x=3*x+3*y+3*z End If Next k Next j x的值应是 【15】
[填空题]运行如下程序段: x=1 y=1 Z=1 For j=1 To 3 For k=1 TO 3 If j=1 Then x=x+y+2 ElseIf j=2 Then x=2*x+2*y+2*z Else x=3*x+3*y+3*Z End If Next k Next j x的值应是 【15】
[单项选择]下列程序段运行的结果为 public class Test{ static void print(String s,int i){ System.out.println("String:"+s+",int:"+i); } static void print(int i, String s){ System.out.println("int:"+i+",String:"+s); } public static void main(String [] args){ print(99,"Int first"); } }
A. String:Stringfirst,int:11
B. int:11,String:Int first
C. String:String first,int:99
D. int:99,String:int first
[填空题]运行如下程序段: x=1 y=1 z=1 For j=1 To 3 For k=1 To 3 If j=1 Then x=x+y+z Else If j=2 Then x=2*x+2*y+2*z Else x=3*x+3*y+3*z End If Next k Next j x的值应是______。
[单项选择]下列程序段运行的结果为( )。 public class Test{ static void print(String s,int i){ System.out.pdntlnC String: "+s+",int:"+i); } static void print(iht i,String s){ System.out.prinflnCint:"+i+",gtring:"+s); } public static void main(String[] args){ print(99,"Int first"); } }
A. String:String first,int: 11
B. int: 11,String:Int first
C. String:String first,int:99 D. int:99,Stfing:Int first
[单项选择]下列程序段运行的结果为( )。
public class Test
static void print(String s,int i)
System.out.pdntlnC String: "+s+",int:"+i);

static void print(iht i,String s)
System.out.prinflnCint:"+i+",gtring:"+s);

public static void main(String[] args)
print(99,"Int first");


A. String:String first,int: 11
B. int: 11,String:Int first
C. String:String first,int:99

我来回答:

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

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码