首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
admin
2009-02-15
29
问题
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
选项
A、2.5
B、3.5
C、4.5
D、表达式不正确
答案
2
解析
转载请注明原文地址:https://kaotiyun.com/show/2WXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
软件按功能可以分为应用软件、系统软件和支撑软件(或工具软件)。下面属于应用软件的是( )。
在窗体上画一个命令按钮,名称为Command1,然后编写如下代码:OptionBase0PrivateSubCommand1_Click() DimA1(4)AsInteger,A2(4)AsInteger Fork=0To
以下关于过程及过程参数的描述中,错误的是( )。
以下数列:1,1,2,3,5,8,13,21的规律是从第3个数开始,每个数都是其前面两个数之和。在考生文件夹下有一个工程文件sjt5.vbp。窗体中已经给出了所有控件,如图所示。请编写适当的事件过程完成如下功能:选中一个单选按钮后,单击“计算”按
如果要在语句:a=Array(1,2,3,4,5)的前面声明变量a,则正确的声明是
有三个关系R、S和T如下:则关系T是由关系R和S通过某种操作得到,该操作为()。
下面是求最大公约数的函数的首部Functiongcd(ByValxAsInteger,ByValyAsInteger)AsInteger若要输出8、12、16这3个数的最大公约数,下面正确的语句是
窗体上有名称为Commandl的命令按钮和名称为Textl的文本框PrivateSubCommandl_Click()Text1.Text=-”程序设计”Text1.SetFocusEndSub
在黑盒测试方法中,设计测试用例的根据是()。
下列方法中,能够使对象获得焦点的是()。
随机试题
在我国,标准规定分度圆上的压力角为()。
1GB等于
患者外伤后腹腔内出血首先出现的临床表现是()
下列各项,不属淋病特点的是
关于两审终审制度,下列说法正确的是()。
投资主办人从事投资管理活动,应当遵循的原则包括()。Ⅰ.诚实守信Ⅱ.勤勉尽责Ⅲ.独立客观Ⅳ.实事求是
下列市场中,属于场内交易市场的是()。
修饰动词或者形容词的成分是()。
小王向社会工作者求助。在制定目的和目标时,社会工作者与小王讨论协商,认真询问了他的愿望,最后对需要达到的目的取得了一致的意见。上述社会工作者的做法体现了制订服务计划的()原则。
结合材料回答问题:材料1我们的学风还有些不正的地方,我们的党风还有些不正的地方,我们的文风也有些不正的地方。所谓学风有些不正,就是说有主观主义的毛病。所谓党风有些不正,就是说有宗派主义的毛病。所谓文风有些不正,就是说有党八股[1]的毛病
最新回复
(
0
)