MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WE_CAN_REDIRECT_THE_ERROR_MESSAGE_TO_FILE_NAMED_NEWFILE_USING____________COMMAND.?$ |
| A. | cat foo errorfile |
| B. | cat foo >errorfile |
| C. | cat errorfile>foo |
| D. | cat foo 2>errorfile |
| Answer» E. | |
| 2. |
WHICH_FILE_DESCRIPTOR_IS_USED_TO_REPRESENT_STANDARD_ERROR_STREAM??$ |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» D. 3 | |
| 3. |
The >> symbol is used to overwrite the existing file if it exists? |
| A. | True |
| B. | False |
| Answer» C. | |
| 4. |
Which of the following symbol(s) can be used to redirect the output to a file or another program? |
| A. | | |
| B. | > |
| C. | >> |
| D. | |, > and >> |
| Answer» E. | |
| 5. |
Which symbol is used for taking input from standard input? |
| A. | & |
| B. | % |
| C. | – |
| D. | $ |
| Answer» D. $ | |
| 6. |
The command wc < sample.txt will count data from the file sample.txt. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 7. |
Which stream is used for representing error messages? |
| A. | standard input |
| B. | standard output |
| C. | standard error |
| D. | error |
| Answer» D. error | |
| 8. |
Which stream is connected to the display? |
| A. | standard input |
| B. | standard output |
| C. | standard error |
| D. | error |
| Answer» C. standard error | |
| 9. |
How many files are used for representing different standard streams? |
| A. | 1 |
| B. | 2 |
| C. | 4 |
| D. | 3 |
| Answer» E. | |
| 10. |
Redirection is a process of switching of the standard stream of data. |
| A. | True |
| B. | False |
| Answer» B. False | |