Microsoft
98-361 · Question #353
You are developing code that defines an InitFields method. The method takes two parameters of data type double and does not return any value to the calling code. Which of the following code segments…
The correct answer is B. public void InitFields(double l, double w). See the full explanation below for the reasoning.
Question
You are developing code that defines an InitFields method. The method takes two parameters of data type double and does not return any value to the calling code. Which of the following code segments would you use to define the InitFields method?
Options
- Apublic double InitFields(double l, double w)
- Bpublic void InitFields(double l, double w)
- Cpublic void InitFields(double l)
- Dpublic double InitFields(double l, double w)
How the community answered
(18 responses)- A6% (1)
- B72% (13)
- C17% (3)
- D6% (1)
Community Discussion
No community discussion yet for this question.