nerdexam
LPI

117-102 · Question #34

We have bash script ~/myscript shown below: shift echo $2 We call this script: ~/myscript alpha beta gamma delta What will we see?

The correct answer is C. gamma. See the full explanation below for the reasoning.

Question

We have bash script ~/myscript shown below: shift echo $2 We call this script: ~/myscript alpha beta gamma delta What will we see?

Options

  • Aalpha
  • Bbeta
  • Cgamma
  • Ddelta

How the community answered

(61 responses)
  • A
    11% (7)
  • B
    3% (2)
  • C
    79% (48)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice