Microsoft
70-448 · Question #100
You are developing a SQL Server 2008 Reporting Services (SSRS) solution for Company.com. The codes in the report listed below: Private Shared Function GetResultFromPar(ByVal TestValue As Double ) As…
The correct answer is D. Before declaring the function as Public Shared, you should develop a custom assembly through utilizing. See the full explanation below for the reasoning.
Question
You are developing a SQL Server 2008 Reporting Services (SSRS) solution for Company.com. The codes in the report listed below:
Private Shared Function GetResultFromPar(ByVal TestValue As Double ) As Double If IsNothing(TestValue) Then Return NothingElseReturn InchValue * 3.15 End If End Function The above function will display error when you compile the codes. You should make sure that conditions listed below are required:
- The code segment compiles normally.
- The GetResultFromPar function could be implemented from other
reports. Which is the correct answer?
Options
- AYou should delete the ByVal keyword from the function definition.
- BYou should delete the Shared keyword from the function definition.
- CYou should create the function as protected Shared instead of Public Shared.
- DBefore declaring the function as Public Shared, you should develop a custom assembly through utilizing
How the community answered
(26 responses)- A4% (1)
- B12% (3)
- C8% (2)
- D77% (20)
Community Discussion
No community discussion yet for this question.