Question: Which variable would you check to verify that the last command executed successfully?

  1. `$$`
  2. `$?`
  3. `$!`
  4. `$@`

Answer: The correct answer of the above question is Option B:`$?`