Unix interview questions part 43

Unix interview questions part 43

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which of the following operators is used with test for comparison of numeric values?

Correct Answer is : –eq and -ne

2. Which of the following operators is used with test for comparison of numeric values?

Correct Answer is : –eq and -ne

3. We can use comparison operators without a ‘-‘.

Correct Answer is : FALSE

4. We can use comparison operators without a ‘-‘.

Correct Answer is : FALSE

5. ___ implies greater than and ____ implies less than.

Correct Answer is : gt, lt

6. ___ implies greater than and ____ implies less than.

Correct Answer is : gt, lt

7. Which of the following operator is used as a shorthand for test?

Correct Answer is : [ ]

8. Which of the following operator is used as a shorthand for test?

Correct Answer is : [ ]

9. It is essential to use whitespaces when we use [].

Correct Answer is : TRUE

10. It is essential to use whitespaces when we use [].

Correct Answer is : TRUE

11. test and [ ] can be used for string comparison.

Correct Answer is : TRUE

12. test and [ ] can be used for string comparison.

Correct Answer is : TRUE

13. Which one of the following option is used for AND operation in test command?

Correct Answer is : -a

14. Which one of the following option is used for AND operation in test command?

Correct Answer is : -a

15. Which one of the following option is used for OR operation in test command?

Correct Answer is : -o

16. Which one of the following option is used for OR operation in test command?

Correct Answer is : -o

17. Which one of the following option is used for checking that the string is not null?

Correct Answer is : -n

18. Which one of the following option is used for checking that the string is not null?

Correct Answer is : -n

19. Which one of the following option is used for checking that the string is NULL string?

Correct Answer is : -z

20. We can use a test to test various file attributes.

Correct Answer is : TRUE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon