nerdexam
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)
  • A
    82% (40)
  • B
    10% (5)
  • C
    6% (3)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice