《人机界面设计》选择题样题.docx
《《人机界面设计》选择题样题.docx》由会员分享,可在线阅读,更多相关《《人机界面设计》选择题样题.docx(18页珍藏版)》请在冰豆网上搜索。
![《人机界面设计》选择题样题.docx](https://file1.bdocx.com/fileroot1/2022-11/18/12afa6cf-25ee-4602-9622-14948dbbe7b0/12afa6cf-25ee-4602-9622-14948dbbe7b01.gif)
《人机界面设计》选择题样题
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