Bash Shell Scripting Parameters Quiz
15 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What does $$ represent in the script?

  • Number of parameters
  • Last return code
  • Process id of the script (correct)
  • String of all parameters

What does $# represent in the script?

  • Count of arguments (correct)
  • Process id of the script
  • String of all parameters
  • Last return code

What does $* represent in the script?

  • All the arguments (correct)
  • Process id of the script
  • Number of parameters
  • Last return code

What does $3 represent in the script?

<p>The third argument (D)</p> Signup and view all the answers

What does $1 represent in the script?

<p>The first argument (B)</p> Signup and view all the answers

What does $# represent in the script?

<p>The number of parameters passed to the script (A)</p> Signup and view all the answers

What does $$ represent in the script?

<p>The process id of the script (C)</p> Signup and view all the answers

What does $3 represent in the script?

<p>The third argument passed to the script (B)</p> Signup and view all the answers

What does $. represent in the script?

<p>The last return code of the script (D)</p> Signup and view all the answers

What does $* represent in the script?

<p>All the arguments passed to the script (A)</p> Signup and view all the answers

What does $$ represent in the script?

<p>The process id of the script (B)</p> Signup and view all the answers

What does $# represent in the script?

<p>The count of arguments (B)</p> Signup and view all the answers

What does $3 represent in the script?

<p>The third argument passed to the script (A)</p> Signup and view all the answers

What does $* represent in the script?

<p>A string of all the parameters (B)</p> Signup and view all the answers

What does $1 represent in the script?

<p>The first argument passed to the script (C)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser