首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
执行语句Print"Sgn(-34)=";Sgn(-34)后,其输出结果为( )。
执行语句Print"Sgn(-34)=";Sgn(-34)后,其输出结果为( )。
admin
2010-09-11
32
问题
执行语句Print"Sgn(-34)=";Sgn(-34)后,其输出结果为( )。
选项
A、Sgn(-34)=34
B、Sgn(-34)=-34
C、Sgn(-34)=+1
D、Sgn(-34)=-1
答案
D
解析
本题使用Sgn函数来判断某数的正负号。当参数大于0时,返回1;当参数等于0时,返回0;当参数小于0时,返回-1。
转载请注明原文地址:https://kaotiyun.com/show/v3mp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下列JApplet实现了一个可编辑的JTextArea和一个JButton,横线上应填入的语句是( )。importjavax.swing.*;importjava.awt.*;publicclassTestextend
顺序执行下列两个语句的输出结果是【】。Strings]“全国计算机等级考试”;System.out.println(s.length());
下列方法中,可以用来创建一个新线程的是______。
线程的基本状态有新建、就绪、______、运行和消亡。
下面是一个类的定义,试将程序补充完整。classA{Strings;____inta=66;A(Stringsl){s=sl;}staticintgeta(){returna;}}
当浏览器重新返回Applet所在页面时,将调用Applet类的( )方法。
Java语言的循环语句包括for语句、while语句和do-while语句,先循环后判断,循环至少被执行一次的是______。
按条件f对关系R进行选择,其关系代数表达式为( )。
程序测试分为静态分析和动态测试。其中【】是指不执行程序,而只是对程序文本进行检查,通过阅读和讨论,分析和发现程序中的错误。
队列是限定在表的一端进行插入和在另一端进行删除操作的线性表。允许插入的一端称作______。
随机试题
某企业采用先进先出法计算发出甲材料的成本,2007年2月1日,结存甲材料200千克,每千克实际成本100元;2月10日购入甲材料千克,每千克实际成本110元;2月15日发出甲材料400千克。2月末,库存甲材料的实际成本为()元。
生物利用度是指药物
A.栓剂B.合剂C.糖浆剂D.胶囊剂E.露剂
【案情】甲公司职工黎某因公司拖欠其工资,多次与公司法定代表人王某发生争吵,王某一怒之下打了黎某耳光。为报复王某,黎某找到江甲的儿子江乙(17岁),唆使江乙将王某办公室的电脑、投影仪等设备砸坏,承诺事成之后给其一台数码相机为报酬。事后,甲公司对王某
甲因为随身携带的票据在乘车时遗失,向有管辖权的人民法院申请公示催告,法院受理后依法发出公告,在公示催告期间乙向法院申报。法院的下列做法中错误的是:()
已知:MT公司2014年年初所有者权益总额为1500万元,该年的资本保值增值率为125%。2016年年初负债总额为4000万元,所有者权益是负债的1.5倍,该年的资本积累率为150%,年末资产负债率为25%,负债的年均利率为10%,全年固定成本总额为975
国民经济发展的总体目标一般包括()。
2015年政府工作报告中指出,我国经济发展进入新常态,正处在爬坡过坎的关口,其“拦路虎”是()。
斯伯林(Sperling)使用局部报告法得以证明存在的记忆类型是
若TMS320C6000的流水线深度达到8级时,则器件可同时运行______条指令。
最新回复
(
0
)