Shell Scripting Quiz (Set 8)

Shell Scripting (Set 8)

1 / 10

In a shell script, how do you perform floating-point division?

2 / 10

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

3 / 10

In a shell script, how do you declare a function?

4 / 10

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

5 / 10

In a shell script, how do you prompt the user for input and assign it to a variable?

6 / 10

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

7 / 10

Which operator is used for string comparison in a shell script?

8 / 10

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

9 / 10

In a shell script, how do you capture the output of a command into a variable?

10 / 10

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

Your score is

The average score is 0%

0%