GIAC
GSSP-NET · Question #90
Henry works as a Software Developer for SoftTech Inc. He creates a Windows form named MyForm1. The form contains detailed information about a student. The form uses a ListBox control named ListBox1…
The correct answer is A. A method with a string return type. See the full explanation below for the reasoning.
Question
Henry works as a Software Developer for SoftTech Inc. He creates a Windows form named MyForm1. The form contains detailed information about a student. The form uses a ListBox control named ListBox1 that concatenates two strings displayed in two TextBox controls. Henry wants a method to return a value for the control. Which of the following options will he consider while creating a method for the control?
Options
- AA method with a string return type.
- BA void method that passes only one parameter.
- CA method with an integer return type.
- DA void method that passes more than one parameter.
How the community answered
(49 responses)- A82% (40)
- B10% (5)
- C6% (3)
- D2% (1)
Community Discussion
No community discussion yet for this question.