Question: You have written a Scala script. How would you access command-line arguments in the script?

  1. use array named args
  2. use tuple named args
  3. use numbered variables with a _ prefix for example _ 1, _ 2, _ 3
  4. use numbered variables with a $ prefix - for example $1, $2, $3

Answer: The correct answer of the above question is Option A:use array named args