Þessi vafri er ekki lengur studdur.
Uppfærðu í Microsoft Edge til að nýta þér nýjustu eiginleika, öryggisuppfærslur og tæknilega aðstoð.
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.
Var þessi síða gagnleg?
Þarftu hjálp með þetta efni?
Viltu prófa að nota Ask Learn til að skýra eða leiðbeina þér í gegnum þetta efni?