Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help tesking

Posted on 2004-08-04
5
Medium Priority
?
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

650 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