首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序执行之后,将输出 public class exl9 { public static void main(string[] args) { int x=3
下列程序执行之后,将输出 public class exl9 { public static void main(string[] args) { int x=3
admin
2008-01-11
28
问题
下列程序执行之后,将输出 public class exl9 { public static void main(string[] args) { int x=3; int y=7; switch(y/x){ case 1: y*=2; break; case 2: y*=3; break; case 3: y*=4; break; default: y=0; } System.out.print(y); } }
选项
A、28
B、21
C、14
D、0
答案
B
解析
转载请注明原文地址:https://jikaoti.com/ti/vrb0FFFM
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
打开数据库abc的正确命令是
以下关于数据管理发展的描述错误的是
报表的数据源可以是
对建立良好的程序设计风格,下面描述正确的是()。
用当前窗体的LABEL1控件显示系统时间的语句是()。
(1)在考生文件夹下已有表单文件formone.scx,如图2—26所示,其中包含一个列表框、一个表格和一个命令按钮。请按下面要求完成相应的操作:①在表单的数据环境中添加orders表。②将列表框List1设置成多选,另外将
以下关于关系的说法正确的是
以下关于数据管理发展的描述错误的是
下列选项中不属于结构化程序设计方法的是
按照“后进先出”原则组织数据的数据结构是
随机试题
驾驶机动车不按照规定避让校车的,一次记6分。
进程的处理机状态分为_______和_______。
二进制数1001111011转换为对应的十六进制数为_______。
西非大片地区无间日疟,部分居住在美国或其他地区的黑人对间日疟不敏感,推测有定的原因是他们
李某于1999年7月从某医学院专科毕业,李某可以
新建商品房销售准备的宣传资料中,()将项目的综合信息,以图片、文字及数据形式来描述。
()谈话主要用于自我防卫心理强的学生。
《四库全书》是我国历史上一部规模最大的丛书,它采用了我国古代图书分类的主要方法——经、史、子、集四分法。下列古代典籍在《四库全书》中对应不正确的是()。
你在单位很优秀,但是同事有意见甚至排挤你,怎么办?
Thecompany’strainingplanwasdesignedtohelptheemployeestoimprovetheirworkhabitsand______.
最新回复
(
0
)