CertBus.com

LX0-104 Q&As CompTIA Linux+ Powered by LPI 2 Pass CompTIA LX0-104 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: http://www.CertBus.com/LX0-104.html 100% Passing Guarantee 100% Money Back Assurance

Following Questions and Answers are all new published by CompTIA Official Exam Center

Instant Download After Purchase 100% Money Back Guarantee 365 Days Free Update 80000+ Satisfied Customers

Vendor: CompTIA

Exam Code: LX0-104

Exam Name: CompTIA Linux+ Powered by LPI 2

Version: Demo

QUESTION 1 What is true regarding the statement beginning with #! that is found in the first line of a script? A. B. C. D.

It prevents the script from being executed until the ! is removed. It specifies the path and the arguments of the interpreter used to run the script. It is a comment that is ignored by the script. It specifies the character encoding of the script.

Correct Answer: B QUESTION 2 Which Bash option prevents a user from accidentally overwriting a file with a ">"? A. B. C. D. E.

set -o safe set -o noglob set -o noclobber set -o append set -o nooverwrite

Correct Answer: C QUESTION 3 Which of the following commands prints the exit value of the most recently executed program in Bash? A. B. C. D. E.

echo $? echo $# echo $exit echo $status echo $&

Correct Answer: A QUESTION 4 Which of the following SQL statements will select the fields name and address from the contacts table? A. B. C. D.

SELECT (name, address) FROM contacts; SELECT (name address) FROM contacts; SELECT name, address FROM contacts; SELECT name address FROM contacts;

Correct Answer: C QUESTION 5 Which of the following configuration files should be modified to globally set shell variables for all users? A. B. C. D.

/etc/bashrc /etc/profile ~/.bash_profile /etc/.bashrc

Correct Answer: B QUESTION 6 Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)

A. B. C. D. E.

export init reset set tset

Correct Answer: AD QUESTION 7 Which of the following are operators used for comparisons by the test command? (Choose TWO correct answers.) A. B. C. D. E.

equals = -is -eq null

Correct Answer: BD QUESTION 8 Which of the following commands creates a function in Bash that outputs the sum of two numbers? A. B. C. D. E.

function sumitup { echo $(($1 + $2)) ; } command sumitup { echo $(($1 + $2)) ; } function sumitup { echo $1 + $2 ; } method sumitup { echo $1 + $2 ; } command sumitup { echo $1 + $2 ; }

Correct Answer: A QUESTION 9 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. B. C. D. E.

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

Correct Answer: A QUESTION 10 When the command echo $? outputs 1, which of the following statements are true? A. B. C. D.

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.

Correct Answer: C QUESTION 11 Which command makes the shell variable named VARIABLE visible to subshells?

A. B. C. D. E.

export $VARIABLE export VARIABLE set $VARIABLE set VARIABLE env VARIABLE

Correct Answer: B QUESTION 12 What output will the command seq 10 produce? A. B. C. D.

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.

Correct Answer: B QUESTION 13 Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.) A. B. C. D. E.

~/.bashconf ~/.bashrc ~/.bashdefaults ~/.bash_etc ~/.bash_profile

Correct Answer: BE QUESTION 14 After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce? A. B. C. D. E.

AB ABC AC BC CBA

Correct Answer: A QUESTION 15 Which of the following commands puts the output of the command date into the shell variable mydate? A. B. C. D.

mydate="$(date)" mydate="exec date" mydate="$((date))" mydate="date"

E. mydate="${date}" Correct Answer: A QUESTION 16 What is the purpose of the sticky keys feature in X? A. B. C. D.

To assist users who have difficulty holding down multiple keys at once. To prevent repeated input of a single character if the key is held down. To ignore brief keystrokes according to a specified time limit. To repeat the input of a single character.

Correct Answer: A QUESTION 17 On a machine running several X servers, how are the different instances of the X11 server identified? A. B. C. D. E.

By a fixed UUID that is defined in the X11 configuration file. By a unique IPv6 address from the fe80::/64 subnet. By the name of the user that runs the X server like x11:bob. By a device name like /dev/X11/xservers/1. By a display name like:1.

Correct Answer: E QUESTION 18 What is the purpose of the xhost program? A. B. C. D. E.

Grant or revoke access to a X11 session. Install all packages and video drivers required to run X11 on a host. Start the X11 server and announce its availability within the local network. Send informational messages to all users logged into a host using X11. Display the MOTD and other important information when a user logs in via X11.

Correct Answer: A QUESTION 19 What of the following statements is true regarding a display manager? A. A display manager handles remote X11 logins only and has no purpose on a system that is not attached to a network. B. The display manager is configured in the X11 configuration file xorg.conf. C. There is only one display manager X11DM that must be started on all systems running X11. D. After system startup, the display manager handles the login of a user. E. Without a display manager, no graphical programs can be run. Correct Answer: D QUESTION 20 How is a display manager started? A. B. C. D.

It is started by a user using the command startx. It is started like any other system service by the init system. It is started by inetd when a remote hosts connects to the X11 port. It is started automatically when a X11 user logs in to the system console.

Correct Answer: B

QUESTION 21 Which of the following commands shows the current color depth of the X Server? A. B. C. D. E.

xcd xcdepth xwininfo xcolordepth cat /etc/X11

Correct Answer: C QUESTION 22 For accessibility assistance, which of the following programs is an on-screen keyboard? A. B. C. D.

xkb atkb GOK xOSK

Correct Answer: C QUESTION 23 Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.) A. B. C. D. E.

Start and prepare the desktop environment for the user. Configure additional devices like new monitors or projectors when they are attached. Handle the login of a user. Lock the screen when the user was inactive for a configurable amount of time. Create an X11 configuration file for the current graphic devices and monitors.

Correct Answer: AC QUESTION 24 Which of the following commands can modify or set the password expiration for a user? (Choose TWO correct answers.) A. B. C. D. E.

chage chexpiration shadowconfig passwd userconf

Correct Answer: AD QUESTION 25 Which of the following statements is true regarding the /etc/shadow file? A. B. C. D.

/etc/shadow may not be readable or writable by user root. Only root is allowed to read and write /etc/shadow. All users have full read and write access to /etc/shadow. All users have full read access to /etc/shadow.

Correct Answer: B QUESTION 26

To Read the Whole Q&As, please purchase the Complete Version from Our website.

Trying our product ! ★ 100% Guaranteed Success ★ 100% Money Back Guarantee ★ 365 Days Free Update ★ Instant Download After Purchase ★ 24x7 Customer Support ★ Average 99.9% Success Rate ★ More than 69,000 Satisfied Customers Worldwide ★ Multi-Platform capabilities - Windows, Mac, Android, iPhone, iPod, iPad, Kindle

Need Help Please provide as much detail as possible so we can best assist you. To update a previously submitted ticket:

Guarantee & Policy | Privacy & Policy | Terms & Conditions Any charges made through this site will appear as Global Simulators Limited. All trademarks are the property of their respective owners. Copyright © 2004-2015, All Rights Reserved.

:K\6HOHFW&KRRVH&HUW%XVFRP" 0LOOLRQVRILQWHUHVWHGSURIHVVLRQDOVFDQWRXFKWKHGHVWLQDWLRQRIVXFFHVVLQH[DPVE\FHUWEXVFRPSURGXFWV ZKLFKZRXOGEHDYDLODEOHDIIRUGDEOHXSGDWHGDQGRIUHDOO\EHVWTXDOLW\WRRYHUFRPHWKHGLIILFXOWLHVRIDQ\ FRXUVHRXWOLQHV4XHVWLRQVDQG$QVZHUVPDWHULDOLVXSGDWHGLQKLJKO\RXWFODVVPDQQHURQUHJXODUEDVLVDQG PDWHULDOLVUHOHDVHGSHULRGLFDOO\DQGLVDYDLODEOHLQWHVWLQJFHQWHUVZLWKZKRPZHDUHPDLQWDLQLQJRXU UHODWLRQVKLSWRJHWODWHVWPDWHULDO x 5HDO4XHVWLRQVDQG$QVZHUV x )UHHGHPRGRZQORDGVDYDLODEOH x 3UHSDUDWLRQ/DEV x 5HSUHVHQWDWLYHV3URYLGLQJ6XSSRUW

CertBus-CompTIA-LX0-104-Study-Materials-Braindumps-With-Real ...

CertBus-CompTIA-LX0-104-Study-Materials-Braindumps-With-Real-Exam.pdf. CertBus-CompTIA-LX0-104-Study-Materials-Braindumps-With-Real-Exam.pdf.

850KB Sizes 1 Downloads 86 Views

Recommend Documents

No documents