首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
假定有下面的程序: Private Sub Form_Click() Dim N As Integer N = InputBox("输入一个2位整数") Print (N - Int(N / 10) * 10) * 10 + Int(N /
假定有下面的程序: Private Sub Form_Click() Dim N As Integer N = InputBox("输入一个2位整数") Print (N - Int(N / 10) * 10) * 10 + Int(N /
admin
2015-06-30
17
问题
假定有下面的程序:
Private Sub Form_Click()
Dim N As Integer
N = InputBox("输入一个2位整数")
Print (N - Int(N / 10) * 10) * 10 + Int(N / 10)
End Sub
程序运行后,单击窗体,在输入对话框中输入58,然后单击"确定"按钮,输出结果是
选项
A、58
B、13
C、85
D、40
答案
C
解析
当输入58后,N=58,则Int(x)返回值为不大于自变量x的最大整数,则Int(N/10)返回的值为5,则结果为(58-5*10)*10+5=85。故C选项正确。
转载请注明原文地址:https://kaotiyun.com/show/d0Qp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
完全不考虑程序的内部结构和内部特征,而只是根据程序功能导出测试用例的测试方法是
执行以下程序段,并输入1.23,则程序的输出结果应是【】。N=Str(InputBox("请输入一个实数:"))p=InStr(N,".")PrintMid(N,p)
在窗体上画一个命令按钮,然后编写如下事件过程:OptionBase1PrivateSubCommand1_Click()Dimaa=Array(1,2,3,4)j=1For
菜单编辑器可分为3个部分,即数据区、【】和菜单项显示区。
数据库设计包括两个方面的设计内容,它们是()
线性表的顺序存储结构和线性表的链式存储结构分别是______。
设有整型变量s,取值范围为0~100,表示学生的成绩。有如下程序段:IfS>=90ThenLevel=“A”ElseIfs>=75ThellLevel=“B”ElseⅡs>=60ThenLevel=“C”ElseLevel=“D
在程序运行时,下面的叙述中正确的是
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。(1)在名称为Forml标题为“选课”的窗体上画一个复选框数组,名称为CH1,共有四个复选框,按顺序其标题分别是“数学”、“语文”、“外语”、“计算机”,其中“语文”、“计算机”
数据结构包括数据的逻辑结构、数据的【】以及对数据的操作运算。
随机试题
下列关于化石的说法正确的是:
材料的脆性断裂与温度之间的关系是()。
以下不是腹膜外位器官的有()
关于药物安全性评价的说法中正确的是
与公孙穴相通的奇经是( )。
某女,45岁。因宫颈癌需做广泛子宫切除和盆腔淋巴结清扫术。此病人做阴道冲洗,正确的是
支付结算业务是银行的中间业务,主要收入来源是()。
某服装厂将自产的服装作为福利发给职工,这批产品的制造成本共计20万元,成本利润率为10%,按当月同类产品的平均销售价格计算为25万元,则该厂应征增值税的销售额为()万元。
师范学校的出现与教师成为一种独立的社会职业,从时间上来说()。
Delegatesareaskedtocheckoutby10:30a.m.Thedelegatesshouldleavetheirrooms______.
最新回复
(
0
)