[Free] Download New Latest (November) CompTIA LX0-104 Actual Tests 11-20

Ensurepass

QUESTION 11

Which of the following commands puts the output of the command date into the shell variable mydate?

 

A.

mydate=”$(date)”

B.

mydate=”exec date”

C.

mydate=”$((date))”

D.

mydate=”date”

E.

mydate=”${date}”

 

Correct Answer: A

 

 

QUESTION 12

What word is missing from the following SQL statement?

 

insert into tablename ________(909, ‘text’);

 

(Please specify the missing word using lower-case letters only.)

 

Correct Answer: VALUES, values

 

QUESTION 13

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

 

Correct Answer: alias, alias -p

 

 

QUESTION 14

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

 

A.

SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;

B.

SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;

C.

COUNT(SELECT order_type FROM orders);

D.

SELECT COUNT(*) FROM orders ORDER BY order_type;

E.

SELECT AUTO_COUNT FROM orders COUNT order_type;

 

Correct Answer: B

 

 

QUESTION 15

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?

 

A.

CASE

B.

FROM

C.

WHERE

D.

IF

 

Correct Answer: C

 

 

QUESTION 16

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?

 

A.

unset -v FOOBAR;./myscript

B.

set -a FOOBAR=””;./myscript

C.

env -u FOOBAR./myscript

D.

env -i FOOBAR./myscript

 

Correct Answer: C

 

 

QUESTION 17

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.)

 

A.

The user issuing the command must be in the group script.

B.

The script file must be found in the $PATH.

C.

The script file must have the executable permission bit set.

D.

The script must begin with a shebang-line (#!) that points to the correct interpreter.

E.

The file system on which the script resides must be mounted with the option scripts.

Correct Answer: BCD

 

 

QUESTION 18

Which of the following commands lists all defined variables and functions within Bash?

 

A.

env

B.

set

C.

env -a

D.

echo $ENV

 

Correct Answer: B

 

 

QUESTION 19

What is the difference between the commands test -e path and test -f path?

 

A.

They are equivalent options with the same behaviour.

B.

The -f option tests for a regular file. The -e option tests for an empty file.

C.

Both options check the existence of the path. The -f option also confirms that it is a regular file.

D.

The -f option tests for a regular file. The -e option tests for an executable file.

 

Correct Answer: C

 

 

QUESTION 20

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

 

A.

result: 3 4 5 6 2 1

B.

result: 1 2 3 4 5 6

C.

result: 6 5 4

D.

result: 6 5 4 3 2 1

E.

result: 3 2 1

 

Correct Answer: A

 

Free VCE & PDF File for CompTIA LX0-104 Actual Tests

Instant Access to Free VCE Files: CompTIA | VMware | SAP …
Instant Access to Free PDF Files: CompTIA | VMware | SAP …

This entry was posted in LX0-104 Actual Tests (November) and tagged , , , , , , . Bookmark the permalink.