| 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. Which system call is used to run a new program?

Correct Answer is : exec

2. Which system call is used by the parent process to wait for the child process to complete?

Correct Answer is : exec

3. Redirection is a process of switching of the standard stream of data.

Correct Answer is : TRUE

4. How many files are used for representing different standard streams?

Correct Answer is : 3

5. Which stream is connected to the display?

Correct Answer is : standard output

6. Which stream is used for representing error messages?

Correct Answer is : standard error

7. The command wc < sample.txt will count data from the file sample.txt.

Correct Answer is : TRUE

8. Which symbol is used for taking input from standard input?

Correct Answer is :

9. Which of the following symbol(s) can be used to redirect the output to a file or another program?

Correct Answer is : |, > and >>

10. The >> symbol is used to overwrite the existing file if it exists.

Correct Answer is : FALSE

11. Which file descriptor is used to represent standard error stream?

Correct Answer is : 2

12. We can redirect the error message to file named newfile using __________ command.

Correct Answer is : cat foo 2>errorfile

13. The category of commands which uses both standard input and standard output are called ____

Correct Answer is : filters

14. The contents of file001 are: 232 25*50 What will be the contents of result.txt? bc < file001 > result.txt

Correct Answer is : 429467296, 1250

15. Which of the following files are known as special files in UNIX?

Correct Answer is : /dev/null and /dev/tty

16. The size of /dev/null is always zero.

Correct Answer is : TRUE

17. Which symbol is used to redirect error messages to /dev/null?

Correct Answer is : >

18. Which file is used for indicating terminals?

Correct Answer is : /dev/tty

19. Which symbol is used to connect different streams?

Correct Answer is : |

20. We can use the > symbol along with pipe in a command.

Correct Answer is : TRUE