LX0-104

LX0-104 practice questions, page 4 of 7, with answer review and explanations.

Question 16

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

  1. A B
  2. A B C
  3. A C
  4. B C
  5. C B A

Question 17

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

  1. mydate="$(date)"
  2. mydate="exec date"
  3. mydate="$((date))"
  4. mydate="date"
  5. mydate="${date}"

Question 18

What is the purpose of the sticky keys feature in X?

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

Question 19

On a machine running several X servers, how are the different instances of the X11 server identified?

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

Question 20

What is the purpose of the xhost program?

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