VB语言程序设计习题.doc

上传人:s****u 文档编号:12766990 上传时间:2020-05-23 格式:DOC 页数:8 大小:86KB
返回 下载 相关 举报
VB语言程序设计习题.doc_第1页
第1页 / 共8页
VB语言程序设计习题.doc_第2页
第2页 / 共8页
VB语言程序设计习题.doc_第3页
第3页 / 共8页
点击查看更多>>
资源描述
thrift of excellent traditional and style lack deep of understanding, one-sided think in now of good situation Xia, economic smooth more fast development, and reform made major progress, and people living significantly improve, and social the career made new progress, no necessary always hard has, no awareness to China also has many poverty area, and also has many poverty population of exists, more living improve has, more need keep hard of style. Three is not strictly honest. Total thought units is a water sector, clean self-discipline away from himself too far, no real processing good living of improve and hard, and thrift excellent traditional of relationship, no effective do comply with Constitution and party of regulations must from I do up, no right mercy good bitter Le, and wealth of relationship, no right awareness to in comply with Constitution and party of regulations aspects everyone has accountability. Four, future direction and improvement measures 1, belief and faith, strengthen party spirit. One is to firmly establish the noble ideals of struggle for the ideals of communism, communist struggle for life, ready to sacrifice everything for the party and the people. Second is to continuously improve the quality and standard of political, conscientiously study Deng Xiaoping theory and three represents important thought and the scientific Outlook on development, implement the partys basic program for the primary stage of socialism, adhere to the correct political orientation, maintain highly consistent with the CPC Central Committee, is good at theories of socialism with Chinese characteristics to analyze and solve problems. Third, strengthening the party spirit and the world transformation, perseverance of the party Constitution, relive Party vows to establish correct world Outlook, Outlook on life and the world, practically embodies ideals and beliefs into action, combine lofty ideals and practical activities, transforming the objective world, actively participate in the great practice of building socialism with Chinese characteristics. 2, keep the purpose in concept, changing the style of work. First, keep in mind that the purpose of serving, adhere to assuming power for the people, keep in mind the people and care about people, and the joys and sorrows of the masses, .According to city discipline, and municipal organization Department requirements, today we held implement implementation independent Commission against corruption guidelines effective strengthening led cadres style construction topic democratic life, main task is close contact thought, and work actual, control check district Standing Committee team and the personal in implementation independent Commission against corruption guidelines Shang exists of problem, in-depth carried out criticism and self-critical, further clear rectification direction and measures, effective enhanced clean politics of consciousness and initiative, firm set good of ruling image. Before the meeting, the way we take surveys solicited a views, combed, related to team buildingVB语言程序设计习题2一、单项选择题1. 在Visual Bsaic代码中,将多个语句合并写在一行上的并行符是( )。A、撇号()B、冒号(:)C、感叹号(!)D、星号(*)2. 通过( )可以在设计时直观地调整窗体在屏幕上的位置。A、代码窗口B、窗体布局窗口C、窗体设计窗口D、属性窗口3. 通过改变选项按钮(OptionButton)控件的( )属性值,可以改变按钮的选取状态。A、ValueB、StyleC、AppearanceD、Caption4. 为了清除列表框中的所有内容,应使用的方法是( )。A、ClsB、ClearC、RemoveD、RemoveItem5. 文本框能输入( )。A、控制字符B、ASCII字符C、回车D、文本和数字6. 下列控件中,没有Caption属性的是( )。A、框架B、列表框C、复选框D、单选按钮7. 文本框控件最多能处理( )字节。A、32KB、64KC、128KD、16K8. 以下能够触发文本框Change事件的操作是( )。A、文本框失去焦点B、文本框获得焦点C、设置文本框的焦点D、改变文本框的内容9. 要将一个组合框设置为简单组合框(Simple Combo),则应将其Style属性设置为( )。A、0B、1C、2D、310. 要使标签所在处透明显示背景,应把BackStyle属性设置为( )。A、0B、1C、TureD、False11. 用( )属性可唯一标志控件阵列中的某一个控件。A、NameB、IndexC、CaptionuD、TabIndex12. 组合框控件是将( )组合成一个控件。A、列表框控件和文本框控件B、标签控件和列表框控件C、标签控件和文本框控件D、复选框控件和选项按钮控件13. ( )使图象(Image)控件中的图象自动适宜控件的大小。A、将控件的AutoSize属性设为TrueB、将控件的AutoSize属性设为FalseC、将控件的Stretch属性设为TrueD、将控件的Stretch属性设为false14. 如果要在命令按钮上显示图形文件,应设置命令按钮的( )。 A、Style属性和Graphics属性B、Style属性和Picture属性C、Caption属性D、Graphics属性15. 以下能够触发文本框Change事件的操作是( )。 A、文本框失去焦点B、文本框获得焦点C、设置文本框的焦点D、改变文本框的内容16. 要强制显示声明变量,可在窗体模块或标准模块的声明段中加入语句( )。 A、Option Base 0B、Option ExplicitC、Option Base 1D、Option Compare17. 设有声明:Dim X As Integer,如果Sgn(X) 的值为-1,则X的值是( )。 A、任何整数B、0C、等于0的整数D、小于0的数18. 设S=中华人民共和国,表达式Left(S,1)+Right(S,1)+Mid(S,3,2)的值为( )。 A、中华民国B、中国人民C、中共人民 D、人民共和19. 下面( )是合法的变量名。 A、X_yzB、123abC、IntegerD、X-Y20. 可以同时删除字符串前导和尾部空白的函数是( )。 A、LtrimB、RtrimC、TrimD、Mid21. 当语句w=IIf(410, Red,Green)执行后,变量w中的值是( )。 A、NullB、RedC、GreenD、-122. InputBox函数返回值的类型为( )。 A、数值B、字符串C、变体D、数值或字符串(视输入的数据而定)23. 在VB中,默认的数组下标的下界从0开始,要想在通用声明段界定下界,则应使用( )。 A、Option Base B、Option ExplicitC、ExplicitD、Low Base二、多项选择题1. 以下叙述中正确的是( )。 A、打开一个工程文件时,系统自动装入与该工程有关的窗体、标准模块等文件B、保存Visual Basic程序时,应分别保存窗体文件及工程文件C、Visual Basic应用程序只能以解释方式执行D、事件可以由用户引发,也可以由系统引发2. 以下叙述中错误的是( )。 A、窗体的Name属性指定窗体的名称,用来标识一个窗体B、窗体的Name属性的值是显示在窗体标题栏中的文本C、可以在运行期间改变对象的Name属性的值D、对象的Name属性值可以为空三、填空题1. 表达式 Len( Trim(This book ) )的值是_ (注意,This和book后各有一个空格) 2. 本文框中的文本改变了,它发生的事件是_。3. 滚动条的_属性规定滚动条可取的最大值。4. 以下程序的运行结果是_。Sub s1(b() As Integer) For i = 1 To 4 b(i) = 2 * i Next i End Sub Private Sub Command1_Click() Dim a(1 To 4) As Integer For i = 1 To 4 a(i) = i + 5 Next i s1 a() For i = 1 To 4 Print a(i) Next iEnd Sub 5. 可以控制菜单项可见或不可见的属性是_。6. 语句Print Abs(-62)+Int(-62)的输出结果是_。7. 如果要改变窗体的标题,则需要设置的属性是_。 四、判断题1. Select Case语句中的测试表达式可以是任何形式的表达式。( )2. 调用通用对话框控件的ShowColor方法,可以打开颜色对话框。( )3. 窗体的Show方法的作用是将指定的窗体装入内存并显示该窗体。( )五、程序设计题 “哥德巴赫猜想”指出,每个大于6的偶数,都可以表示为两个素数的和。试用程序将某个给定的数x表示为两个素数的和。要求:首先编写一个函数用于判断一个数是否是质数(素数),然后使用“遍试”算法。VB语言程序设计习题2答案 一、单项选择题题号12345678910答案BBABDBBDBA题号11121314151617181920答案BACBDBDBAC题号212223答案CBA二、多项选择题题号12答案ABDBCD三、填空题1、10 2、change 3、max 4、2 4 6 85、Visible6、07、Caption四、判断题题号123答案FTT五、程序设计题答案:Private Sub Command1_Click() For a = 6 To 100 Step 2 For n = 3 To a / 2 Step 2 If IsPrime(n) And IsPrime(a - n) Then Print a & = & n & + & (a - n) Exit For End If Next NextEnd SubFunction IsPrime(ByVal n As Integer) As Boolean Dim flg As Boolean, i As Integer flg = True For i = 2 To n - 1 If n Mod i = 0 Then flg = False Exit For End If Next IsPrime = flgEnd Function考研复试面试不用担心,凯程考研有系统的专业课内容培训,日常问题培训,还要进行三次以上的模拟面试,还有对应的复试面试题库,你提前准备好里面的问题答案,确保你能够在面试上游刃有余,很多老师问题都是我们在模拟面试准备过的。project work, cadres, cadres selection and other aspects of a total of 19, further defined the direction of rectification, enhancing the pertinence and effectiveness of democratic life. Good for this meeting, we requested the Standing Committee of the municipal party Committee, municipal Secretary General Tang Wenjin, the City Commission for discipline inspection Standing Committee Yang Xu, Jiang Jixue, Deputy Director of the personnel office, and other leading comrades present guidance allows us to warm applause for their welcome and thanks! Below, I first District Committee member of the 20XX team annual democratic meeting implementation of the corrective measures, as well as member of the team and of my own report guidelines for the implementation of the independent Commission against corruption statement invited leaders and comrades criticism. First, annual party on the 20XX team, Member of democratic life action plan implementation year 20XX, district democratic meeting a member of the team on study and practice the scientific Outlook on development theme, find a project supporting strong enough, the industry well enough, urban construction management level needs to be improved, livelihood improvement needs to be strengthened, district team itself, such as the five aspects. Year of 20XX, we find out the problems mentioned above, based on actual Shunqing construction and development, conscientiously sum up improvements, achieving significant development results and effectiveness of their work. (A) highlight the project handle, maintain high growth of investment. Adhere to the strategy as a Foundation, carrying out projects to promote increased stamina important. One is to increase the intensity of projects towards. Actively seek national and provincial policy support, superior special transfer payments, a variety of additional income will top 700 million Yuan, a number of key infrastructure projects, livelihood projects, industrial projects into the cage. Second, increasing the project attracts. This year a total of 23 signed a major project, of which 14 billion project, China Metallurgical group, vanke group, Guangdong hengda group, Taiwan Ruentex group, on the RI group, Shenzhen Kaisa, jifeng agricultural machinery, Mercedes-Benz, Audi 4S store and other large enterprises and projects have settled in Shunqing. Third, strengthen project construction. Annual implementation focus project 39 a, fixed assets investment total will breakthrough 12 billion yuan, created district yilai history high, South door dam, and five in shop old city transformation, and Ying China industrial concentrated district construction, and city main road construction, and Northeast steam Trade Center, and modern farmers industry Park, and vocational education city, and low rental, and also room construction, and features blocks build, and farmers market transformation, and rural version Street transformation, focus engineering speed up implementation, effectiveness obviously. Expected to be achieved this year, area-wide GDP 17 billion第 7 页 共 8 页
展开阅读全文
相关资源
相关搜索

当前位置:首页 > 图纸专区 > 考试试卷


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!