You are a database developer and you have about two years experience in creating
business intelligence (BI) solutions by using SQL Server2008.
Now you are employed in a company which is named NaproStar and work as a developer of
a SQL Server 2008 Reporting Services (SSRS) solution for the company.
You use the solution to create a report, and then write the code segment in the report that is
shown as the following:
Private Shared Function GetMFromMeters(ByVal MetersPrice As Decimal) As Decimal If
IsNothing
(MetersPrice) Then
Return Nothing
Else
Return MetersPrice * 1.78
End If
End Function
However, when you compile code segment, you will get errors.
Now you get an order from your company CIO, according to his requirement, not only you
should get the call of the GetMFromMeters function from other reports, but also you should
have the code segment compiled without any errors.
So what action should be performed to accomplish the tasks above?
A.
The function should be declared from Private Shared to Public Shared
B.
Microsoft Visual Basic .NET should be used to create a custom assembly and then have
the
function declared as Public Shared
C.
The Public keyword should be removed from the function definition
D.
The Private keyword should be removed from the function definition
E.
The Shared keyword should be removed from the function definition