sonbinary
asked on
Help tesking
I use tesking 70-306 v 9.0 ....I have some problems
The question 55 (answer A) on Section A have similar the question 47 (answer B) on section B....they have different Answer.....
The question 18 on Section A have similar the question 33 on section B....they have different Answer.....
So who can help me this problem ..???
thanks
The question 55 (answer A) on Section A have similar the question 47 (answer B) on section B....they have different Answer.....
The question 18 on Section A have similar the question 33 on section B....they have different Answer.....
So who can help me this problem ..???
thanks
can you put up the questions ? I don't have a copy of this material.
ASKER
SECTION A :
QUESTION NO: 55
You use Visual Studio .NET to create a component named Request. This component includes a method
named AcceptRequest, which tries to process new user requests for services. AcceptRequest calls a
private function named Validate.
You must ensure that any exceptions encountered by Validate are bubbled up to the parent form of
Request. 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 AcceptRequest:Me.Validate( )
B. Use the following code segment in AcceptRequest:Try Me.Validate()Catch ex As Exception
Throw ex
End Try
C. Use the following code segment in AcceptRequest:Try Me.Validate()
Catch ex As Exception
Throw new Exception ("Exception in AcceptRequest", ex)
End Try
D. Create a customer Exception class named RequestException by the following code segment:
Public Class RequestException
Inherits System.ApplicationExceptio n
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
In addition, use the following code segment in AcceptRequest:
Try
Me.Validate()
Catch ex As Exception
Throw new RequestException("Exceptio n in _
AcceptRequest", ex)
End Try
Answer: A
Explanation: The unhandled exception automatically will be thrown to the client application. This solution
meets the requirement that the least amount of code should be used.
-----------
SECTION B :
QUESTION NO: 47
You are the .Net Consultant for TKBank. TKBank 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.
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 ValidateValidATMUserExcept ion by the following code
segment:
Public Class ValidateValidATMUserExcept ion
Inherits System.ApplicationExceptio n
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
In addition, use the following code segment in AcceptValidateValidATMUser :
Try
Me.Validate()
Catch ex As Exception
Throw new ValidateValidATMUserExcept ion("Excep tion in _
AcceptValidateValidATMUser ", ex)
End Try
Answer: B
The unhandled exception automatically will be thrown to the client application. This solution meets the
requirement that the least amount of code should be used. We must throw the exception as it is.
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
SECTION A :
QUESTION NO: 18
You use Visual Studio .NET to develop a Windows-based application. You implement security by using
the security classes of the .NET Framework.
Your application includes the following procedure. (Line numbers are included for reference only)
01 Public Sub ApproveVacation(ByVal user 1 As String, -
02 ByVal role1 As string, ByVal, user 2 As String, _
03 ByVal role2 As String)
04 Dim PrincipalPerm1 As _
05 New PrincipalPermission(user1, role1)
06 Dim principalPerm2 As _
07 New PrincipalPermission(user2, role2)
08'Insert new code.
09'Additional procedure code goes here
10 End Sub
You must ensure that both User1 and User2 are members of the same security roles. Which code segment
should you insert on line 8?
A. principalPerm1.IsUnrestric ted
principalPerm2.IsUnrestric ted
B. principalPerm1.IsSubSetOf( principalP erm2)
C. principalPerm1.Intersect(p rincipalPe rm2).Deman d()
D. principalPerm1.Union(princ ipalPerm2) .Demand()
Answer: C
Explanation: Union means that either User1 or User2 could have the desired role whereas Intersect means that
both User1 and User2 must have the desired role.
-------
Section B :
QUESTION NO: 33
You use Visual Studio .NET to develop a Windows-based application for Bank Managers to access
accounting and loan information. Normally, only accounting executives have rights to view and modify
accounting information. Loans executive officers have similar rights to loans data. You implement
security by using the security classes of the .NET Framework.
Your application includes the following procedure. (Line numbers are included for reference only)
1. Public Sub ApproveVacation(ByVal user 1 As String, -
2. ByVal role1 As string, ByVal, user 2 As String, _
3. ByVal role2 As String)
4. Dim PrincipalPerm1 As _
5. New PrincipalPermission(LoanEx ec, role1)
6. Dim principalPerm2 As _
7. New PrincipalPermission(Accoun tingExec, role2)
8. 'Insert new code.
9. 'Additional procedure code goes here
10. End Sub
You must ensure that both the user has both LoanExec and AccountingExec security roles. Which code
segment should you insert on line 8?
A. principalPerm1.IsUnrestric ted
B. principalPerm2.IsUnrestric ted
C. principalPerm1.IsSubSetOf( principalP erm2)
D. principalPerm1.Intersect(p rincipalPe rm2).Deman d()
E. principalPerm1.Union(princ ipalPerm2) .Demand()
Answer: C
Intersect will return us security roles of both.
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
I have a new problem with this question
QUESTION NO: 46
You use Visual Studio .NET to develop a Windows-based application called TKVerifyRequirements 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
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.
IT MUST BE ANSWER F....WHY DOES IT ANSWER A ???
QUESTION NO: 55
You use Visual Studio .NET to create a component named Request. This component includes a method
named AcceptRequest, which tries to process new user requests for services. AcceptRequest calls a
private function named Validate.
You must ensure that any exceptions encountered by Validate are bubbled up to the parent form of
Request. 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 AcceptRequest:Me.Validate(
B. Use the following code segment in AcceptRequest:Try Me.Validate()Catch ex As Exception
Throw ex
End Try
C. Use the following code segment in AcceptRequest:Try Me.Validate()
Catch ex As Exception
Throw new Exception ("Exception in AcceptRequest", ex)
End Try
D. Create a customer Exception class named RequestException by the following code segment:
Public Class RequestException
Inherits System.ApplicationExceptio
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
In addition, use the following code segment in AcceptRequest:
Try
Me.Validate()
Catch ex As Exception
Throw new RequestException("Exceptio
AcceptRequest", ex)
End Try
Answer: A
Explanation: The unhandled exception automatically will be thrown to the client application. This solution
meets the requirement that the least amount of code should be used.
-----------
SECTION B :
QUESTION NO: 47
You are the .Net Consultant for TKBank. TKBank 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
ValidateValidATMUsers for services. AcceptValidateValidATMUser
Validate.
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
End Try
D. Create a customer Exception class named ValidateValidATMUserExcept
segment:
Public Class ValidateValidATMUserExcept
Inherits System.ApplicationExceptio
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
In addition, use the following code segment in AcceptValidateValidATMUser
Try
Me.Validate()
Catch ex As Exception
Throw new ValidateValidATMUserExcept
AcceptValidateValidATMUser
End Try
Answer: B
The unhandled exception automatically will be thrown to the client application. This solution meets the
requirement that the least amount of code should be used. We must throw the exception as it is.
--------------------------
SECTION A :
QUESTION NO: 18
You use Visual Studio .NET to develop a Windows-based application. You implement security by using
the security classes of the .NET Framework.
Your application includes the following procedure. (Line numbers are included for reference only)
01 Public Sub ApproveVacation(ByVal user 1 As String, -
02 ByVal role1 As string, ByVal, user 2 As String, _
03 ByVal role2 As String)
04 Dim PrincipalPerm1 As _
05 New PrincipalPermission(user1,
06 Dim principalPerm2 As _
07 New PrincipalPermission(user2,
08'Insert new code.
09'Additional procedure code goes here
10 End Sub
You must ensure that both User1 and User2 are members of the same security roles. Which code segment
should you insert on line 8?
A. principalPerm1.IsUnrestric
principalPerm2.IsUnrestric
B. principalPerm1.IsSubSetOf(
C. principalPerm1.Intersect(p
D. principalPerm1.Union(princ
Answer: C
Explanation: Union means that either User1 or User2 could have the desired role whereas Intersect means that
both User1 and User2 must have the desired role.
-------
Section B :
QUESTION NO: 33
You use Visual Studio .NET to develop a Windows-based application for Bank Managers to access
accounting and loan information. Normally, only accounting executives have rights to view and modify
accounting information. Loans executive officers have similar rights to loans data. You implement
security by using the security classes of the .NET Framework.
Your application includes the following procedure. (Line numbers are included for reference only)
1. Public Sub ApproveVacation(ByVal user 1 As String, -
2. ByVal role1 As string, ByVal, user 2 As String, _
3. ByVal role2 As String)
4. Dim PrincipalPerm1 As _
5. New PrincipalPermission(LoanEx
6. Dim principalPerm2 As _
7. New PrincipalPermission(Accoun
8. 'Insert new code.
9. 'Additional procedure code goes here
10. End Sub
You must ensure that both the user has both LoanExec and AccountingExec security roles. Which code
segment should you insert on line 8?
A. principalPerm1.IsUnrestric
B. principalPerm2.IsUnrestric
C. principalPerm1.IsSubSetOf(
D. principalPerm1.Intersect(p
E. principalPerm1.Union(princ
Answer: C
Intersect will return us security roles of both.
--------------------------
I have a new problem with this question
QUESTION NO: 46
You use Visual Studio .NET to develop a Windows-based application called TKVerifyRequirements 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
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.
IT MUST BE ANSWER F....WHY DOES IT ANSWER A ???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.