Този браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Which of the following options correctly returns a string value?
string
return "";
return 'a';
return 5;
Which of the following statements is true about the return keyword?
return
It starts a new iteration of a method.
It terminates the execution of a method.
It must always be used with a value or expression.
Which of the following options is a valid return statement?
return void;
return 5 % 2;
return Console.WriteLine();
You must answer all questions before checking your work.
Тази страница полезна ли беше?
Нуждаете се от помощ по тази тема?
Искате ли да опитате да използвате Ask Learn, за да изясните или да ви насочи по тази тема?