c#试题

  • 格式:doc
  • 大小:86.50 KB
  • 文档页数:12

Section 11.Which namespace will you include to inherit a Form class?(C)A.System.WindowB. System.TestC.System.Windows.FormD. System.Drawing2.Which of the following class is not inherited from CommonDialog class(C)A.OpenFileDialogB. ColorDialogC.FindDialogD.FontDialog3.Which of the following property is used to fill any remaining space on the Status.Strip control with the StatusLabel control?(B)A.Test propertyB.Spring propertyC.Size PropertyD.Padding property4.Which property of a form needs to be set to implement right-to-left display?(A)A.RightToLeftB.DriectionC.DisplayD.TextAlign5.The default value of the SelectioMode property in the ListBox Control is(B)A.None B.OneC.MultiSimple D.MultiExtended6.The _____property of a control specifies a name for the control by which the accessibility aids identify the control(B)B.AccessibleNameC.AccessibleAidNameD.AccessibleIdentity7.Identify the class that controls access to objects by granting a lock for an object to a single thread(A)A.MonitorB.MulexC.ThreadPoolD.Senaphot8.Identify the method ,which is used to start an asynchronous in BackgroundWorker Component? (D)A.Start()B.StartAsync()C.CancelAsync()D.RunWorkAsync()9.Identify the property which can be used to get or set a value indicating how large the pages will appear.(C)A.AutoZoomB.DocumentC.ZoomD.AntiAlias10.To Create a custom dialog box, you need to set the values of a form property to FixedDialog, which of the following property should you user ?(A)A.FormBorderStyleB.RightToLeftLayoutC.AutoScaleModeD.WindowState11.Identify the class which limits the number of threads that can access a resource or pool of resources concurrently.(D)A.ThreadPoll classB.Monitor claaC.Mutex classD.Semaphore class12.Which property is used to trap the button that a user clicks int the dialog box?(A)A.DialogResult propertyB.Document propertyC.Filter propertyD.Tag property13.Which of the following properties in the Listbox control is NOT available at design time?(D)A.SortedB.ItemsC.SelectionModeD.SelectdItem14.Which of the following is not a valid for MessageBoxButtons enumeration.(C)A.AbortRetryIgnoreB.RetryCancelC.YesNoRetryD.OKCancel15.What is the extension for a compiled help project file?(C)A. .hlpB. .exeC. .chmD. .cs16.Which of the following is not a child control of StatusStrip control(C)A.StatusLabel controlB.ProgressBar controlC.ContexMenuItem ControlD.DropDownButton Control17.Which method is used to convert an existing encoding to Unicode?(C)A.Encoding GetEncodeingB.Encoding ToUnicodeC.EnCoding CovertD.Encoding Translate18.To create a resource-only assembly. We need to chpose ______ template when creating the .NET project. (B)A.Window ApplicationB.Class LibraryC.Windows Control LibraryD.Console Application19.To pop up a modal dialog box, we can invoke its____method.(D)A.Show()B.ShowModal()C.Show(Modal)D.ShowDialog()20.The text “Login” on the title barof the dialog box is done by set the____ property of the form to thecorresponding value.(C)A.TitleB.ValueC.Test21.The input field for passward is implemented by____()Drag a TextBox Control to the form and set its Password Char property to22.(B)A.Set the ControlBox and MinimizeBox properties of the form to FalseB.Set the MaximizeBox and MinimizeBox properties of the form to FalseC.Set the AllowMaximize and AllowMinimize properties of the form to FalseD.Set the FormBorderStyle property of the form to FixedDialog23.If we want to make a slight chance on it by replacing the RadioButton controls that surrounded by dotted line with another type of control which of the following controls can be used?(B)A.CheckBoxB.ControlBoxC.NumericUpDownD.ListView24.If we set the AcceptButton property of the form to “OK” button, it mean_____(A)A.When user press “Enter”key, it’s equivalent to that user click on the “ OK” button.B.When user click on “OK”button, the form will return a value of DialogResult.OKC.When user click on “OK”button, the form will return a value of DialogResult.YesD.It’s equivalent setting the DialogResult property of “OK” button to DialogResult.OK25.Which of the following controls does NOT appear in the form?(D)A.ButtonB.GroupBoxC.TabControlD.RadioButton26.The control within the “Section 1” GroupBox could NOT be a__(C)A.TextBoxB.ListBoxboBoxD.TreeView27.The functionality of the “Clear” button is to clear any user input in the TextBox control which of the following code should be put into the Click event handler?(C)A.TextBox1.Clear();B.TextBox1.Text.Clear();C.TextBox1.Text=””;D.TextBox1.Dispose();28.The functionality of the “Add” button is to add the string value in the TextBox control in “Section2”into the ListBox control in “Section1”, which of the following code should be put into the Click event handler?(B)A.ListBox1+=TextBox1.Text.B.ListBox1.Items.Add(TextBox1.Text).C.ListBox1.Insert(TextBox1.Text).D.ListBox1.Insert+=TestBox1.Text.29.If we want the form to be displayed in the center of the screen, we could _____ (B)A.Set the VerticalAlign and HorizontalAlign properties of the form to CenterB.Set the StartPosition property of the form to CenterScreenSection 21.The event occurs when the background operation is completedis theRunWorkerCompleted2.The method is used to show the dialog box is ShowDialog() method.3.The default value of MergeAction property of ToolStripMenuItemcontrol is Append.4.You can add image to the ToolStrip button control by setting theImageIndex property the ToolStrip button control.5.A Container is a control that consists of other controls.6.The extension for a compiled help project file is .chm7.The property that the CultureInfo class will return an instance of theCultureInfo class representsthe culture for culture-specific resource is CurrentUICulture property.8.A file with the extension of msi is a Windows.Installer file.9.In Window.Form ,the StartPosition property is used to set theposition where the Windows will be shown. If we want the window to be shown at the center is its parent window, this property should be set to value CenterParent.10.I n TextBox control, the PasswordChar property is used to set a singlecharacter that acts as a placeholder for the characters entered by a user, the MultiLine property enable user to display multiple lines of text in a TextBox control.11.T he most important features of Windows environment that enableapplication to interact effectively with user are Dynamic Linking and event driving.12.T he BlinkRate property in ErrorProvider control indicates the rate inmilliseconds at which the error icon blinks.13.I n BackgroundWorker, the CancellationPending property gets a valueindicating whether the application has request cancellation of abackground operation.14.T he Visual provides three navigational features, which aredocking, auto-hide and tabbed navigation.15.T o set a Windows Form to a MDI parent window, we need to set theIsMdiContainer property to True.16.T he reporting model that does not require the developer to writecode for creating a connection and retrieving data from data source is the pull model.17.T he property which is used to specify the source from where theCrystal Report would be accessed is ReportSource.18.T he two main categories of .NET components are In-progresscomponent and out-of-process component.19.T he elements of an assembly are manifest, MISL code and resource.20.T o merge the menu items in the MDI child window to the MDI parentwindow’s MenuStrip, we need to:a.set the AllowMerge property in both the MenuStrip control inparent window and MenuStrip control in child window to true.b.Set the MergeAction property of the MenuStrip control in MDIchild window to MatchOnly.CUI 字符用户界面(Character User Interface)GUI 图形用户界面(Graphical User Interface)System Model Dialog Box 系统模态对话框CLR 公共语言运行库(Common Language Runtime)CLS 公共语言规范(Common Language Specification)COM 组件对象模型(Component Object Model)MDI 多文档界面(multiple-document interface)ANSI 美国国家标准化组织Unicode 统一字符编码MSIL Microsoft中间语言DLL动态连接库(dynamic link library)GAC 全局程序级缓存(Global Assembly Cache)IIS 互联网信息服务XML 可扩展标记语言CAS 代码访问安全(Code Access Security)附:VOS (Virtural Object System)虚拟对象系统CTS(Common Type System)通用类型系统VES(Visual Execution System) 虚拟执行系统JIT(Just In Time)即时编译器.API(Application Program Interface) 应用程序接口SOAP(Simple Object Access Protocol) 简单对象访问协议SGML(structured Generalized Markup Language)结构化通用标记语言CSS(Cascading Style Sheet)级联样式表XSL(Extensible StyleSheet Language)扩展样式表语言DOM(Document Object Model)文档对象模型SVG(Scalable Vector Graphics)矢量图像格式DTD(Document Type Definition)创建文档类型VML(Vector Markup Language)矢量标记语言SMIL(Synchronized Multimedia Intergration)同步多媒体集成语言..NET Framework Class Libraries 类库WSDL(Web Services Description Language Web)服务描述语言SSL(Secure Sockets Layer)安全套接字层Section 31.2. Use five Label controls and one Timer control to simulate a flow light.A flow light is a group of lights that is on off one by one.Hint:(1)To simulate a light’s on off status, you can achieve it by changing theBackColor of the Label(2)You can make any reasonable assumption, state your assumption infront of the solution.3.Implement the functionality of changing the displaying language forthe user interface.4.Create a simple program to implement the functionality of printingthe user ‘s information. The UI of the program is like the following.The parameter used for printing is listed in the following table.。