nerdexam
LPI

117-010 · Question #3

The script, script.sh, consists of the following lines: #!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered?

The correct answer is B. test2 test1. See the full explanation below for the reasoning.

Question

The script, script.sh, consists of the following lines:

#!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered?

Options

  • Atest1 test2
  • Btest2 test1
  • Cscript.sh test2
  • Dscript.sh test1
  • Etest1 script.sh

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    73% (24)
  • C
    9% (3)
  • D
    12% (4)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice