GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 133 Topic 14 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 133 Topic 14 Discussion

GSSP-NET-CSHARP Exam Topic 14 Question 133 Discussion:
Question #: 133
Topic #: 14

Hannah works as a Programmer in a college of Information Technology. The company uses Visual Studio .NET as its application development platform. The Dean of the college wants to obtain the performance report of each student. Hannah develops an application named StudentPerformanceReport by using Visual C# .NET. This application uses a SQL Server database named Database1 and a stored procedure named PROC1. PROC1 executes a query that returns the internal assessment result of each student.

Hannah uses a TextBox control named AssessmentText in the application form named MyForm. She wants to display the total test result of each student in the AssessmentText text box control.

StudentPerformanceReport uses a SqlCommand object to run PROC1. Hannah wants to write code to call PROC1. PROC1 contains an output parameter and displays its value as "@AssessmentResult" in text format. Which of the following code segments can Hannah use to accomplish this task?

Each correct answer represents a complete solution. Choose two.


A.

AssessmentText.Text = comm.Parameters["@AssessmentResult"].SourceColumn;


B.

AssessmentText.Text = (string)comm.Parameters["@AssessmentResult"].Value;


C.

AssessmentText.Text = comm.Parameters["@AssessmentResult"].Value.ToString();


D.

AssessmentText.Text = comm.Parameters["@AssessmentResult"].ToString();


Get Premium GSSP-NET-CSHARP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.