Solved

Help tesking

Posted on 2004-08-04
5
160 Views
Last Modified: 2010-04-23
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
0
Comment
Question by:sonbinary
  • 2
5 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11717111
can you put up the questions ? I don't have a copy of this material.
0
 

Author Comment

by:sonbinary
ID: 11717276
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.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
In addition, use the following code segment in AcceptRequest:
Try
Me.Validate()
Catch ex As Exception
Throw new RequestException("Exception 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 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
In addition, use the following code segment in AcceptValidateValidATMUser:
Try
Me.Validate()
Catch ex As Exception
Throw new ValidateValidATMUserException("Exception 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.IsUnrestricted
principalPerm2.IsUnrestricted
B. principalPerm1.IsSubSetOf(principalPerm2)
C. principalPerm1.Intersect(principalPerm2).Demand()
D. principalPerm1.Union(principalPerm2).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(LoanExec, role1)
6. Dim principalPerm2 As _
7. New PrincipalPermission(AccountingExec, 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.IsUnrestricted
B. principalPerm2.IsUnrestricted
C. principalPerm1.IsSubSetOf(principalPerm2)
D. principalPerm1.Intersect(principalPerm2).Demand()
E. principalPerm1.Union(principalPerm2).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 ???
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11717687
47 looks like it should be A ...

try
    foo()
catch ex as exception
    throw ex
end try

is functionally identical to

foo()

33 I'm not really sure on this one as I don't use the functionality much but you appear to be correct.

46 I agree A has to be a a mistype ... the answe is F ... the dataview doesnt even have a filter property http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadataviewclassrowfiltertopic.asp
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now