Answer:
C
Step-by-step explanation:
C.argv[0]: "program.py"
argv[1]: "-r"
argv[2]: "input.dat"
argv[3]: "output.dat"
is the right answer. as 0 argument is always the script. We can find this by importing sys and using the command sys.argv. And like len(sys.argv) will give total number of arguments.