[Free] Download New Latest (November) CompTIA LX0-104 Actual Tests 1-10

Ensurepass

QUESTION 1

What word is missing from the following SQL statement?

 

__________ count(*) from tablename;

 

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

 

Correct Answer: select

 

 

QUESTION 2

When the command echo $$ outputs 12942, what is the meaning of 12942?

 

A.

It is the process ID of the echo command.

B.

It is the process ID of the current shell.

C.

It is the process ID of the last command executed.

D.

It is the process ID of the last command which has been placed in the background.

 

Correct Answer: B

 

 

QUESTION 3

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

 

Correct Answer: /etc/skel

 

 

QUESTION 4

What output will the following command produce?

 

seq 1 5 20

 

A.

1

6

1

1

1

6

B.

1

5

10

15

C.

1

2

3

4

D.

2

3

4

5

E.

5

10

15

20

 

Correct Answer: A

 

 

QUESTION 5

What is the purpose of the file /etc/profile?

 

A.

It contains the welcome message that is displayed after login.

B.

It contains security profiles defining which users are allowed to log in.

C.

It contains environment variables that are set when a user logs in.

D.

It contains default application profiles for users that run an application for the first time.

 

Correct Answer: C

 

 

QUESTION 6

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

 

A.

~/.bashconf

B.

~/.bashrc

C.

~/.bashdefaults

D.

~/.bash_etc

E.

~/.bash_profile

 

Correct Answer: BE

 

 

QUESTION 7

What output will the command seq 10 produce?

 

A.

A continuous stream of numbers increasing in increments of 10 until stopped.

B.

The numbers 1 through 10 with one number per line.

C.

The numbers 0 through 9 with one number per line.

D.

The number 10 to standard output.

 

Correct Answer: B

 

 

QUESTION 8

When the command echo $ outputs 1, which of the following statements is true?

 

A.

It is the process ID of the echo command.

B.

It is the process ID of the current shell.

C.

It is the exit value of the command executed immediately before echo.

D.

It is the exit value of the echo command.

 

Correct Answer: C

 

 

 

QUESTION 9

After issuing:

 

function myfunction { echo $1 $2 ; }

 

in Bash, which output does:

 

myfunction A B C

 

Produce?

 

A.

A B

B.

A B C

C.

A C

D.

B C

E.

C B A

 

Correct Answer: A

 

 

QUESTION 10

Which command makes the shell variable named VARIABLE visible to subshells?

 

A.

export $VARIABLE

B.

export VARIABLE

C.

set $VARIABLE

D.

set VARIABLE

E.

env VARIABLE

 

Correct Answer: B

 

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.