GIAC
GSSP-NET · Question #302
GSSP-NET Question #302: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #302. The question stem and answer options stay visible for context.
Question
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.
Options
- AAssessmentText.Text = (string)comm.Parameters["@AssessmentResult"].Value;
- BAssessmentText.Text = comm.Parameters["@AssessmentResult"].SourceColumn;
- CAssessmentText.Text = comm.Parameters["@AssessmentResult"].ToString();
- DAssessmentText.Text = comm.Parameters["@AssessmentResult"].Value.ToString();
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.