

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 one of the following is not an environment variable? |
A. | HOME |
B. | PATH |
C. | USER |
D. | env |
Answer» E. | |
2. |
Which environment variable is used to display our username? |
A. | PATH |
B. | |
C. | LOGNAME |
D. | HOME |
Answer» D. HOME | |
3. |
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>” | |
4. |
The shell has ____ prompts. |
A. | 1 |
B. | 4 |
C. | many |
D. | 2 |
Answer» E. | |
5. |
Environment variables control the behavior of the system. |
A. | True |
B. | False |
Answer» B. False | |
6. |
Environment variable names can be defined only in uppercase. |
A. | True |
B. | False |
Answer» C. | |
7. |
____ command displays all the variables available in the current shell. |
A. | env |
B. | set |
C. | var |
D. | sh |
Answer» C. var | |
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 | |