Multiple choice technology programming languages

"Without using the shift command, what range of command-line argument variables can be referenced correctly? "

  1. $0 to $9
  2. $0 to $10
  3. $1 to $9
  4. $1 to $10
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Without using the shift command, shell scripts can directly reference only $0 through $9. The \$0 variable holds the script name, while \$1-\$9 hold the first nine positional parameters. Beyond \$9, you must use shift or ${n} syntax to access higher-numbered arguments.