| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

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

Total Questions: 20

1. The sort order can be reversed using ___ option.

Correct Answer is : -r

2. We can perform sorting on secondary key also using sort command.

Correct Answer is : TRUE

3. We cannot perform sorting on columns using sort command.

Correct Answer is : FALSE

4. Which option is used when we’ve to sort files containing only numbers?

Correct Answer is : -n

5. _____ option is used with sort command for removing repeated lines.

Correct Answer is : -u

6. Which option is used by the sort command to redirect the output to a specified file?

Correct Answer is : -o

7. The name of the input and output files cannot be same while using sort command.

Correct Answer is : FALSE

8. To check whether the file has actually been stored in the default order, we can use ____ option.

Correct Answer is : -c

9. Which option is used with sort command to sort multiple files collectively?

Correct Answer is : -m

10. A system call is a routine built into the kernel and performs a basic function.

Correct Answer is : TRUE

11. When we execute a C program, CPU runs in ____ mode.

Correct Answer is : user

12. In ____ mode, the kernel runs on behalf of the user.

Correct Answer is : kernel

13. All UNIX and LINUX systems have one thing in common which is ____

Correct Answer is : set of system calls

14. The chmod command invokes the ____ system call.

Correct Answer is : chmod

15. For reading input, which of the following system call is used?

Correct Answer is : read

16. Which of the following system call is used for opening or creating a file?

Correct Answer is : open

17. There are ___ modes of opening a file.

Correct Answer is : 3

18. Which of the following mode is used for opening a file in both reading and writing?

Correct Answer is : O_RDWR

19. open system call returns the file descriptor as ___

Correct Answer is : char

20. Which of the following system call is used for closing a file?

Correct Answer is : close