Multiple choice technology programming languages

What do the variable $? contains?

  1. Page length of a particular output file

  2. The input end-of-line character

  3. The return code returned by a command called by the system function.

  4. The error code generated by a system library routine.

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

In Perl, the special variable $? stores the return code (exit status) from the last system function call, child process, or backtick command. A value of 0 typically indicates success, while non-zero values signal errors or specific exit statuses.