This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A developer wants to create a method that compares two values. Which of the following options is the best data type for the method to return?
A double value.
double
Nothing, the method should be void.
A bool value.
bool
A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature?
string GetValueAtIndex(string[] array, int index)
bool GetValueAtIndex(string[] array, int index)
int GetValueAtIndex(int index)
You must answer all questions before checking your work.
Was this page helpful?