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 $? contains the status (return code) of the last external command executed, typically through system(), backticks, or piped opens. It is not for page length, EOL characters, or library error codes. The value is 0 for successful execution and non-zero for errors, following Unix conventions.