MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which files will be displayed by the following command: |
| A. | all files in the directory |
| B. | all files with filename containing ‘file’ |
| C. | no files will be displayed |
| D. | a single fileView Answer |
| Answer» C. no files will be displayed | |
| 2. |
What does cat file01 file01 file01 display? |
| A. | error |
| B. | blank terminal |
| C. | contents of file01 three times successively |
| D. | contents of file01 single time |
| Answer» D. contents of file01 single time | |
| 3. |
Which of the following cannot be performed by cat command? |
| A. | displaying files |
| B. | creating files |
| C. | appending files |
| D. | deleting files |
| Answer» E. | |
| 4. |
WHICH_OF_THE_FOLLOWING_CANNOT_BE_PERFORMED_BY_CAT_COMMAND??$ |
| A. | displaying files |
| B. | creating files |
| C. | appending files |
| D. | deleting files |
| Answer» E. | |
| 5. |
What_does_cat_file01_file01_file01_display?$ |
| A. | error |
| B. | blank terminal |
| C. | contents of file01 three times successively |
| D. | contents of file01 single time |
| Answer» D. contents of file01 single time | |
| 6. |
Which option is used with touch command which forces the command not to create file, if it does not exists. |
| A. | -h |
| B. | -c |
| C. | -t |
| D. | -f |
| Answer» E. | |
| 7. |
Which command is used to create empty files? |
| A. | cp |
| B. | cat |
| C. | touch |
| D. | create |
| Answer» C. touch | |
| 8. |
Which option is used with the cat command for displaying file with line numbers? |
| A. | -n |
| B. | -v |
| C. | -a |
| D. | -x |
| Answer» B. -v | |
| 9. |
Which option is used with cat command for displaying non-printable characters? |
| A. | -v |
| B. | -n |
| C. | -x |
| D. | -a |
| Answer» B. -n | |
| 10. |
Which symbol is used to append an existing file? |
| A. | > |
| B. | < |
| C. | >> |
| D. | $ |
| Answer» D. $ | |
| 11. |
If we create a file using cat command with the same filename which already exists in the current directory then, |
| A. | existing file is deleted |
| B. | new file will be created separately |
| C. | existing file will be overwritten |
| D. | an error will be produced |
| Answer» D. an error will be produced | |
| 12. |
Which symbol is used with cat command for creating files? |
| A. | > |
| B. | < |
| C. | * |
| D. | / |
| Answer» B. < | |
| 13. |
Multiple arguments as filenames can be specified in cat command. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 14. |
Apart from displaying file contents, cat command is also used for _____ files. |
| A. | displaying |
| B. | deleting |
| C. | copying |
| D. | creating |
| Answer» E. | |
| 15. |
Which command is used for displaying contents of a file? |
| A. | cp |
| B. | rm |
| C. | cat |
| D. | mkdir |
| Answer» D. mkdir | |