首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是( )。
设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是( )。
admin
2009-02-15
36
问题
设int型变量a、b,float型变量x、y,char型变量ch均已正确定义并赋值,正确的switch语句是( )。
选项
A、switch(x+y){……}
B、switch(ch+1){……}
C、switch ch{……}
D、switch(a+b):{……}
答案
2
解析
转载请注明原文地址:https://kaotiyun.com/show/yAnp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下列关于二叉树的叙述中,正确的是
下程序段执行以后,内存变量y的值是CLEARx=12345y=0DOWHILEx>0y=y+x%10x=int(x/10)ENDDO?y
下列程序段执行后,内存变量s1的值是s1="奥运会游泳比赛"s1=stuff(s1,7,4,"田径")?s1
在VisualFoxPro中,如果希望内存变量只能在本模块(过程)中使用,不能在上层或下层模块中使用,说明该种内存变量的命令是
算法的空间复杂度是指
在考生文件夹下有一个名为menu_lin的下拉式菜单,请设计顶层表单form_menu,将菜单menu_lin加入到该表单中,使得运行表单时菜单显示在本表单中,并在表单退出时释放菜单。
在关系代数运算中,有5种基本运算,它们是()。
假定一个表单里有一个文本框Text1和一个命令按钮组CommandGroup1。命令按钮组是一个容器对象,其中包含Command1和Command2两个命令按钮。如果要在Command1命令按钮的某个方法中访问文本框的Value属性值,正确的表达式是(
下列关于接收参数和传送参数的说法中,正确的是()。
在“项目管理器”下为项目建立一个新报表,应该使用的选项卡是
随机试题
泥质岩结构质地()。
利率按是否包括对通货膨胀引起的货币贬值风险的补偿角度划分为
(1)利达公司在财产清查中盘盈甲材料200千克,实际单位成本50元,经查属于材料收发计量方面的错误。(2)利达公司在财产清查中发现盘亏乙材料80千克,实际单位成本300元,经查属于一般经营损失。(3)利达公司在财产清查中发现毁损丙材料40千克,实
贯彻公安工作群众路线的途径有( )。
中国近代史上第一位全面介绍马克思主义思想的人物是()。
下列有关我国市场经济对法治的作用的表述,错误的是()。
阅读材料回答问题:材料1秋收起义几仗打下来,部队相继失利,损失很大,队伍“竞至溃不成军”。毛泽东在文家市里仁学校召开了前敌委员会会议,讨论部队的进军方向问题。毛泽东拿着一份从学校借来的地图,指着湘赣边界山形最宽的部分,用生动形象的比喻说:这里像眉
设h(x,y,z)表示由原点到椭球面∑:上过点P(x,y,z)处的切平面的垂直距离.计算I=h(x,y,z)dS.
以下程序运行后的输出结果是______。main(){charm;m=’B’+32;printf("%e\n",m);}
Moneycanbuyhappiness,butonlyifyouspenditonsomeoneelse,researchersreported.Spendingaslittleas$5adayons
最新回复
(
0
)