Shell Scripting Quiz (Set 20)

Shell Scripting (Set 10)

1 / 10

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

2 / 10

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

3 / 10

In a shell script, how do you define a constant variable?

4 / 10

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

5 / 10

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

6 / 10

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

7 / 10

Which operator is used for command substitution in a shell script?

8 / 10

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

9 / 10

In a shell script, how do you get the length of an array?

10 / 10

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

Your score is

The average score is 0%

0%