版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Chapter1Lessonl1. WhichofthefollowingcodesnippetsdemonstrateshowtoaddanewinstanceofaWindowsformnamedFormlatruntime?(D)下面的代码片段演示了如何添加一个新的名为Form1的窗体在运行时的Windows实例?A.'VBDimmyFormAsForm1myForm=Form1.CreateForm()/C#Form1myForm;myForm=Form1.CreateForm();B.'VBDimmyFormAsForm1myForm.Show()/C#Form1my
2、Form;myForm.Show();C.'VBmyForm=Form1myForm.Show()/C#myForm=Form1;myForm.Show();D.'VBDimmyFormAsForm1myForm=NewForm1()/C#Form1myForm;myForm=newForm1();2. Whichofthefollowingcodesnippetscorrectlydemonstrateshowtosetaformtoanonrectangularshape?(C)下面的代码片段演示了如何设置非矩形形状的形式?A.'VBDimaPathAsNewSys
3、tem.Drawing.Drawing2D.GraphicsPathaPath.AddEllipse(0,0,this.Width,this.Height)Me.Region=NewRegion。;/C#System.Drawing.Drawing2D.GraphicsPathaPath=newSystem.Drawing.Drawing2D.GraphicsPath();aPath.AddEllipse(0,0,Me.Width,Me.Height);this.Region=newRegion。;B.'VBDimaPathAsNewSystem.Drawing.Drawing2D.G
4、raphicsPathaPath.AddEllipse(0,0,Me.Width,Me.Height)/C#System.Drawing.Drawing2D.GraphicsPathaPath=newSystem.Drawing.Drawing2D.GraphicsPath();aPath.AddEllipse(0,0,this.Width,this.Height);C.'VBDimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPathaPath.AddEllipse(0,0,Me.Width,Me.Height)Me.Region=NewReg
5、ion(aPath)/C#System.Drawing.Drawing2D.GraphicsPathaPath=newSystem.Drawing.Drawing2D.GraphicsPath();aPath.AddEllipse(0,0,this.Width,this.Height);this.Region=newRegion(aPath);D.'VBDimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPathaPath.AddEllipse(0,0,Me.Width,Me.Height)Me.Region=aPath/C#System.Dra
6、wing.Drawing2D.GraphicsPathaPath=newSystem.Drawing.Drawing2D.GraphicsPath();aPath.AddEllipse(0,0,this.Width,this.Height)this.Region=aPath;3. Whichofthefollowingcodesamplescorrectlysetsthetitle,borderstyle,size,andopacityofaform?(A)下面的代码样本中正确设置的标题,边框样式,大小和不透明度的一种形式?A. 'VBMe.Text="MyForm"
7、;Me.FormBorderStyle=FormBorderStyle.Fixed3DMe.Size=NewSize(300,300)Me.Opacity=0.5/C#this.Text="MyForm"this.FormBorderStyle=FormBorderStyle.Fixed3D;this.Size=newSize(300,300);this.Opacity=0.5;B. 'VBMe.Text="MyForm"Me.BorderStyle="Fixed3D”Me.Size=NewSize(300,300)Me.Opacity
8、=0.5/C#this.Text="MyForm"this.BorderStyle="Fixed3D"this.Size=newSize(300,300);this.Opacity=0.5;C. 'VBMe.Text="MyForm"Me.FormBorderStyle=FormBorderStyle.Fixed3DMe.Size=(300,300)Me.Opacity="100%"/C#this.Text="MyForm"this.FormBorderStyle=FormBorderS
9、tyle.Fixed3D;this.Size=(300,300);this.Opacity="100%"D.'VBMe.Title="MyForm"Me.FormBorderStyle=FormBorderStyle.Fixed3DMe.Size=NewSize(300,300)Me.Opacity="100%"/C#this.Title="MyForm"this.FormBorderStyle=FormBorderStyle.Fixed3D;this.Size=newSize(300,300);this.
10、Opacity="100%"Lesson21.WhichofthefollowingcodesamplesdemonstrateshowtosetaflowbreakonacontrolnamedaButtoninaFlowLayoutPanelnamedFLPanel1?(C)下面的代码示例演示如何设置流断裂在一个FlowLayoutPanel的名为FLPanel1名为aButton获得控制?A. 'VBaButton.SetFlowBreak()/C#aButton.SetFlowBreak();B. 'VBaButton.SetFlowBreak(FL
11、Panel1)/C#aButton.SetFlowBreak(FLPanel1);C.'VBFLPanel1.SetFlowBreak(aButton,True)/C#FLPanel1.SetFlowBreak(aButton,true);D.'VBFLPanell.aButton.SetFlowBreak/C#FLPanell.aButton.SetFlowBreak。;2.Youaredesigninganapplicationthatincludesapropertypagethatenablestheusertosetpropertiesoftheapplication
12、.Thesepropertiesaredividedintothreecategories:Appearance,Execution,andMemoryManagement.Whichcontainercontrolrepresentsthebeststartingpointfortheuserinterface?(D)你正在设计一个应用程序,其中包括一个属性页,使用户能够设置应用程序的属性。这些属性分为三类:外观,执行和内存管理。哪一个容器控件代表用户界面的最佳起点?A. TableLayoutPanelB. FlowLayoutPanelC. GroupBoxD. TabControl3.
13、 Whichofthefollowingisthecorrectwaytoaddacontroltoaformatdesigntime?(Chooseallthatapply.)(A、B、C、D)下列哪一项是正确的方法,在设计时添加控件到窗体?(选择所有适用)A. SelectacontrolintheToolboxanddouble-clicktheform.B. SelectacontrolintheToolboxanddrawontheformwiththemouse.C. Double-clickthecontrolintheToolbox.D. Selectthecontrolint
14、heToolboxanddragittotheform.A.选择控制工具箱中双击表格。B.选择工具箱中的一个控制,用鼠标画的形式。C.双击工具箱中的控制。D.在工具箱中选择的控制,并将其拖动到表单。4. WhichofthefollowingcodesamplesdemonstratesthecorrectwaytoaddaButtoncontroltoaformnamedForm1atruntime?(B)下面的代码示例演示一个名为Form1的窗体在运行时正确的方式来添加一个Button控件?A.'VBForm1.Controls.Add(Button)/C#Form1.Contro
15、ls.Add(Button);B.'VBDimaButtonAsNewButtonForm1.Controls.Add(aButton)/C#ButtonaButton=newButton。;Forml.Controls.Add(aButton);C.'VBDimaButtonAsNewButtonForml.Add(aButton)/C#ButtonaButton=newButton。;Forml.Add(aButton);D.'VBForm1.Add(NewButton)/C#Form1.Add(newButton);5. Whichcodesamplecorrec
16、tlydemonstrateshowtoaddanewpaneltoaSplitContainernamedSpC1?(D)正确的代码示例演示了如何添加一个新的面板名为SPC1一个SplitContainer?A.'VBSpC1.Controls.Add(NewPanel)/C#SpC1.Controls.Add(newPanel();B.'VBSpC1.Controls.Add(NewSplitterPanel)/C#SpC1.Controls.Add(newSplitterPanel。);C.'VBSpC1.Add(NewSplitterPanel)/C#SpC1.
17、Add(newSplitterPanel。);D.'VBNoneoftheabove/C#NoneoftheaboveChapter2Lesson11. Whichofthefollowingcanbeusedtomodifythesizeofacontrolinaformatdesigntime?(Chooseallthatapply.)(A、D)下列哪一项可以用来修改的大小控制在设计时的形式?A. GrabbinganddraggingtheedgesofthecontrolB. SettingthecontrolsizeintheViewmenuC. Clickingthesma
18、rttagandenteringanewsizeforthecontrolD. EditingtheSizepropertyinthePropertieswindowA.拼抢和拖动控制的边缘B.在“视图”菜单中设置控制大小C.单击智能标记,并进入一个新的大小控制D.编辑的Size属性在属性窗口中2. Whichofthefollowingmethodscanbeusedtomodifythelocationofcontrolsinaformatdesigntime?(Chooseallthatapply.)(A、B、C)A. ChangingtheLocationpropertyinthePr
19、opertieswindowB. GrabbingthecontrolandmovingitwiththemouseC. UsingtheLayouttoolbartoadjustcontrolspacingD. UsingtheLocationwindowtographicallypositioncontrols修改表单中控件的位置,在设计时可以使用下列方法中的哪?(选择所有适用)(A,B,C)A.更改位置“属性,在属性窗口中B.拼抢控制,用鼠标移动C.使用布局工具栏来调整控制间距D.使用位置“窗口以图形化的定位控制3. WhichsettingoftheAnchorpropertyallo
20、wscontrolstofloatfreelywhentheformisresized?(C)设置Anchor属性允许汇率自由浮动的控制调整窗体大小时?A.TopB.Top,BottomC.NoneD.Right,Left4. WhichsettingoftheDockpropertycausesthecontroltofillitsformorcontainercontrol?(B)A. TopB. FillC. Top,Left,Right,BottomD. None,youshouldusetheAnchorpropertyDock属性设置导致的控制,以填补其窗体或容器控件?(B)A.顶
21、部B.填充C.顶部,左,右,底部D.没有,你应该使用Anchor属性Lesson21. WhichButtoneventscanbeusedtorespondtomouseclicks?(Chooseallthatapply.)(A、C)哪些可以用来响应鼠标点击按钮事件?A.Button.ClickB.Button.LinkClickedC.Button.MouseDownD.Button.MouseOver2. WhichpropertydoesnotcontrolhowaButtonlooksorbehaveswhentheFlatStylepropertyissettoFlat?(D)哪
22、个属性不控制按钮的外观或行为时FlatStyle属性设置为扁平如何?A.FlatAppearance.MouseOverBackColorB.FlatAppearance.MouseDownBackColorC.FlatAppearance.BorderSizeD.FlatAppearance.Text3. WhichisnecessarytodefineanaccesskeyusingaLabelcontrol?(Chooseallthatapply.)(A、B、C)A. SettheTabOrdersothatthecontrolfortheaccesskeyisimmediatelyaf
23、tertheLabelcontrol.B. SettheUseMnemonicpropertytoTrue.C. SettheTextpropertywithanampersandtoindicatetheaccesskey.D. SettheCausesValidationpropertytoTrue.这是必要的定义使用Label控件的访问键?(选择所有适用)(A,B,C)A.设置TabOrder的访问键是使控制标签后立即控制。B.设置UseMnemonic属性为True。C.设置Text属性的符号表示的访问键。D.设置CausesValidation属性为True。4. Whichprop
24、ertiescanbeusedtodefinethecolorbehavioroftheLinkLabelcontrol?(Chooseallthatapply.)(A、C)哪些属性可以被用来定义LinkLabel控件的颜色行为?A.ActiveLinkColorB.LinkLabel_LinkClickedC.VisitedLinkColorD.LinkBehaviorLesson31. WhichofthefollowingpropertiesoftheTextBoxcontrolshouldbesettothevalueindicatedtoensurethattheTextBoxcan
25、accommodateastring10,000characterslong?(D)以下属性的TextBox控件,以确保在TextBox可容纳10,000个字符长的字符串值应设置为?A.MultiLine=TrueB.WordWrap=TrueC.ScrollBars=TrueD.MaxLength=100002. WhichofthefollowingMaskpropertysettingswillconfigureaMaskedTextBoxfortheentryofasocialsecuritynumber,whichisdisplayedasthreedigits,followedby
26、ahyphen,thentwodigits,followedbyanotherhyphen,andthenfinallyfourdigits?(C)的以下的面膜属性设置将配置一个MaskedTextBox中的社会保障号码,显示为三个数字,后跟一个连字符的条目,然后两个数字,另一个连字符,然后最后四位数字?A.999-99-9999B.999/00/0000C.000-00-0000D.000/00/00003. YouhaveaMaskedTextBoxwiththeMaskpropertysetto000-0000toindicateaseven-digitphonenumber.Youwa
27、ntuserstobeabletocutandpastetheentirestring,includingthe'-'character,butwhentheprogramaccessestheMaskedText-Box,youwanttoexcludethe'-'character.WhichofthefollowingwillconfiguretheMaskedTextBoxtoprovidethisfunctionality?(B)你有一个MaskedTextBox中Mask属性设置为000-0000,表示7位数的电话号码。你希望用户能够剪切和粘贴整个字
28、符串,包括the”字符,但当程序访问的MaskedText盒时,你要排除the”字符。下列哪项配置MaskedTextBox中提供此功能?A.SettheCutCopyMaskFormatpropertytoExcludePromptAndLiteralsandTextMask-FormattoIncludeLiterals.B.SettheCutCopyMaskFormatpropertytoIncludeLiteralsandTextMaskFormattoExcludePromptAndLiterals.C. SettheCutCopyMaskFormatpropertytoExclud
29、ePromptAndLiteralsandTextMask-FormattoIncludePrompt.D. SettheCutCopyMaskFormatpropertytoIncludeLiteralsandTextMaskFormattoIncludeLiterals.A.设置属性的ExcludePromptAndLiterals和TEXTMASK格式IncludeLiteralsCutCopyMaskFormat,。B.置功能选择开关CutCopyMaskFormat属性到IncludeLiteralsTextMaskFormat,至ijExcludePromptAndLiterals
30、。C.设置CutCopyMaskFormat,财产的ExcludePromptAndLiterals的TEXTMASK格式IncludePrompt。D.设置属性对IncludeLiterals和TextMaskFormat至UCutCopyMaskFormatIncludeLiterals。Chapter3Lessson11. WhichofthefollowingpropertiesandmethodscanbeusedtofindtheindexofaselectediteminaListBoxcontrol?(Chooseallthatapply.)(B、C)以下属性和方法可以用来寻找
31、在ListBox控件中选定项的指数?(选择所有适用)A.ListBox.IndexOfB.ListBox.SelectedIndexC.ListBox.SelectedIndicesD.ListBox.Select2. WhichofthefollowingmethodscannotbeusedtoaddanitemtotheItemscollectionofaComboBox,ListBox,orCheckedListBoxcontrol?(D)以下哪种方法不能使用添加一个项目的Items集合一个ComboBox,ListBox控件或CheckedListBox控制?A.Items.AddB
32、.Items.InsertC.Items.AddRangeD.Items.Contains3. WhichofthefollowingisNOTavalidsettingfortheViewpropertyoftheListViewcontrol?(C)下列哪项是不是一个有效的ListView控件的View属性设置?A. LargeIconB. DetailsC. TreeD. SmallIconLesson21. WhichofthefollowingarepossiblevaluesfortheCheckedpropertyofaCheckBoxcontrol?(Chooseallthat
33、apply.)(B、E)下列哪项是一个CheckBox控件的Checked属性的可能值?A.CheckedB. FalseC. IndeterminateD. UncheckedE. TrueF. NotChecked2. Youaredesigninganapplicationthataskstheusertoselectaperiodrangingfromonedaytosevendaysinagivenmonth.WhichofthefollowingconfigurationsforaMonthCalendarcontrolarebestchoicestofacilitatethisf
34、unctionality?(Chooseallthatapply.)(A、C、D)A. SettheMaxSelectionCountpropertyto7.B. SettheSelectionRangepropertytothefirstandlastdaysofthemonthinquestion.C. SettheMaxDatepropertytothelastdayofthemonthinquestion.D. SettheMinDatepropertytothefirstdayofthemonthinquestion.你正在设计一个应用程序,要求用户选择一个时期,在一个给定月份从一天
35、至七天。以下配置为MonthCalendar控件是促进这一功能的最佳选择?(选择所有适用)(A,C,D)A.设置将MaxSelectionCount的属性到7。B.设置SelectionRange属性,一个月的第一个和最后的日子。C.设置MaxDate属性的当月的最后一天。D.设置MinDate属性的当月的第一天。3. WhichofthefollowingcodeexamplescorrectlyassociatesanimagefromanImageListcomponentwithaButtoncontrol?AssumeanImageListcomponentnamedImageLis
36、tlandaButtoncontrolnamedButton1.(Chooseallthatapply.)(C、D)下面的代码示例正确联营图像从一个ImageList组件与一个Button控件?假设一个ImageList组件名为ImageList1中名为Button1和一个Button控件。A.'VBButton1.Image=ImageList1/C#button1.Image=imageList1;B.'VBButton1.ImageList=ImageList1Button1.ImageKey=ImageList1.Images(0)/C#button1.ImageLis
37、t1=imageList1;button1.ImageKey=imageList1.Images(0);C.'VBButton1.ImageList=ImageList1Button1.ImageIndex=0/C#button1.ImageList=imageList1;button1.ImageIndex=0;D.'VBButton1.ImageList=ImageList1Button1.ImageKey="myImage"/C#button1.ImageList=imageList1;button1.ImageKey="myImage&qu
38、ot;Lesson31. WhichofthefollowingmethodscanbeusedtoprintthecurrentdocumentinaWeb-Browsercontrol?(Chooseallthatapply.)(A、B、C)下列方法可以用来在一个Web浏览器控制打印当前文档?A.WebBrowser.PrintB.WebBrowser.ShowPrintDialogC.WebBrowser.ShowPrintPreviewDialogD.WebBrowser.ShowPropertiesDialog2. Youaredesigninganapplicationthatru
39、nsinthebackgroundandwanttoenabletheapplicationtonotifytheuserwhenasevereerroroccurs.WhichofthefollowingpropertiesoftheNotifyIconcomponentcanfacilitatethisfunctionality?(Chooseallthatapply.)(A、B、C)你正在设计一个应用程序在后台运行,并希望使应用程序能够在发生严重错误时通知用户。NotifyIcon组件的下列属性,可以利用这个功能吗?A.BalloonTipIconB.BalloonTipTextC.Ba
40、lloonTipTitleD.Text3. Whichofthefollowingarerequiredtocreateanaccesskeyforacontrolwithoutusinganassociatedlabel?(Chooseallthatapply.)(B、C、D)A.TheEnabledpropertymustbesettoTrue.B. ThecontrolmusthaveaTextproperty.C. TheUseMnemonicpropertymustbesettoTrue.D. Thecontrolmustbeofatypethatisabletoreceivethe
41、focus.下列哪一项都需要创建一个访问键的控制,而无需使用相关的标签吗?(选择所有适用)(B,C,D)A.Enabled属性必须被设置为True。B.控制必须有一个Text属性。C.UseMnemonic属性必须设置为True。D.控制必须是一个类型,是能够接收焦点。Chapter4Lesson11. WhichofthefollowingcodesnippetswillcorrectlymergetwotoolstripsnamedaToolStripandbToolStrip?(B)下面的代码片段将正确合并两个工具条名为aToolStripbToolStrip?A.'VBaToo
42、lStrip.Merge(bToolStrip)/C#aToolStrip.Merge(bToolStrip);B.'VBToolStripManager.Merge(aToolStrip,bToolStrip)/C#ToolStripManager.Merge(aToolStrip,bToolStrip);C.'VBDimaManagerAsNewToolStripManager()aManager.Merge(aToolStrip,bToolStrip)/C#ToolStripManageraManager=newToolStripManager();aManager.Me
43、rge(aToolStrip,bToolStrip);D.'VBToolStrip.Merge(aToolStrip,bToolStrip)/C#ToolStrip.Merge(aToolStrip,bToolStrip);2. WhichofthefollowingcodesnippetswilladdanewToolStripButtontoatoolstripnamedaToolStrip?(A)下面的代码片段将添加一个新的ToolStripButton一个工具条名为aToolStrip的?A. 'VBaToolStrip.Items.Add(NewToolStripBu
44、tton("Clickme")/C#aToolStrip1.Items.Add(newToolStripButton("Clickme");B. 'VBToolStripManager.Add(aToolStrip,NewToolStripButton("Clickme")/C#ToolStripManager.Add(aToolStrip,newToolStripButton("Clickme");C. 'VBaToolStrip.Buttons.Add(NewToolStripButton(&q
45、uot;Clickme")/C#aToolStrip.Buttons.Add(newToolStripButton("Clickme");D. 'VBaToolStrip.Items.NewItem(Items.ToolStripButton("Clickme")/C#aToolStrip.Items.NewItem(Items.ToolStripButton("Clickme");Lesson21.Whichofthefollowingarerequiredtocreateanaccesskeyforamenuit
46、em?(C)A. TheUseMnemonicpropertyfortheToolStripMenuItemmustbesettoTrue.B. TheAccessKeyspropertymustbesettothecorrectkey.C. TheletterfortheaccesskeyintheTextpropertymustbeprecededbyanampersand(&)symbol.D. TheShortCutKeyspropertymustbesettoCtrlplustheletterfortheaccesskey.下列哪一项需要创建一个菜单项的访问键?(C)为Too
47、lStripMenuItemA.UseMnemonic属性必须设置为True。B. AccessKeys的属性必须设置到正确的键。C. Text属性中的访问键的字母为前面必须有一个符号(&)符号。D. ShortcutKeys属性必须被设置为Ctrl+访问键的字母。2. WhichofthefollowingcodesnippetswilladdanewmenunamedMenu1toaformatruntime?(D)下面的代码片段将名为菜单1的形式在运行时添加新的菜单吗?A. 'VBToolStripManager.Menus.Add(Menu1)/C#ToolStripManager.Menus.Add(Menu1);B. 'VBTool
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五版养老服务机构运营管理合同范本及服务质量标准4篇
- 二零二五年度旅游产品销售与推广服务合同2篇
- 二零二五年度国际贸易居间服务及佣金结算合同
- 2025年度城市绿化项目聘用员工服务合同范本4篇
- 2025版门闸智能升级改造工程合同样本4篇
- 2025年度航空维修配件采购合同质量监控与供应链管理4篇
- 二零二五年度体育赛事官方赛事组织与管理合同
- 二零二五年度时尚配饰商标转让合同3篇
- 2025版木材加工厂租赁合同编制指南详解3篇
- 二零二五年度口腔医院临床路径管理与优化承包合同3篇
- 人教版八年级数学下册举一反三专题17.6勾股定理章末八大题型总结(培优篇)(学生版+解析)
- 2024届上海高考语文课内古诗文背诵默写篇目(精校版)
- DL-T5024-2020电力工程地基处理技术规程
- 2024年度-美团新骑手入门培训
- 初中数学要背诵记忆知识点(概念+公式)
- 驾照体检表完整版本
- 农产品农药残留检测及风险评估
- 农村高中思想政治课时政教育研究的中期报告
- 20100927-宣化上人《愣严咒句偈疏解》(简体全)
- 4-熔化焊与热切割作业基础知识(一)
- 单元教学评一体化设计的探索与实践以统编语文教材四年级下册第一单元为例
评论
0/150
提交评论