option
Questions
ayuda
daypo
search.php

Pinguin Teste 102

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
Pinguin Teste 102

Description:
O Feitiço de Desbloqueio, também conhecido como Amigo do Ladrão (Alohomora)

Creation Date: 2026/04/25

Category: Others

Number of questions: 28

Rating:(0)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that: The file at that location was used to make the script. This script provides identical functionality as the file at that location. This script will self-extract into a file at that location. The program at that location will be used to process the script.

When the command echo $ outputs 1, which of the following statements is true?. It is the process ID of the echo command. It is the process ID of the current shell. It is the exit value of the command executed immediately before echo. It is the exit value of the echo command.

What is the purpose of the file /etc/profile?. It contains the welcome message that is displayed after login. It contains security profiles defining which users are allowed to log in. It contains environment variables that are set when a user logs in. It contains default application profiles for users that run an application for the first time.

Which of the following commands lists all defined variables and functions within Bash?. env. set. env -a. echo $ENV.

Which of the following SQL statements will select the fields name and address from the contacts table?. SELECT (name, address) FROM contacts;. SELECT (name address) FROM contacts;. SELECT name, address FROM contacts;. SELECT name address FROM contacts;.

Which of the following is the best way to list all defined shell variables?. env. set. env -a. echo $ENV.

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?. unset -v FOOBAR;./myscript. set -a FOOBAR="";./myscript. env -u FOOBAR./myscript. env -i FOOBAR./myscript.

Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?. LIMIT. FROM. WHERE. IF.

Which command makes the shell variable named VARIABLE visible to subshells?. export $VARIABLE. export VARIABLE. set $VARIABLE. set VARIABLE. env VARIABLE.

What output will the command seq 10 produce?. A continuous stream of numbers increasing in increments of 10 until stopped. The numbers 1 through 10 with one number per line. The numbers 0 through 9 with one number per line. The number 10 to standard output.

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?. SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;. SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;. COUNT(SELECT order_type FROM orders);. SELECT COUNT(*) FROM orders ORDER BY order_type;. SELECT AUTO_COUNT FROM orders COUNT order_type;.

Which command allows you to make a shell variable visible to subshells?. export $VARIABLE. export VARIABLE. set $VARIABLE. set VARIABLE. env VARIABLE.

When the command echo $$ outputs 12942, what is the meaning of 12942?. It is the process ID of the echo command. It is the process ID of the current shell. It is the process ID of the last command executed. It is the process ID of the last command which has been placed in the background.

What command displays all aliases defined in the current shell? (Specify the command without any path information).

What output will the following command sequence produce? echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done. result: 3 4 5 6 2 1. result: 1 2 3 4 5 6. result: 6 5 4. result: 6 5 4 3 2 1. result: 3 2 1.

Which of the following configuration files should be modified to set default shell variables for all users?. /etc/bashrc. /etc/profile. ~/.bash_profile. /etc/.bashrc.

What benefit does an alias in bash provide?. It provides faster lookups for commands in the system directory. It creates a local copy of a file from another directory. It hides what command you are running from others. It allows a string to be substituted for the first word of a simple command.

What is the difference between the commands test -e path and test -f path?. They are equivalent options with the same behaviour. The -f option tests for a regular file. The -e option tests for an empty file. Both options check the existence of the path. The -f option also confirms that it is a regular file. The -f option tests for a regular file. The -e option tests for an executable file.

Which of the following commands puts the output of the command date into the shell variable mydate?. mydate="$(date)". mydate="exec date". mydate="$((date))". mydate="date". mydate="${date}".

What keyword is missing from this code sample of a shell script? ____ i in *.txt; do echo $i done. for. loop. until. while.

Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path).

What output will the following command produce? seq 1 5 20. 1 6 11 16. 1 5 10 15. 1 2 3 4. 2 3 4 5. 5 10 15 20.

By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.).

What word is missing from the following SQL statement? __________ count(*) from tablename; (Please specify the missing word using lower-case letters only.).

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.). The user issuing the command must be in the group script. The script file must be found in the $PATH. The script file must have the executable permission bit set. The script must begin with a shebang-line (#!) that points to the correct interpreter. The file system on which the script resides must be mounted with the option scripts.

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?. CASE. FROM. WHERE. IF.

After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?. A B. A B C. A C. B C. C B A.

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.). ~/.bashconf. ~/.bashrc. ~/.bashdefaults. ~/.bash_etc. ~/.bash_profile.

Report abuse