Question 6 of 179
Which of the following SQL statements will select the fields name and address from the contacts table?
Correct Answer: C

Question 7 of 179
Which of the following configuration files should be modified to globally set shell variables for all users?
Correct Answer: B

The correct configuration file to modify in order to globally set shell variables for all users is /etc/profile. This file is executed for login shells and applies settings that should be available to all users on the system. Therefore, modifying /etc/profile ensures that the shell variables are globally set for everyone.

Question 8 of 179
Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)
Correct Answer: A, D

The 'export' command is used to set environment variables that are passed to child processes. The 'set' command is used to set and unset shell options and positional parameters. These commands are essential for managing environment and shell variables within a shell process.

Question 9 of 179
Which of the following are operators used for comparisons by the test command? (Choose TWO correct answers.)
Correct Answer: B, D

Question 10 of 179
Which of the following commands creates a function in Bash that outputs the sum of two numbers?
Correct Answer: A

In Bash, the correct syntax for defining a function is to use the 'function' keyword followed by the function name and curly braces to enclose the commands of the function. To output the sum of two numbers, we can use the 'echo' command and arithmetic expansion with $(($1 + $2)). This allows us to pass two arguments to the function, add them together, and print the result. The other options use incorrect keywords or do not perform the arithmetic operation correctly.