《人机界面设计》选择题样题.docx
《《人机界面设计》选择题样题.docx》由会员分享,可在线阅读,更多相关《《人机界面设计》选择题样题.docx(22页珍藏版)》请在冰点文库上搜索。
《人机界面设计》选择题样题
Chapter1
Lesson1
1.WhichofthefollowingcodesnippetsdemonstrateshowtoaddanewinstanceofaWindowsformnamedForm1atruntime?
(D)
下面的代码片段演示了如何添加一个新的名为Form1的窗体在运行时的Windows实例?
A.'VB
DimmyFormAsForm1
myForm=Form1.CreateForm()
//C#
Form1myForm;
myForm=Form1.CreateForm();
B.'VB
DimmyFormAsForm1
myForm.Show()
//C#
Form1myForm;
myForm.Show();
C.'VB
myForm=Form1
myForm.Show()
//C#
myForm=Form1;
myForm.Show();
D.'VB
DimmyFormAsForm1
myForm=NewForm1()
//C#
Form1myForm;
myForm=newForm1();
2.Whichofthefollowingcodesnippetscorrectlydemonstrateshowtosetaformtoanonrectangularshape?
(C)
下面的代码片段演示了如何设置非矩形形状的形式?
A.'VB
DimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPath
aPath.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.'VB
DimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPath
aPath.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.'VB
DimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPath
aPath.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.'VB
DimaPathAsNewSystem.Drawing.Drawing2D.GraphicsPath
aPath.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;
3.Whichofthefollowingcodesamplescorrectlysetsthetitle,borderstyle,size,andopacityofaform?
(A)
下面的代码样本中正确设置的标题,边框样式,大小和不透明度的一种形式?
A.'VB
Me.Text="MyForm"
Me.FormBorderStyle=FormBorderStyle.Fixed3D
Me.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.'VB
Me.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.'VB
Me.Text="MyForm"
Me.FormBorderStyle=FormBorderStyle.Fixed3D
Me.Size=(300,300)
Me.Opacity="100%"
//C#
this.Text="MyForm";
this.FormBorderStyle=FormBorderStyle.Fixed3D;
this.Size=(300,300);
this.Opacity="100%";
D.'VB
Me.Title="MyForm"
Me.FormBorderStyle=FormBorderStyle.Fixed3D
Me.Size=NewSize(300,300)
Me.Opacity="100%"
//C#
this.Title="MyForm";
this.FormBorderStyle=FormBorderStyle.Fixed3D;
this.Size=newSize(300,300);
this.Opacity="100%";
Lesson2
1.WhichofthefollowingcodesamplesdemonstrateshowtosetaflowbreakonacontrolnamedaButtoninaFlowLayoutPanelnamedFLPanel1?
(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.Youaredesigninganapplicationthatincludesapropertypagethatenablestheusertosetpropertiesoftheapplication.Thesepropertiesaredividedintothreecategories:
Appearance,Execution,andMemoryManagement.Whichcontainercontrolrepresentsthebeststartingpointfortheuserinterface?
(D)
你正在设计一个应用程序,其中包括一个属性页,使用户能够设置应用程序的属性。
这些属性分为三类:
外观,执行和内存管理。
哪一个容器控件代表用户界面的最佳起点?
A.TableLayoutPanel
B.FlowLayoutPanel
C.GroupBox
D.TabControl
3.Whichofthefollowingisthecorrectwaytoaddacontroltoaformatdesigntime?
(Chooseallthatapply.)(A、B、C、D)
下列哪一项是正确的方法,在设计时添加控件到窗体?
(选择所有适用)
A.SelectacontrolintheToolboxanddouble-clicktheform.
B.SelectacontrolintheToolboxanddrawontheformwiththemouse.
C.Double-clickthecontrolintheToolbox.
D.SelectthecontrolintheToolboxanddragittotheform.
A.选择控制工具箱中双击表格。
B.选择工具箱中的一个控制,用鼠标画的形式。
C.双击工具箱中的控制。
D.在工具箱中选择的控制,并将其拖动到表单。
4.WhichofthefollowingcodesamplesdemonstratesthecorrectwaytoaddaButtoncontroltoaformnamedForm1atruntime?
(B)
下面的代码示例演示一个名为Form1的窗体在运行时正确的方式来添加一个Button控件?
A.'VB
Form1.Controls.Add(Button)
//C#
Form1.Controls.Add(Button);
B.'VB
DimaButtonAsNewButton
Form1.Controls.Add(aButton)
//C#
ButtonaButton=newButton();
Form1.Controls.Add(aButton);
C.'VB
DimaButtonAsNewButton
Form1.Add(aButton)
//C#
ButtonaButton=newButton();
Form1.Add(aButton);
D.'VB
Form1.Add(NewButton)
//C#
Form1.Add(newButton);
5.WhichcodesamplecorrectlydemonstrateshowtoaddanewpaneltoaSplitContainernamedSpC1?
(D)
正确的代码示例演示了如何添加一个新的面板名为SPC1一个SplitContainer?
A.'VB
SpC1.Controls.Add(NewPanel)
//C#
SpC1.Controls.Add(newPanel());
B.'VB
SpC1.Controls.Add(NewSplitterPanel)
//C#
SpC1.Controls.Add(newSplitterPanel());
C.'VB
SpC1.Add(NewSplitterPanel)
//C#
SpC1.Add(newSplitterPanel());
D.'VB
Noneoftheabove
//C#
Noneoftheabove
Chapter2
Lesson1
1.Whichofthefollowingcanbeusedtomodifythesizeofacontrolinaformatdesigntime?
(Chooseallthatapply.)(A、D)
下列哪一项可以用来修改的大小控制在设计时的形式?
A.Grabbinganddraggingtheedgesofthecontrol
B.SettingthecontrolsizeintheViewmenu
C.Clickingthesmarttagandenteringanewsizeforthecontrol
D.EditingtheSizepropertyinthePropertieswindow
A.拼抢和拖动控制的边缘
B.在“视图”菜单中设置控制大小
C.单击智能标记,并进入一个新的大小控制
D.编辑的Size属性在属性窗口中
2.Whichofthefollowingmethodscanbeusedtomodifythelocationofcontrolsinaformatdesigntime?
(Chooseallthatapply.)(A、B、C)
A.ChangingtheLocationpropertyinthePropertieswindow
B.Grabbingthecontrolandmovingitwiththemouse
C.UsingtheLayouttoolbartoadjustcontrolspacing
D.UsingtheLocationwindowtographicallypositioncontrols
修改表单中控件的位置,在设计时可以使用下列方法中的哪?
(选择所有适用)(A,B,C)
A.更改位置“属性,在属性窗口中
B.拼抢控制,用鼠标移动
C.使用布局工具栏来调整控制间距
D.使用位置“窗口以图形化的定位控制
3.WhichsettingoftheAnchorpropertyallowscontrolstofloatfreelywhentheformisresized?
(C)
设置Anchor属性允许汇率自由浮动的控制调整窗体大小时?
A.Top
B.Top,Bottom
C.None
D.Right,Left
4.WhichsettingoftheDockpropertycausesthecontroltofillitsformorcontainercontrol?
(B)
A.Top
B.Fill
C.Top,Left,Right,Bottom
D.None,youshouldusetheAnchorproperty
Dock属性设置导致的控制,以填补其窗体或容器控件?
(B)
A.顶部
B.填充
C.顶部,左,右,底部
D.没有,你应该使用Anchor属性
Lesson2
1.WhichButtoneventscanbeusedtorespondtomouseclicks?
(Chooseallthatapply.)(A、C)
哪些可以用来响应鼠标点击按钮事件?
A.Button.Click
B.Button.LinkClicked
C.Button.MouseDown
D.Button.MouseOver
2.WhichpropertydoesnotcontrolhowaButtonlooksorbehaveswhentheFlatStylepropertyissettoFlat?
(D)哪个属性不控制按钮的外观或行为时FlatStyle属性设置为扁平如何?
A.FlatAppearance.MouseOverBackColor
B.FlatAppearance.MouseDownBackColor
C.FlatAppearance.BorderSize
D.FlatAppearance.Text
3.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.ActiveLinkColor
B.LinkLabel_LinkClicked
C.VisitedLinkColor
D.LinkBehavior
Lesson3
1.WhichofthefollowingpropertiesoftheTextBoxcontrolshouldbesettothevalueindicatedtoensurethattheTextBoxcanaccommodateastring10,000characterslong?
(D)以下属性的TextBox控件,以确保在TextBox可容纳10,000个字符长的字符串值应设置为?
A.MultiLine=True
B.WordWrap=True
C.ScrollBars=True
D.MaxLength=10000
2.WhichofthefollowingMaskpropertysettingswillconfigureaMaskedTextBoxfortheentryofasocialsecuritynumber,whichisdisplayedasthreedigits,followedbyahyphen,thentwodigits,followedbyanotherhyphen,andthenfinallyfourdigits?
(C)
的以下的面膜属性设置将配置一个MaskedTextBox中的社会保障号码,显示为三个数字,后跟一个连字符的条目,然后两个数字,另一个连字符,然后最后四位数字?
A.999-99-9999
B.999/00/0000
C.000-00-0000
D.000/00/0000
3.YouhaveaMaskedTextBoxwiththeMaskpropertysetto000-0000toindicateaseven-digitphonenumber.Youwantuserstobeabletocutandpastetheentirestring,includingthe‘-’character,butwhentheprogramaccessestheMaskedText-Box,youwanttoexcludethe‘-’character.WhichofthefollowingwillconfiguretheMaskedTextBoxtoprovidethisfunctionality?
(B)
你有一个MaskedTextBox中Mask属性设置为000-0000,表示7位数的电话号码。
你希望用户能够剪切和粘贴整个字符串,包括the''字符,但当程序访问的MaskedText盒时,你要排除the''字符。
下列哪项配置MaskedTextBox中提供此功能?
A.SettheCutCopyMaskFormatpropertytoExcludePromptAndLiteralsandTextMask-FormattoIncludeLiterals.
B.SettheCutCopyMaskFormatpropertytoIncludeLiteralsandTextMaskFormat
toExcludePromptAndLiterals.
C.SettheCutCopyMaskFormatpropertytoExclu