| 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. -f option when used with mv command overwrites existing files without prompting any messages.

Correct Answer is : TRUE

2. Which command is used for displaying contents of a file?

Correct Answer is : cat

3. Apart from displaying file contents, cat command is also used for _____ files.

Correct Answer is : creating

4. Multiple arguments as filenames can be specified in cat command.

Correct Answer is : TRUE

5. Which symbol is used with cat command for creating files?

Correct Answer is : >

6. If we create a file using cat command with the same filename which already exists in the current directory then,

Correct Answer is : existing file will be overwritten

7. Which symbol is used to append an existing file?

Correct Answer is : >>

8. Which option is used with cat command for displaying non-printable characters?

Correct Answer is : -v

9. Which option is used with the cat command for displaying file with line numbers?

Correct Answer is : -n

10. Which of the following cannot be performed by cat command?

Correct Answer is : deleting files

11. What does cat file01 file01 file01 display?

Correct Answer is : contents of file01 three times successively

12. Which files will be displayed by the following command: cat *file*

Correct Answer is : all files with filename containing ‘file’

13. Which command is used to create empty files?

Correct Answer is : create

14. Which option is used with touch command which forces the command not to create file, if it does not exists.

Correct Answer is : -c

15. Which one of the following commands is incorrect?

Correct Answer is : cat -a file01

16. Copying is referred to as yanking in vi editor.

Correct Answer is : TRUE

17. Which key is used for deleting text?

Correct Answer is : d

18. Which command is used for deleting a single character?

Correct Answer is : x

19. Which command is used for deleting the character on the left of the cursor?

Correct Answer is : X

20. Which of the following command is used to delete a single line?

Correct Answer is : dd