Question: You have written a Scala script. How would you access command-line arguments in the script?
- use array named args
- use tuple named args
- use numbered variables with a _ prefix for example _ 1, _ 2, _ 3
- 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