Multiple choice technology

Command to verify the number of arguments passed

  1. $$
  2. $?
  3. $!
  4. $#
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

$# contains the number of positional parameters passed to the script or function. $$ is the PID, $? is exit status, and $! is the last background job's PID.