Shell Scripting Quiz (Set 5)

Shell Scripting (Set 5)

1 / 10

In a shell script, how do you perform integer division?

2 / 10

What is the purpose of the 'dirname' command in a shell script?

3 / 10

In a shell script, how do you declare an array?

4 / 10

What is the purpose of the 'tee' command in a shell script?

5 / 10

In a shell script, how do you check if a variable is empty?

6 / 10

What is the purpose of the 'basename' command in a shell script?

7 / 10

Which variable is used to retrieve the exit status of the last executed background command?

8 / 10

What is the purpose of the 'wc' command in a shell script?

9 / 10

In a shell script, how do you find the length of a string?

10 / 10

What is the purpose of the 'sleep' command in a shell script?

Your score is

The average score is 0%

0%