actualtest 70-089 V2.22 (sms 2003), Systems Management Server 2003
- Wednesday, May 14, 2008, 18:51
- Cert Tests
- 163 views
- Add a comment
Could someone share the Pass4Sure 70-089 v2.22 (Jan 2008) or last version of TestInside (if exist).
I have search and all links are gone.
QUESTION3
You use Visual Studio .NET to develop a Windows-based application. Your
application will display customer order information from a Microsoft SQL Server
database. The orders will be displayed on a Windows Form that includes a
DataGrid control named Certkiller Grid1. Certkiller Grid1 is bound to a DataView
object. Users will be able to edit order information directly in Certkiller Grid1.
You must give users the option of displaying only edited customer orders and
updated values in Certkiller Grid1.
What should you do?
A. Set the RowStateFilter property of the DataView object to
DataViewRowState.ModifiedOriginal.
B. Set the RowStateFilter property of the DataView object to
DataViewRowState.ModifiedCurrent.
C. Set the RowFilter property of the DataView object to
DataViewRowState.ModifiedOriginal.
D. Set the RowFilter property of the DataView object to
DataViewRowState.ModifiedCurrent.
Actualtests.org – The Power of Knowing
Answer: B
Explanation: We must set the RowStateFilter property of the DataView to specify
which version or versions of data we want to view. We should use the
ModifiedCurrent. DataViewRowState which provides the modified version of
original data.
Reference:
.NET Framework Class Library, DataViewRowState Enumeration [Visual Basic]
Incorrect Answers
A, C: The ModifiedOriginal DataViewRowState is used to get the original version of the
rows in the view. We are interested in the modified rows however.
D: We are not applying an usual filter with the RowFilter property. We must use a
RowStateFilter.
QUESTION 2
You develop a Windows-based application that accesses a Microsoft SQL Server
database. The application includes a form named CustomerForm, which contains a
Button control named SortButton. The database includes a table named Customers.
Data from Customers will be displayed on CustomerForm by means of a DataGrid
control named DataGrid1. The following code segment is used to fill DataGrid1:
Private Sub FillDataGrid()
Dim oConn As New SqlConnection(MyConString)
Dim oDA As New SqlDataAdapter( _
“SELECT CustomerID, CompanyName, ContactName, ” & _
“Phone FROM Customers”, oConn)
Dim oDS As New DataSet()
oDA.MissingSchemaAction = MissingSchemaAction.AddWithKey
oDA.Fill(oDS, “Customers”)
Dim oDV As New DataView(oDS.Tables(“Customers”))
oDV.Sort = “CustomerName ASC, ContactName ASC”
oDV.ApplyDefaultSort = True
DataGrod1.DataSource = oDV
End Sub
The primary key for Customers is the CustomerID column. You must ensure that
the data will be displayed in ascending order by primary key when the user selects
SortButton.
What should you do?
A. Set the Sort property of the DataView object to an empty string.
B. Set the ApplyDefaultSort property of the DataView object to False.
C. Include an ORDER BY clause in the SELECT statement when you create the
DataAdapter object.
D. Set the RowFilter property of the DataView object to CustomerID.
Actualtests.org – The Power of Knowing
Answer: A
Explanation: You can use the ApplyDefaultSort property to automatically create a
sort order, in ascending order, based on the primary key column or columns of the
table. ApplyDefaultSort only applies when the Sort property is a null reference or
an empty string, and when the table has a primary key defined.
All requirements are met:
1. The ApplyDefaultSort is set to true (see code above).
2. The Table has a primary key
3. The Sort property is set to the empty string.
The DataView will be sorted in ascending order on the Primary Key column.
Reference: .NET Framework Developer’s Guide, Sorting and Filtering Data Using a
DataView [Visual Basic]
Incorrect Answers
B: We want to use the default sort order. We should keep the value of ApplyDefaultSort
property set to True.
C: It is not necessary to include a ORDER BY clause in the SELECT statement.
D: We want to sort the DataView, not to filter it.
QUESTION 3
You develop a Windows-based application that will retrieve employee vacation data
and display it in a DataGrid control. The data is managed locally in a DataSet
object named employeeDataSet.
You need to write code that will enable users to sort data by department.
Which code segment should you use?
A. Dim dvDept As New DataView()
dvDept.Table = employeeDataSet.Tables(0)
dvDept.Sort = “ASC”
DataGrid1.DataSource = dvDept
B. Dim dvDept As New DataView()
dvDept.Table = employeeDataSet.Tables(0)
dvDept.Sort = “Department”
DataGrid1.DataSource = dvDept
C. Dim dvDept As New DataView()
dvDept.Table = employeeDataSet.Tables(0)
dvDept.ApplyDefaultSort = True
DataGrid1.DataSource = dvDept
D. Dim dvDept As New DataView()
dvDept.Table = employeeDataSet.Tables(0)
dvDept.ApplyDefaultSort = False
DataGrid1.DataSource = dvDept
Answer: B
Actualtests.org – The Power of Knowing
Explanation: The DataView.Sort Property gets or sets the sort column or columns.
The sort string contains the column name followed by “ASC” (ascending) or
“DESC” (descending). Columns are sorted ascending by default. Multiple columns
can be separated by commas.
The dvDept.Sort = “Department” assignment sorts the view on the Department column.
Reference:
.NET Framework Class Library, DataView.Sort Property [Visual Basic]
Incorrect Answers
A: We must specify the column name, not just the sort order.
C: We don’t want to use the default sort. We want to sort on the Department column.
D: Disabling the default sort will not sort on the Department column.
Thanks to all in advance.
Thanks to this great community ![]()
RegardsIf it is can help u I have TestKing, ActualTests and ExamWorks. Go to : hxxp://www.4shared.com/account/dir/5880952/eae626e/sharing.html
Free download:pass4sure Microsoft 70-089
Free download:testking Microsoft 70-089
password:www.certbible.org
High quality IT Certification Training Exam Questions, Study Guides and Practice Tests are in Downloadable PassGuide Testing Engine,Successful for IT Certification or Full Refund for you.Contact Us:Sales@PassGuide.com|
Type |
Exam Bible | New Questions & Answers |
Latest Updated |
Download link |
| All Certbible 's Exam Dumps |
597 |
1 days ago | Available |
PassGuide Training Materials & Practice Tests
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!

