题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-14 11:13:36

[单项选择]给出下列的程序段,m为何值时将会输出default ( )
switch(m)
case 0: System.out.println("case 0");
case 1:System.out.println("case 1");break;
case 2:System.out.println("case 2");break;
default:System.out.println("default");

A. 0
B. 1
C. 2
D. 3

更多"给出下列的程序段,m为何值时将会输出default ( ) sw"的相关试题:

[单项选择]给出下列的程序代码片段,m为哪个值时将会输出default switch(m) case 0:System.out.println("case0"); case 1:System.out.println("case 1");break; case 2:System.out.println("case 2");break; default:System.out.println("default");

A. 0
B. 1
C. 2
D. 3
[单项选择]给出下列的程序代码片段,m为哪个值时将会输出default switch(m) { case 0:System.out.println("case0"); case 1:System.out.println("case 1");break; case 2:System.out.println("case 2");break; default:System.out.println("default"); }
A. 0
B. 1
C. 2
D. 3
[单项选择]给出下面的程序代码片段,m为下列哪个值时将会输出default ( )
switch (m)
case 0: System. out. println ("case 0");
case 1: System. out. println ("case 1"); break;
case 2: System. out. println ("case 2"); break;
default: System. out. println ("default");
A. 0
B. 1
C. 2
D. 3
[单项选择]给出下列的程序片段,m为( )时将会输出default。
switch (m)
case ( ):Systemt.out.println("case 0");
case 1: System.out.println("case 1");break;
case 2:System.out.println("case2");break;
default:System.out.println("default");
A. 0
B. 1
C. 2 2
D. 3
[单项选择]下列程序段的输出结果是
int n='c';
switch(n++)
default: printf("error");break;
case 'a': case 'A': case 'b': case 'B': printf("good");break;
case 'c': case 'C': printf("pass");
case 'd': case 'D': printf("warn");

A. passwarn
B. passerror
C. goodpasswarn
D. pass
[填空题]下列程序段的输出结果是 【8】
int n=’c’;
switch(n++)
default:printf("error");break;
case ’a’:case ’A’:case ’b’:case ’B’:printf("good");break;
case ’c’:case ’C’:printf("pass");
case ’d’:case ’D’:printf("warn");

[单项选择]下列程序段的执行结果为
m=1
n=1
Select Case m
Case 1
Select Case n
Case 0
Print" * * 0 * *"
Case 1
Print" * *.1. * *"
End Select
Case 2
Print"* *,2 * *,"
End Select
A. * * 0 * *
B. * * 1 * *
C. * * 2 * *
D. 0
[单项选择]下面程序段执行结果为  x=Int(Rnd( )+3)  Select Case x    Case 5      Print "excellent"    Case 4      Print "good"    Case 3      Print"pass"    Case Else      Print"fail"  End Select

A. excellent
B. good
C. pass
D. fail
[单项选择]下面程序段执行结果为
x=Int(Rnd( )+4)
Select Case x
Case 5
Print"excellent"
Case 4
Print"good"
Case 3
Print "pass"
Case Else
Print "fail"
End Select
A. excellent
B. good
C. pass
D. fall
[单项选择]下列程序段的执行结果为( )
a=1
b=0
Select Case a
Case 1
Select Case b
Case 0
Print"* * 0 * *"
Case 1
Print"* * 1 * *"
End Select
Case 2
Print"* * 2 * *"
End Select
A. * * 0 * *
B. * * 1 * *
C. * * 2 * *
D. 0
[单项选择]有以下程序段: D0 CASE CASE 计算机<60 ”计算机成绩是:”+”不及格” CASE计算机>=60 ”计算机成绩是:”+”及格” CASE计算机>;70 ”计算机成绩是:”+”中” CASE计算机>=80 ”计算机成绩是:”+”良” CASE计算机>=90 ”计算机成绩是:”+”优” ENDCASE 设学生数据库当前记录的“计算机”字段的值是89,屏幕输出为( )。
A. 计算机成绩是:不及格
B. 计算机成绩是:及格
C. 计算机成绩是:良
D. 计算机成绩是:优
[填空题]下列程序段的执行结果是 【14】
x=Int(Rnd+4)
Select Case X
Case 5
Print"优秀"
Case 4
Print"良好"
Case 3
Print"合格"
Case Else
Print"不合格"
End Select

我来回答:

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

订单号:

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