BOURNE SHELLS MCQs – CHAPTER 6 DAE 10 min Score: 0 Attempted: 0/10 Subscribe 1. . What is the primary function of a shell? (A) Execute commands entered by the user (B) Run shell scripts (C) Manage files and directories (D) Manage environment variablesShow All Answers 2. . What is a shell script? (A) A program written in a shell language that can be executed in the shell (B) A program written in Python that can be executed in the shell (C) A program that can only be executed in a graphical user interface (D) A program that can only be executed in a terminal emulatorShow All Answers 3. . What is input/output redirection in shells? (A) Allowing users to redirect input and output to and from files (B) Allowing users to redirect input and output to and from the Internet (C) Allowing users to redirect input and output to and from other processes (D) Allowing users to redirect input and output to and from the command historyShow All Answers 4. . What are environment variables in shells? (A) Variables that hold information about user preferences (B) Variables that hold information about network connections (C) Variables that hold information about shell commands (D) Variables that hold information about the system or user environmentShow All Answers 5. . What is job control in shells? (A) Allowing shells to manage network connections (B) Allowing shells to manage jobs and processes (C) Allowing shells to manage user preferences (D) Allowing shells to manage text processing tasksShow All Answers 6. . Which shell is the default shell in most Linux distributions? (A) Zsh (B) Bash (C) Ksh (D) TcshShow All Answers 7. . Which command is used to display the current working directory in the shell? (A) dir (B) ls (C) pwd (D) cdShow All Answers 8. . Which shell command is used to create a new directory? (A) cat (B) touch (C) rm (D) mkdirShow All Answers 9. . Which symbol is used in shell commands to represent the home directory? (A) $ (B) * (C) ~ (D) #Show All Answers 10. . Which command is used to list the files and directories in a directory? (A) ls (B) cd (C) cp (D) mvShow All Answers