bash return codes

bash return codes

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

12th Grade Code Genetation & Optimization

12th Grade Code Genetation & Optimization

12th Grade

11 Qs

Python Lists

Python Lists

8th - 9th Grade

10 Qs

Redirection & Piping

Redirection & Piping

11th Grade

7 Qs

10 CS // Pseudocode

10 CS // Pseudocode

9th - 11th Grade

10 Qs

Data and Society

Data and Society

9th Grade - University

11 Qs

Unit 5 Data

Unit 5 Data

9th Grade - University

11 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

1.6 Open Source vs Proprietary Software

1.6 Open Source vs Proprietary Software

7th - 10th Grade

10 Qs

bash return codes

bash return codes

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

TSEE LEE

Used 6+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the return code likely be?

0

>0

Depends on the contents of the file

2.

OPEN ENDED QUESTION

45 sec • 1 pt

Media Image

What does this likely mean?

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the exit code likely to be?

0

>0

Answer explanation

Return code refers to the last command executed, which is in this case the echo, not ls.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

I think of pipes & redirects as arguments. According to this, which are treated as arguments?

pipes

redirects

both

neither

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will the exit code likely be?

0

>0

Answer explanation

Again, exit code is generated by the very last command executed. What is it this time?

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the return code?

0

>0

Answer explanation

Again, exit code is generated by the very last command executed. What is it this time?