版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter1Lesson1WhichofthefollowingcodesnippetsdemonstrateshowtoaddanewinstanceofaWindowsformnamedForm1atruntime?(D)下面的代码片段演示了如何添加一个新的名为Form1的窗体在运行时的Windows实例?A.'VBDimmyFormAsForm1myForm=Form1.CreateForm()//C#Form1myForm;myForm=Form1.CreateForm();B.'VBDimmyFormAsForm1myForm.Show()//C#Form1myForm;myForm.Show();C.'VBmyForm=Form1myForm.Show()//C#myForm=Form1;myForm.Show();D.'VBDimmyFormAsForm1myForm=NewForm1()//C#Form1myForm;myForm=newForm1();Whichofthefollowingcodesnippetscorrectlydemonstrateshowtosetaformtoanonrectangularshape?(C)下面的代码片段演示了如何设置非矩形形状的形式?A.'VBDimaPathAsNewSystem.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.GraphicsPathaPath.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=NewRegion(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.Drawing.Drawing2D.GraphicsPathaPath=newSystem.Drawing.Drawing2D.GraphicsPath();aPath.AddEllipse(0,0,this.Width,this.Height)this.Region=aPath;Whichofthefollowingcodesamplescorrectlysetsthetitle,borderstyle,size,andopacityofaform?(A)下面的代码样本中正确设置的标题,边框样式,大小和不透明度的一种形式?A.'VBMe.Text="MyForm"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=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=FormBorderStyle.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.Opacity="100%";Lesson2WhichofthefollowingcodesamplesdemonstrateshowtosetaflowbreakonacontrolnamedaButtoninaFlowLayoutPanelnamedFLPanel1?(C)下面的代码示例演示如何设置流断裂在一个FlowLayoutPanel的名为FLPanel1名为aButton获得控制?A.'VBaButton.SetFlowBreak()//C#aButton.SetFlowBreak();B.'VBaButton.SetFlowBreak(FLPanel1)//C#aButton.SetFlowBreak(FLPanel1);C.'VBFLPanel1.SetFlowBreak(aButton,True)//C#FLPanel1.SetFlowBreak(aButton,true);D.'VBFLPanel1.aButton.SetFlowBreak//C#FLPanel1.aButton.SetFlowBreak();Youaredesigninganapplicationthatincludesapropertypagethatenablestheusertosetpropertiesoftheapplication.Thesepropertiesaredividedintothreecategories:Appearance,Execution,andMemoryManagement.Whichcontainercontrolrepresentsthebeststartingpointfortheuserinterface?(D)你正在设计一个应用程序,其中包括一个属性页,使用户能够设置应用程序的属性。这些属性分为三类:外观,执行和内存管理。哪一个容器控件代表用户界面的最佳起点?A.TableLayoutPanelB.FlowLayoutPanelC.GroupBoxD.TabControlWhichofthefollowingisthecorrectwaytoaddacontroltoaformatdesigntime?(Chooseallthatapply.)(A、B、C、D)下列哪一项是正确的方法,在设计时添加控件到窗体?(选择所有适用)A.SelectacontrolintheToolboxanddouble-clicktheform.B.SelectacontrolintheToolboxanddrawontheformwiththemouse.C.Double-clickthecontrolintheToolbox.D.SelectthecontrolintheToolboxanddragittotheform.A.选择控制工具箱中双击表格。B.选择工具箱中的一个控制,用鼠标画的形式。C.双击工具箱中的控制。D.在工具箱中选择的控制,并将其拖动到表单。WhichofthefollowingcodesamplesdemonstratesthecorrectwaytoaddaButtoncontroltoaformnamedForm1atruntime?(B)下面的代码示例演示一个名为Form1的窗体在运行时正确的方式来添加一个Button控件?A.'VBForm1.Controls.Add(Button)//C#Form1.Controls.Add(Button);B.'VB DimaButtonAsNewButton Form1.Controls.Add(aButton) //C#ButtonaButton=newButton();Form1.Controls.Add(aButton);C.'VBDimaButtonAsNewButtonForm1.Add(aButton)//C#ButtonaButton=newButton();Form1.Add(aButton);D.'VBForm1.Add(NewButton)//C#Form1.Add(newButton);WhichcodesamplecorrectlydemonstrateshowtoaddanewpaneltoaSplitContainernamedSpC1?(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.Add(newSplitterPanel());D.'VBNoneoftheabove//C#NoneoftheaboveChapter2Lesson1Whichofthefollowingcanbeusedtomodifythesizeofacontrolinaformatdesigntime?(Chooseallthatapply.)(A、D)下列哪一项可以用来修改的大小控制在设计时的形式?A.GrabbinganddraggingtheedgesofthecontrolB.SettingthecontrolsizeintheViewmenuC.ClickingthesmarttagandenteringanewsizeforthecontrolD.EditingtheSizepropertyinthePropertieswindowA.拼抢和拖动控制的边缘B.在“视图”菜单中设置控制大小C.单击智能标记,并进入一个新的大小控制D.编辑的Size属性在属性窗口中2.Whichofthefollowingmethodscanbeusedtomodifythelocationofcontrolsinaformatdesigntime?(Chooseallthatapply.)(A、B、C)A.ChangingtheLocationpropertyinthePropertieswindowB.GrabbingthecontrolandmovingitwiththemouseC.UsingtheLayouttoolbartoadjustcontrolspacingD.UsingtheLocationwindowtographicallypositioncontrols修改表单中控件的位置,在设计时可以使用下列方法中的哪?(选择所有适用)(A,B,C)A.更改位置“属性,在属性窗口中B.拼抢控制,用鼠标移动C.使用布局工具栏来调整控制间距D.使用位置“窗口以图形化的定位控制WhichsettingoftheAnchorpropertyallowscontrolstofloatfreelywhentheformisresized?(C)设置Anchor属性允许汇率自由浮动的控制调整窗体大小时?A.TopB.Top,BottomC.NoneD.Right,Left4.WhichsettingoftheDockpropertycausesthecontroltofillitsformorcontainercontrol?(B)A.TopB.FillC.Top,Left,Right,BottomD.None,youshouldusetheAnchorpropertyDock属性设置导致的控制,以填补其窗体或容器控件?(B)A.顶部B.填充C.顶部,左,右,底部D.没有,你应该使用Anchor属性Lesson2WhichButtoneventscanbeusedtorespondtomouseclicks?(Chooseallthatapply.)(A、C)哪些可以用来响应鼠标点击按钮事件?A.Button.ClickB.Button.LinkClickedC.Button.MouseDownD.Button.MouseOver2.WhichpropertydoesnotcontrolhowaButtonlooksorbehaveswhentheFlatStylepropertyissettoFlat?(D)哪个属性不控制按钮的外观或行为时FlatStyle属性设置为扁平如何?A.FlatAppearance.MouseOverBackColorB.FlatAppearance.MouseDownBackColorC.FlatAppearance.BorderSizeD.FlatAppearance.Text3.WhichisnecessarytodefineanaccesskeyusingaLabelcontrol?(Chooseallthatapply.)(A、B、C)A.SettheTabOrdersothatthecontrolfortheaccesskeyisimmediatelyaftertheLabelcontrol.B.SettheUseMnemonicpropertytoTrue.C.SettheTextpropertywithanampersandtoindicatetheaccesskey.D.SettheCausesValidationpropertytoTrue.这是必要的定义使用Label控件的访问键?(选择所有适用)(A,B,C)A.设置TabOrder的访问键是使控制标签后立即控制。B.设置UseMnemonic属性为True。C.设置Text属性的符号表示的访问键。D.设置CausesValidation属性为True。4.WhichpropertiescanbeusedtodefinethecolorbehavioroftheLinkLabelcontrol?(Chooseallthatapply.)(A、C)哪些属性可以被用来定义LinkLabel控件的颜色行为?A.ActiveLinkColorB.LinkLabel_LinkClickedC.VisitedLinkColorD.LinkBehaviorLesson31.WhichofthefollowingpropertiesoftheTextBoxcontrolshouldbesettothevalueindicatedtoensurethattheTextBoxcanaccommodateastring10,000characterslong?(D)以下属性的TextBox控件,以确保在TextBox可容纳10,000个字符长的字符串值应设置为?A.MultiLine=TrueB.WordWrap=TrueC.ScrollBars=TrueD.MaxLength=10000
2.WhichofthefollowingMaskpropertysettingswillconfigureaMaskedTextBoxfortheentryofasocialsecuritynumber,whichisdisplayedasthreedigits,followedbyahyphen,thentwodigits,followedbyanotherhyphen,andthenfinallyfourdigits?(C)的以下的面膜属性设置将配置一个MaskedTextBox中的社会保障号码,显示为三个数字,后跟一个连字符的条目,然后两个数字,另一个连字符,然后最后四位数字?A.999-99-9999B.999/00/0000C.000-00-0000D.000/00/0000YouhaveaMaskedTextBoxwiththeMaskpropertysetto000-0000toindicateaseven-digitphonenumber.Youwantuserstobeabletocutandpastetheentirestring,includingthe‘-’character,butwhentheprogramaccessestheMaskedText-Box,youwanttoexcludethe‘-’character.WhichofthefollowingwillconfiguretheMaskedTextBoxtoprovidethisfunctionality?(B)你有一个MaskedTextBox中Mask属性设置为000-0000,表示7位数的电话号码。你希望用户能够剪切和粘贴整个字符串,包括the''字符,但当程序访问的MaskedText盒时,你要排除the''字符。下列哪项配置MaskedTextBox中提供此功能?A.SettheCutCopyMaskFormatpropertytoExcludePromptAndLiteralsandTextMask-FormattoIncludeLiterals.B.SettheCutCopyMaskFormatpropertytoIncludeLiteralsandTextMaskFormattoExcludePromptAndLiterals.C.SettheCutCopyMaskFormatpropertytoExcludePromptAndLiteralsandTextMask-FormattoIncludePrompt.D.SettheCutCopyMaskFormatpropertytoIncludeLiteralsandTextMaskFormattoIncludeLiterals.A.设置属性的ExcludePromptAndLiterals和TEXTMASK格式IncludeLiteralsCutCopyMaskFormat,。B.置功能选择开关CutCopyMaskFormat属性到IncludeLiteralsTextMaskFormat,到ExcludePromptAndLiterals。C.设置CutCopyMaskFormat,财产的ExcludePromptAndLiterals的TEXTMASK格式IncludePrompt。D.设置属性对IncludeLiterals和TextMaskFormat到CutCopyMaskFormatIncludeLiterals。Chapter3Lessson1WhichofthefollowingpropertiesandmethodscanbeusedtofindtheindexofaselectediteminaListBoxcontrol?(Chooseallthatapply.)(B、C)以下属性和方法可以用来寻找在ListBox控件中选定项的指数?(选择所有适用)A.ListBox.IndexOfB.ListBox.SelectedIndexC.ListBox.SelectedIndicesD.ListBox.SelectWhichofthefollowingmethodscannotbeusedtoaddanitemtotheItemscollectionofaComboBox,ListBox,orCheckedListBoxcontrol?(D)以下哪种方法不能使用添加一个项目的Items集合一个ComboBox,ListBox控件或CheckedListBox控制?A.Items.AddB.Items.InsertC.Items.AddRangeD.Items.Contains3.WhichofthefollowingisNOTavalidsettingfortheViewpropertyoftheListViewcontrol?(C)下列哪项是不是一个有效的ListView控件的View属性设置?A.LargeIconB.DetailsC.TreeD.SmallIconLesson21.WhichofthefollowingarepossiblevaluesfortheCheckedpropertyofaCheckBoxcontrol?(Chooseallthatapply.)(B、E)下列哪项是一个CheckBox控件的Checked属性的可能值?A.CheckedB.FalseC.IndeterminateD.UncheckedE.TrueF.NotChecked2.Youaredesigninganapplicationthataskstheusertoselectaperiodrangingfromonedaytosevendaysinagivenmonth.WhichofthefollowingconfigurationsforaMonthCalendarcontrolarebestchoicestofacilitatethisfunctionality?(Chooseallthatapply.)(A、C、D)A.SettheMaxSelectionCountpropertyto7.B.SettheSelectionRangepropertytothefirstandlastdaysofthemonthinquestion.C.SettheMaxDatepropertytothelastdayofthemonthinquestion.D.SettheMinDatepropertytothefirstdayofthemonthinquestion.你正在设计一个应用程序,要求用户选择一个时期,在一个给定月份从一天至七天。以下配置为MonthCalendar控件是促进这一功能的最佳选择?(选择所有适用)(A,C,D)A.设置将MaxSelectionCount的属性到7。B.设置SelectionRange属性,一个月的第一个和最后的日子。C.设置MaxDate属性的当月的最后一天。D.设置MinDate属性的当月的第一天。WhichofthefollowingcodeexamplescorrectlyassociatesanimagefromanImageListcomponentwithaButtoncontrol?AssumeanImageListcomponentnamedImageList1andaButtoncontrolnamedButton1.(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.ImageList1=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";Lesson31.WhichofthefollowingmethodscanbeusedtoprintthecurrentdocumentinaWeb-Browsercontrol?(Chooseallthatapply.)(A、B、C)下列方法可以用来在一个Web浏览器控制打印当前文档?A.WebBrowser.PrintB.WebBrowser.ShowPrintDialogC.WebBrowser.ShowPrintPreviewDialogD.WebBrowser.ShowPropertiesDialogYouaredesigninganapplicationthatrunsinthebackgroundandwanttoenabletheapplicationtonotifytheuserwhenasevereerroroccurs.WhichofthefollowingpropertiesoftheNotifyIconcomponentcanfacilitatethisfunctionality?(Chooseallthatapply.)(A、B、C)你正在设计一个应用程序在后台运行,并希望使应用程序能够在发生严重错误时通知用户。NotifyIcon组件的下列属性,可以利用这个功能吗?A.BalloonTipIconB.BalloonTipTextC.BalloonTipTitleD.Text3.Whichofthefollowingarerequiredtocreateanaccesskeyforacontrolwithoutusinganassociatedlabel?(Chooseallthatapply.)(B、C、D)A.TheEnabledpropertymustbesettoTrue.B.ThecontrolmusthaveaTextproperty.C.TheUseMnemonicpropertymustbesettoTrue.D.Thecontrolmustbeofatypethatisabletoreceivethefocus.下列哪一项都需要创建一个访问键的控制,而无需使用相关的标签吗?(选择所有适用)(B,C,D)A.Enabled属性必须被设置为True。B.控制必须有一个Text属性。C.UseMnemonic属性必须设置为True。D.控制必须是一个类型,是能够接收焦点。Chapter4Lesson11.WhichofthefollowingcodesnippetswillcorrectlymergetwotoolstripsnamedaToolStripandbToolStrip?(B)下面的代码片段将正确合并两个工具条名为aToolStripbToolStrip?A.'VBaToolStrip.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.Merge(aToolStrip,bToolStrip);D.'VBToolStrip.Merge(aToolStrip,bToolStrip)//C#ToolStrip.Merge(aToolStrip,bToolStrip);2.WhichofthefollowingcodesnippetswilladdanewToolStripButtontoatoolstripnamedaToolStrip?(A)下面的代码片段将添加一个新的ToolStripButton一个工具条名为aToolStrip的?A.'VBaToolStrip.Items.Add(NewToolStripButton("Clickme"))//C#aToolStrip1.Items.Add(newToolStripButton("Clickme"));B.'VBToolStripManager.Add(aToolStrip,NewToolStripButton("Clickme"))//C#ToolStripManager.Add(aToolStrip,newToolStripButton("Clickme"));C.'VBaToolStrip.Buttons.Add(NewToolStripButton("Clickme"))//C#aToolStrip.Buttons.Add(newToolStripButton("Clickme"));D.'VBaToolStrip.Items.NewItem(Items.ToolStripButton("Clickme"))//C# aToolStrip.Items.NewItem(Items.ToolStripButton("Clickme"));Lesson21.Whichofthefollowingarerequiredtocreateanaccesskeyforamenuitem?(C)A.TheUseMnemonicpropertyfortheToolStripMenuItemmustbesettoTrue.B.TheAccessKeyspropertymustbesettothecorrectkey.C.TheletterfortheaccesskeyintheTextpropertymustbeprecededbyanampersand(&)symbol.D.TheShortCutKeyspropertymustbesettoCtrlplustheletterfortheaccesskey.下列哪一项需要创建一个菜单项的访问键?(C)为ToolStripMenuItemA.UseMnemonic属性必须设置为True。B.AccessKeys的属性必须设置到正确的键。C.Text属性中的访问键的字母为前面必须有一个符号(&)符号。D.ShortcutKeys属性必须被设置为Ctrl+访问键的字母。2.WhichofthefollowingcodesnippetswilladdanewmenunamedMenu1toaformatruntime?(D)下面的代码片段将名为菜单1的形式在运行时添加新的菜单吗?A.'VBToolStripManager.Menus.Add(Menu1)//C#ToolStripManager.Menus.Add(Me
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年标准型吊车买卖合同版B版
- 矿山维修力工合同
- 2024年珠宝店装潢工程承包合同书一
- 2025广告发布委托合同文档模板2
- 2024年互联网企业数据安全保护责任合同3篇
- 2024年度出租汽车行业消防安全提升合同3篇
- 2025湖南省会计科研课题合同书
- 2024年度音响设备租赁代理合同:负责音响设备租赁业务的代理推广2篇
- 2024版大型赛事安保劳务派遣及赛事安全保障合同3篇
- 2024版菁离婚后子女抚养权争议调解合同样本202篇
- 皮肤美容与整形技术的新进展
- 《柔性生产方式》课件
- 单位员工餐厅整体保障服务方案
- 中国旗袍课件
- 销售线索培训课件
- 一例胸痹病人的护理查房
- 北京市西城区2023-2024学年七年级上学期期末数学试题
- 山东省工伤赔偿标准一览表
- 【电商平台拼多多的传播策略探究12000字(论文)】
- 提高肿瘤治疗前TNM分期评估率PDCA
- 2024年江苏省环保集团招聘笔试参考题库含答案解析
评论
0/150
提交评论