Multiple choice technology programming languages

The following code will generate a comiler error. Which of the following statement inserted as the last line of the function ,would solve the problem?

  1. continue;

  2. break;

  3. return "Infant";

  4. return 0;

  5. return;

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The question asks about fixing a compiler error by inserting a statement as the last line. While the full code context isn't visible, the correct answer is 'return "Infant";' which suggests the function expects a string return type. 'continue' and 'break' are used within loops, not as function exits. 'return 0' would be incorrect if the return type is string. 'return;' without a value is for void functions. The string return matches the likely function signature.