Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
Correct Answer: A,E
Question 7
Which command can be used to delete a group from a Linux system?
Correct Answer: C
Question 8
Which of the following SQL statements will select the fields name and address from the contacts table?
Correct Answer: C
The correct syntax for selecting specific columns from a table in SQL is to use the SELECT keyword followed by a comma-separated list of column names and then the FROM keyword followed by the table name. Therefore, the only option that follows this syntax is C. SELECT name, address FROM contacts; The other options are incorrect because they either use parentheses around the column names, which are not needed, or they omit the comma between the column names, which causes a syntax error. References: https://www.sqltutorial.org/sql-select/ https://www.w3schools.com/mysql/mysql_select.asp
Question 9
Which of the following commands lists all defined variables and functions within Bash?
Correct Answer: B
The set command lists all defined variables and functions within Bash, including local, environment, and shell variables, as well as aliases and functions. The output of set can be very long, so it is often piped to less, grep, or other commands for filtering or paging. The set command can also be used to set or unset shell options and positional parameters. The -o posix option to set limits the output to only variables, as defined by the POSIX standard123. The env command lists only the environment variables, which are a subset of the shell variables that are passed to child processes. The env command can also be used to run a command in a modified environment, or to print or set environment variables. The -a option to env is not valid in most implementations45. The echo command prints a line of text to the standard output. The $ENV variable is not a predefined variable in Bash, but it can be set by the user or by other programs. If it is not set, echo $ENV will print a blank line1 . References:
Question 10
Which of the following fields can be found in the /etc/group file? (Choose two.)