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. |
_____COMMAND_DISPLAYS_ALL_THE_VARIABLES_AVAILABLE_IN_THE_CURRENT_SHELL.?$ |
| A. | env |
| B. | set |
| C. | var |
| D. | sh |
| Answer» C. var | |
| 2. |
Environment variables control the behavior of the system.$ |
| A. | True |
| B. | False |
| Answer» B. False | |
| 3. |
Environment_variable_names_can_be_defined_only_in_uppercase.$ |
| A. | True |
| B. | False |
| Answer» C. | |
| 4. |
Which one of the following is not an environment variable? |
| A. | HOME |
| B. | PATH |
| C. | USER |
| D. | env |
| Answer» E. | |
| 5. |
Which environment variable is used to display our username? |
| A. | PATH |
| B. | |
| C. | LOGNAME |
| D. | HOME |
| Answer» D. HOME | |
| 6. |
Which one of the following command will change our primary prompt from $ to C>? |
| A. | PS1=”C> “ |
| B. | PS2=”C>” |
| C. | PS1=”>C” |
| D. | PS2=”<C” |
| Answer» B. PS2=‚Äö√Ñ√∂‚àö√ë‚àöœÄC>‚Äö√Ñ√∂‚àö√ë‚àöœÄ | |
| 7. |
The_shell_has______prompts. |
| A. | 1 |
| B. | 4 |
| C. | many |
| D. | 2 |
| Answer» E. | |
| 8. |
____ command is used to display the environment variables only? |
| A. | set |
| B. | env |
| C. | sh |
| D. | var |
| Answer» C. sh | |
| 9. |
Suppose ABD_DIR is a local variable. Then it will be accessible to the child process. |
| A. | True |
| B. | False |
| Answer» C. | |
| 10. |
Shell variables are of ____ types. |
| A. | 1 |
| B. | 3 |
| C. | 2 |
| D. | 4 |
| Answer» D. 4 | |
| 11. |
Which one of the following command is used to create a child shell? |
| A. | fork |
| B. | wait |
| C. | sh |
| D. | env |
| Answer» D. env | |
| 12. |
Which one of the following is arguably the best shell to use? |
| A. | Bash |
| B. | Korn |
| C. | C |
| D. | Bourne |
| Answer» B. Korn | |
| 13. |
Every feature used in an interactive shell can also be used by a shell script. |
| A. | True |
| B. | False |
| Answer» C. | |
| 14. |
Which of the following function(s) are performed by an interactive shell? |
| A. | job control |
| B. | history |
| C. | aliases |
| D. | job control, history, aliases |
| Answer» E. | |
| 15. |
The UNIX shell is both _______ and _______ language. |
| A. | interactive, responsive |
| B. | interpreter, executing |
| C. | scripting, interpreter |
| D. | high level, low level |
| Answer» D. high level, low level | |