LX0-104
Free trial
Verified
Question 1
Which of the following commands creates a function in Bash that outputs the sum of two numbers?
- A: function sumitup { echo $(($1 + $2)) ; }
- B: command sumitup { echo $(($1 + $2)) ; }
- C: function sumitup { echo $1 + $2 ; }
- D: method sumitup { echo $1 + $2 ; }
- E: command sumitup { echo $1 + $2 ; }
Question 2
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
Question 3
When the command echo $? outputs 1, which of the following statements are 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.
Question 4
SIMULATION -
What word is missing from the following SQL statement? insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)
Question 5
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
Question 6
SIMULATION -
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.)
Question 7
SIMULATION -
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
Question 8
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
Question 9
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}"
Question 10
Which of the following configuration files should be modified to globally set shell variables for all users?
- A: /etc/bashrc
- B: /etc/profile
- C: ~/.bash_profile
- D: /etc/.bashrc
Question 11
Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)
- A: export
- B: init
- C: reset
- D: set
- E: tset
Question 12
What is the purpose of the sticky keys feature in X?
- A: To assist users who have difficulty holding down multiple keys at once.
- B: To prevent repeated input of a single character if the key is held down.
- C: To ignore brief keystrokes according to a specified time limit.
- D: To repeat the input of a single character.
Question 13
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
- A: Start and prepare the desktop environment for the user.
- B: Configure additional devices like new monitors or projectors when they are attached.
- C: Handle the login of a user.
- D: Lock the screen when the user was inactive for a configurable amount of time.
- E: Create an X11 configuration file for the current graphic devices and monitors.
Question 14
On a machine running several X servers, how are the different instances of the X11 server identified?
- A: By a fixed UUID that is defined in the X11 configuration file.
- B: By a unique IPv6 address from the fe80::/64 subnet.
- C: By the name of the user that runs the X server like x11:bob.
- D: By a device name like /dev/X11/xservers/1.
- E: By a display name like:1.
Question 15
What is the purpose of the xhost program?
- A: Grant or revoke access to a X11 session.
- B: Install all packages and video drivers required to run X11 on a host.
- C: Start the X11 server and announce its availability within the local network.
- D: Send informational messages to all users logged into a host using X11.
- E: Display the MOTD and other important information when a user logs in via X11.
Question 16
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.
Question 17
How is a display manager started?
- A: It is started by a user using the command startx.
- B: It is started like any other system service by the init system.
- C: It is started by inetd when a remote hosts connects to the X11 port.
- D: It is started automatically when a X11 user logs in to the system console.
Question 18
SIMULATION -
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)
Question 19
Which of the following commands shows the current color depth of the X Server?
- A: xcd
- B: xcdepth
- C: xwininfo
- D: xcolordepth
- E: cat /etc/X11
Question 20
For accessibility assistance, which of the following programs is an on-screen keyboard?
- A: xkb
- B: atkb
- C: GOK
- D: xOSK
That’s the end of your free questions
You’ve reached the preview limit for LX0-104Consider upgrading to gain full access!
Free preview mode
Enjoy the free questions and consider upgrading to gain full access!