《人机界面设计》选择题样题综述.doc_第1页
《人机界面设计》选择题样题综述.doc_第2页
《人机界面设计》选择题样题综述.doc_第3页
《人机界面设计》选择题样题综述.doc_第4页
《人机界面设计》选择题样题综述.doc_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Chapter 1Lesson11. Which of the following code snippets demonstrates how to add a new instance of a Windows form named Form1 at run time? (D)下面的代码片段演示了如何添加一个新的名为Form1的窗体在运行时的Windows实例? A. VB Dim myForm As Form1 myForm = Form1.CreateForm() / C# Form1 myForm; myForm = Form1.CreateForm(); B. VB Dim myForm As Form1 myForm.Show() / C# Form1 myForm; myForm.Show(); C. VB myForm = Form1 myForm.Show() / C# myForm = Form1; myForm.Show(); D. VB Dim myForm As Form1 myForm = New Form1() / C# Form1 myForm; myForm = new Form1(); 2. Which of the following code snippets correctly demonstrates how to set a form to a nonrectangular shape? (C)下面的代码片段演示了如何设置非矩形形状的形式?A. VB Dim aPath As New System.Drawing.Drawing2D.GraphicsPath aPath.AddEllipse(0, 0, this.Width, this.Height) Me.Region = New Region(); / C# System.Drawing.Drawing2D.GraphicsPath aPath = new System.Drawing.Drawing2D.GraphicsPath(); aPath.AddEllipse(0, 0, Me.Width, Me.Height); this.Region = new Region(); B. VB Dim aPath As New System.Drawing.Drawing2D.GraphicsPath aPath.AddEllipse(0, 0, Me.Width, Me.Height) / C# System.Drawing.Drawing2D.GraphicsPath aPath = new System.Drawing.Drawing2D.GraphicsPath(); aPath.AddEllipse (0, 0, this.Width, this.Height); C. VB Dim aPath As New System.Drawing.Drawing2D.GraphicsPath aPath.AddEllipse(0, 0, Me.Width, Me.Height) Me.Region = New Region(aPath) / C# System.Drawing.Drawing2D.GraphicsPath aPath = new System.Drawing.Drawing2D.GraphicsPath(); aPath.AddEllipse(0, 0, this.Width, this.Height); this.Region = new Region(aPath); D. VB Dim aPath As New System.Drawing.Drawing2D.GraphicsPath aPath.AddEllipse(0, 0, Me.Width, Me.Height) Me.Region = aPath / C# System.Drawing.Drawing2D.GraphicsPath aPath = new System.Drawing.Drawing2D.GraphicsPath(); aPath.AddEllipse(0, 0, this.Width, this.Height) this.Region = aPath; 3. Which of the following code samples correctly sets the title, border style, size, and opacity of a form? (A)下面的代码样本中正确设置的标题,边框样式,大小和不透明度的一种形式?A. VB Me.Text = My Form Me.FormBorderStyle = FormBorderStyle.Fixed3D Me.Size = New Size(300, 300) Me.Opacity = 0.5 / C# this.Text = My Form; this.FormBorderStyle = FormBorderStyle.Fixed3D; this.Size = new Size(300, 300); this.Opacity = 0.5; B. VB Me.Text = My Form Me.BorderStyle = Fixed3D Me.Size = New Size(300, 300) Me.Opacity = 0.5 / C# this.Text = My Form; this.BorderStyle = Fixed3D; this.Size = new Size(300, 300); this.Opacity = 0.5; C. VB Me.Text = My Form Me.FormBorderStyle = FormBorderStyle.Fixed3D Me.Size = (300,300) Me.Opacity = 100% / C# this.Text = My Form; this.FormBorderStyle = FormBorderStyle.Fixed3D; this.Size = (300,300); this.Opacity = 100%; D. VB Me.Title = My Form Me.FormBorderStyle = FormBorderStyle.Fixed3D Me.Size = New Size(300,300) Me.Opacity = 100% / C# this.Title = My Form; this.FormBorderStyle = FormBorderStyle.Fixed3D; this.Size = new Size(300,300); this.Opacity = 100%;Lesson 21. Which of the following code samples demonstrates how to set a flow break on a control named aButton in a FlowLayoutPanel named FLPanel1? (C)下面的代码示例演示如何设置流断裂在一个FlowLayoutPanel的名为FLPanel1名为aButton获得控制?A. VB aButton.SetFlowBreak() / C# aButton.SetFlowBreak(); B. VB aButton.SetFlowBreak(FLPanel1) / C# aButton.SetFlowBreak(FLPanel1); C. VB FLPanel1.SetFlowBreak(aButton, True) / C# FLPanel1.SetFlowBreak(aButton, true); D. VB FLPanel1.aButton.SetFlowBreak / C# FLPanel1.aButton.SetFlowBreak(); 2. You are designing an application that includes a property page that enables the user to set properties of the application. These properties are divided into three categories: Appearance, Execution, and Memory Management. Which container control represents the best starting point for the user interface? (D)你正在设计一个应用程序,其中包括一个属性页,使用户能够设置应用程序的属性。这些属性分为三类:外观,执行和内存管理。哪一个容器控件代表用户界面的最佳起点?A. TableLayoutPanel B. FlowLayoutPanel C. GroupBox D. TabControl 3. Which of the following is the correct way to add a control to a form at design time? (Choose all that apply.) (A、B、C、D)下列哪一项是正确的方法,在设计时添加控件到窗体? (选择所有适用)A. Select a control in the Toolbox and double-click the form. B. Select a control in the Toolbox and draw on the form with the mouse. C. Double-click the control in the Toolbox. D. Select the control in the Toolbox and drag it to the form. A.选择控制工具箱中双击表格。B.选择工具箱中的一个控制,用鼠标画的形式。C.双击工具箱中的控制。D.在工具箱中选择的控制,并将其拖动到表单。4. Which of the following code samples demonstrates the correct way to add a Button control to a form named Form1 at run time? (B)下面的代码示例演示一个名为Form1的窗体在运行时正确的方式来添加一个Button控件? A. VBForm1.Controls.Add(Button) / C#Form1.Controls.Add(Button); B. VB Dim aButton As New Button Form1.Controls.Add(aButton) / C# Button aButton = new Button(); Form1.Controls.Add(aButton); C. VB Dim aButton As New Button Form1.Add(aButton) / C# Button aButton = new Button(); Form1.Add(aButton); D. VB Form1.Add(New Button) / C# Form1.Add(new Button); 5. Which code sample correctly demonstrates how to add a new panel to a SplitContainer named SpC1? (D)正确的代码示例演示了如何添加一个新的面板名为SPC1一个SplitContainer?A. VB SpC1.Controls.Add(New Panel) / C# SpC1.Controls.Add(new Panel(); B. VB SpC1.Controls.Add(New SplitterPanel) / C# SpC1.Controls.Add(new SplitterPanel(); C. VBSpC1.Add(New SplitterPanel)/ C#SpC1.Add(new SplitterPanel(); D. VBNone of the above / C#None of the above Chapter 2Lesson 11. Which of the following can be used to modify the size of a control in a form at design time? (Choose all that apply.) (A、D)下列哪一项可以用来修改的大小控制在设计时的形式? A. Grabbing and dragging the edges of the control B. Setting the control size in the View menu C. Clicking the smart tag and entering a new size for the control D. Editing the Size property in the Properties window A.拼抢和拖动控制的边缘B.在“视图”菜单中设置控制大小C.单击智能标记,并进入一个新的大小控制D.编辑的Size属性在属性窗口中2. Which of the following methods can be used to modify the location of controls in a form at design time? (Choose all that apply.) (A、B、C) A. Changing the Location property in the Properties window B. Grabbing the control and moving it with the mouse C. Using the Layout toolbar to adjust control spacing D. Using the Location window to graphically position controls 修改表单中控件的位置,在设计时可以使用下列方法中的哪? (选择所有适用)(A,B,C)A.更改位置“属性,在属性窗口中B.拼抢控制,用鼠标移动C.使用布局工具栏来调整控制间距D.使用位置“窗口以图形化的定位控制3. Which setting of the Anchor property allows controls to float freely when the form is resized? (C)设置Anchor属性允许汇率自由浮动的控制调整窗体大小时?A. Top B. Top, Bottom C. None D. Right, Left 4. Which setting of the Dock property causes the control to fill its form or container control? (B)A. Top B. Fill C. Top, Left, Right, Bottom D. None, you should use the Anchor property Dock属性设置导致的控制,以填补其窗体或容器控件? (B)A.顶部B.填充C.顶部,左,右,底部D.没有,你应该使用Anchor属性Lesson 21. Which Button events can be used to respond to mouse clicks? (Choose all that apply.) (A、C)哪些可以用来响应鼠标点击按钮事件?A. Button.Click B. Button.LinkClicked C. Button.MouseDown D. Button.MouseOver 2. Which property does not control how a Button looks or behaves when the FlatStyle property is set to Flat ? (D)哪个属性不控制按钮的外观或行为时FlatStyle属性设置为扁平如何?A. FlatAppearance.MouseOverBackColor B. FlatAppearance.MouseDownBackColor C. FlatAppearance.BorderSize D. FlatAppearance.Text 3. Which is necessary to defi ne an access key using a Label control? (Choose all that apply.) (A、B、C)A. Set the TabOrder so that the control for the access key is immediately after the Label control. B. Set the UseMnemonic property to True . C. Set the Text property with an ampersand to indicate the access key. D. Set the CausesValidation property to True . 这是必要的定义使用Label控件的访问键? (选择所有适用)(A,B,C)A.设置TabOrder的访问键是使控制标签后立即控制。B.设置UseMnemonic属性为True。C.设置Text属性的符号表示的访问键。D.设置CausesValidation属性为True。 4. Which properties can be used to define the color behavior of the LinkLabel control? (Choose all that apply.) (A、C)哪些属性可以被用来定义LinkLabel控件的颜色行为?A. ActiveLinkColor B. LinkLabel_LinkClickedC. VisitedLinkColor D. LinkBehaviorLesson 31. Which of the following properties of the TextBox control should be set to the value indicated to ensure that the TextBox can accommodate a string 10,000 characters long? (D)以下属性的TextBox控件,以确保在TextBox可容纳10,000个字符长的字符串值应设置为?A. MultiLine = True B. WordWrap = True C. ScrollBars = True D. MaxLength = 10000 2. Which of the following Mask property settings will configure a MaskedTextBox for the entry of a social security number, which is displayed as three digits, followed by a hyphen, then two digits, followed by another hyphen, and then finally four digits? (C)的以下的面膜属性设置将配置一个MaskedTextBox中的社会保障号码,显示为三个数字,后跟一个连字符的条目,然后两个数字,另一个连字符,然后最后四位数字? A. 999-99-9999 B. 999/00/0000 C. 000-00-0000 D. 000/00/0000 3. You have a MaskedTextBox with the Mask property set to 000-0000 to indicate a seven-digit phone number. You want users to be able to cut and paste the entire string, including the-character, but when the program accesses the MaskedText-Box, you want to exclude the- character. Which of the following will configure the MaskedTextBox to provide this functionality? (B)你有一个MaskedTextBox中Mask属性设置为000-0000,表示7位数的电话号码。你希望用户能够剪切和粘贴整个字符串,包括the字符,但当程序访问的MaskedText盒时,你要排除the字符。下列哪项配置MaskedTextBox中提供此功能? A. Set the CutCopyMaskFormat property to ExcludePromptAndLiterals and TextMask-Format to IncludeLiterals. B.Set the CutCopyMaskFormat property to IncludeLiterals and TextMaskFormat to ExcludePromptAndLiterals. C. Set the CutCopyMaskFormat property to ExcludePromptAndLiterals and TextMask-Format to IncludePrompt . D. Set the CutCopyMaskFormat property to IncludeLiterals and TextMaskFormat to IncludeLiterals. A.设置属性的ExcludePromptAndLiterals和TEXTMASK格式IncludeLiterals CutCopyMaskFormat,。B.置功能选择开关CutCopyMaskFormat属性到IncludeLiterals TextMaskFormat,到ExcludePromptAndLiterals。C.设置CutCopyMaskFormat,财产的ExcludePromptAndLiterals的TEXTMASK格式IncludePrompt。D.设置属性对IncludeLiterals和TextMaskFormat到CutCopyMaskFormatIncludeLiterals。 Chapter 3Lessson 11. Which of the following properties and methods can be used to find the index of a selected item in a ListBox control? (Choose all that apply.) (B、C)以下属性和方法可以用来寻找在ListBox控件中选定项的指数? (选择所有适用)A. ListBox.IndexOf B. ListBox.SelectedIndex C. ListBox.SelectedIndices D. ListBox.Select 2. Which of the following methods cannot be used to add an item to the Items collection of a ComboBox , ListBox, or CheckedListBox control? (D)以下哪种方法不能使用添加一个项目的Items集合一个ComboBox,ListBox控件或CheckedListBox控制?A. Items.Add B. Items.Insert C. Items.AddRange D. Items.Contains 3. Which of the following is NOT a valid setting for the View property of the ListView control? (C)下列哪项是不是一个有效的ListView控件的View属性设置?A. LargeIcon B. Details C. Tree D. SmallIconLesson 21. Which of the following are possible values for the Checked property of a CheckBox control? (Choose all that apply.) (B、E)下列哪项是一个CheckBox控件的Checked属性的可能值?A. Checked B. False C. Indeterminate D. Unchecked E. True F. NotChecked 2. You are designing an application that asks the user to select a period ranging from one day to seven days in a given month. Which of the following configurations for a MonthCalendar control are best choices to facilitate this functionality? (Choose all that apply.) (A、C、D)A. Set the MaxSelectionCount property to 7. B. Set the SelectionRange property to the first and last days of the month in question. C. Set the MaxDate property to the last day of the month in question. D. Set the MinDate property to the first day of the month in question. 你正在设计一个应用程序,要求用户选择一个时期,在一个给定月份从一天至七天。以下配置为MonthCalendar控件是促进这一功能的最佳选择? (选择所有适用)(A,C,D)A.设置将MaxSelectionCount的属性到7。B.设置SelectionRange属性,一个月的第一个和最后的日子。C.设置MaxDate属性的当月的最后一天。D.设置MinDate属性的当月的第一天。 3. Which of the following code examples correctly associates an image from an ImageList component with a Button control? Assume an ImageList component named ImageList1 and a Button control named Button1. (Choose all that apply.) (C、D)下面的代码示例正确联营图像从一个ImageList组件与一个Button控件?假设一个ImageList组件名为ImageList1中名为Button1和一个Button控件。A. VBButton1.Image = ImageList1 / C# button1.Image = imageList1;B. VBButton1.ImageList = ImageList1 Button1.ImageKey = ImageList1.Images(0) / C# button1.ImageList1 = imageList1; button1.ImageKey = imageList1.Images(0); C. VBButton1.ImageList = ImageList1 Button1.ImageIndex = 0 / C#button1.ImageList = imageList1; button1.ImageIndex = 0; D. VBButton1.ImageList = ImageList1 Button1.ImageKey = myImage / C#button1.ImageList = imageList1; button1.ImageKey = myImage;Lesson 31. Which of the following methods can be used to print the current document in a Web-Browser control? (Choose all that apply.) (A、B、C)下列方法可以用来在一个Web浏览器控制打印当前文档?A. WebBrowser.Print B. WebBrowser.ShowPrintDialog C. WebBrowser.ShowPrintPreviewDialog D. WebBrowser.ShowPropertiesDialog 2. You are designing an application that runs in the background and want to enable the application to notify the user when a severe error occurs. Which of the following properties of the NotifyIcon component can facilitate this functionality? (Choose all that apply.) (A、B、C)你正在设计一个应用程序在后台运行,并希望使应用程序能够在发生严重错误时通知用户。 NotifyIcon组件的下列属性,可以利用这个功能吗?A. BalloonTipIcon B. BalloonTipText C. BalloonTipTitle D. Text 3. Which of the following are required to create an access key for a control without using an associated label? (Choose all that apply.) (B、C、D)A. The Enabled property must be set to True . B. The control must have a Text property. C. The UseMnemonic property must be set to True . D. The control must be of a type that is able to receive the focus. 下列哪一项都需要创建一个访问键的控制,而无需使用相关的标签吗? (选择所有适用)(B,C,D)A. Enabled属性必须被设置为True。B.控制必须有一个Text属性。C. UseMnemonic属性必须设置为True。D.控制必须是一个类型,是能够接收焦点。 Chapter 4Lesson 11. Which of the following code snippets will correctly merge two tool strips named aToolStrip and bToolStrip? (B)下面的代码片段将正确合并两个工具条名为aToolStrip bToolStrip?A. VBaToolStrip.Merge(bToolStrip) / C#aToolStrip.Merge(bToolStrip); B. VBToolStripManager.Merge(aToolStrip, bToolStrip) / C#ToolStripManager.Merge(aToolStrip, bToolStrip); C. VB Dim aManager As New ToolStripManager() aManager.Merge(aToolStrip, bToolStrip) / C#ToolStripManager aManager = new ToolStripManager(); aManager.Merge(aToolStrip, bToolStrip); D. VBToolStrip.Merge(aToolStrip, bToolStrip) / C#ToolStrip.Merge(aToolStrip, bToolStrip); 2. Which of the following code snippets will add a new ToolStripButton to a tool strip named aToolStrip? (A) 下面的代码片段将添加一个新的ToolStripButton一个工具条名为aToolStrip的?A. VBaToolStrip.Items.Add(New ToolStripButton(Click me) / C#aToolStrip1.Items.Add(new ToolStripButton(Click me); B. VBToolStripManager.Add(aToolStrip, New ToolStripButton(Click me) / C#ToolStripManager.Add(aToolStrip, new ToolStripButton(Click me); C. VBaToolStrip.Buttons.Add(New ToolStripButton(Click me) / C#aToolStrip.Buttons.Add(new ToolStripButton(Click me); D. VBaToolStrip.Items.NewItem(Items.ToolStripButton(Click me) / C#aToolStrip.Items.NewItem(Items.ToolStripButton(Click me); Lesson 21. Which of the following are required to create an access key for a menu item? (C)A. The UseMnemonic property for the ToolStripMenuItem must be set to True . B. The AccessKeys property must be set to the correct key. C. The letter for the access key in the Text property must be preceded by an ampersand (&) symbol. D. The ShortCutKeys property must be set to Ctrl plus the letter for the access key. 下列哪一项需要创建一个菜单项的访问键? (C)为ToolStripMenuItem A. UseMnemonic属性必须设置为True。B. AccessKeys的属性必须设置到正确的键。C. Text属性中的访问键的字母为前面必须有一个符号()符号。D. ShortcutKeys属性必须被设置为Ctrl +访问键的字母。2. Which of the following code snippets will add a new menu named Menu1 to a form at run time? (D)下面的代码片段将名为菜单1的形式在运行时添加新的菜单吗?A. VB ToolStripManager.Menus.Add(Menu1) / C# ToolStripManager.Menus.Add(Menu1); B.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论