Question: 200. (C)You use Visual Studio .NET to develop a Windows-based application called ESVerifyRequirements for the School of Renaissance History. Your application will display student information from a Microsoft SQL Server database that meet a specific criteria to be enrolled into courses in the following semester. The student information will be displayed on a Windows Form in a data grid named DataGrid1. DataGrid1 is bound to a DataView object. The Windows Form includes a button control named btnDisplayEligible. When Course Administrators click this button, DataGrid1 must display only students whose CriteriaMet value is set to True. How should you implement this functionality? A. Set the Filter property of the DataView object to "CriteriaMet = True". B. Set the RowStateFilter property of the DataView object to "CriteriaMet = True". C. Set the RowStateFilter property of the DataGrid object to "CriteriaMet = True". D. Set the Sort property of the DataView object to "CriteriaMet = True". E. Set the ApplyDefaultSort property of the DataView object to True. F. Set the RowFilter property of the DataView object to "CriteriaMet = True". Answer:A Explanation: Using the RowFilter property of a data view, you can filter records in a data table to make available only records you want to work with. Question: 201. (A)You are the .Net Consultant for ESBank. ESBank wants to allow existing users of their ATM machines to apply for Internet Banking through their ATM machines. To do this, you use Visual Studio .NET to create a component named ValidateValidATMUser to verify if the user is a valid ATM customer. This component includes a method named AcceptValidateValidATMUser, which tries to process new user ValidateValidATMUsers for services. AcceptValidateValidATMUser calls a private function named Validate.
Exam Name: Developing Windows-based Applications with Microsoft Visual Basic .NET Exam Type: Microsoft Exam Code: 70-306 Doc Type: Q&A with Explanations Total Questions: 255 Page 134 of 159 You must ensure that any exceptions encountered by Validate are bubbled up to the parent form of ValidateValidATMUser. The parent form will then be responsible for handling the exceptions. You want to accomplish this goal by writing the minimum amount of code. What should you do? A. Use the following code segment in AcceptValidateValidATMUser: Me.Validate() B. Use the following code segment in AcceptValidateValidATMUser: Try Me.Validate() Catch ex As Exception Throw ex End Try C. Use the following code segment in AcceptValidateValidATMUser: Try Me.Validate() Catch ex As Exception Throw new Exception ("Exception in AcceptValidateValidATMUser", ex) End Try D. Create a customer Exception class named ValidateValidATMUserException by the following code segment: Public Class ValidateValidATMUserException Inherits System.ApplicationException Public Sub New() End Sub Public Sub New (message As String) MyBase.New(message) End Sub Public Sub New (message As String, inner As Exception) MyBase.New(message, inner) End Sub End class
You've reached the end of your free preview.
Want to read all 159 pages?
- Spring '16
- .NET Framework, Microsoft Visual Studio