Linux LPI 117-101 # Bonus

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Tobyyy
T
Tobyyy
Community Contributor
Quizzes Created: 10 | Total Attempts: 1,403
Questions: 12 | Attempts: 88

SettingsSettingsSettings
Linux LPI 117-101 # Bonus - Quiz


linux lpi testing


Questions and Answers
  • 1. 

    What environment variable will remote X application check to see which X server itshould send output to?

    Explanation
    The magic word is DISPLAY. In the X window system, a display
    consists (simplified) of a keyboard, a mouse and a screen. A display is managed by a
    server program, known as an X server. The server serves displaying capabilities to
    other programs that connect to it.

    Rate this question:

  • 2. 

    What environment variable is used to remotely display another machines X sessionon yours?

    • A.

      DISPLAY

    • B.

      XSESSION

    • C.

      SCREEN

    • D.

      TTY

    • E.

      None of the above

    Correct Answer
    A. DISPLAY
    Explanation
    The DISPLAY consists of a hostname, a colon, and a sequence number. For example localhost:0

    Rate this question:

  • 3. 

    You are running X in networked environment. You want to allow anyone on yournetwork to display their X applications on your desktop. What command can youuse to disable all access control for X?

    Correct Answer
    xhost -
    Explanation
    xhost - the server access control program for X. The xhost program is
    used to add and delete host (computer) names or user names to the list of machines
    and users that are allowed to make connections to the X server. This provides a
    rudimentary form of privacy control and security.

    Rate this question:

  • 4. 

    You wish to enable remote X access for the hosts: Host1, Host2 and Host3.Type in the command and any needed arguments to do this.

    Correct Answer
    xhost +Host1 Host2 Host3
    Explanation
    1. xhost + hostname: Adds hostname to X server access control list.
    2. xhost - hostname: Removes hostname from X server access control list.
    3. xhost + : Turns off acccess control (all remote hosts will have access to X server)
    4. xhost - : Turns access control back on.

    Rate this question:

  • 5. 

    You are the system administrator for an X server, and experience attempts toinitiate an unathorized session from host21. What command with options andarguments would deny access only to host21 for X sessions?

    Correct Answer
    xhost -host21
    Explanation
    1. xhost + hostname: Adds hostname to X server access control list.
    2. xhost - hostname: Removes hostname from X server access control list.

    3. xhost + : Turns off acccess control (all remote hosts will have access to X server)
    4. xhost - : Turns access control back on.

    Rate this question:

  • 6. 

    What is the function of the .Xdefaults file?

    • A.

      Provides the defaults for new users X programs

    • B.

      A default user X profile, used as a template

    • C.

      User customizations for programs

    • D.

      KDE default user configuration file

    Correct Answer
    C. User customizations for programs
    Explanation
    You can use this file to change the way some of your X-window
    applications look. It's fun to try out different styles and get some settings that please
    your eye. Before you try to do this however, make a backup.

    Rate this question:

  • 7. 

    Which of the following is the default XFree86 configuration file?

    • A.

      /usr/X11R6/etc/XF86Config

    • B.

      /var/X11/XF86Config

    • C.

      /etc/X11/XF86Config

    • D.

      /usr/etc/X11/XF86Config

    Correct Answer
    C. /etc/X11/XF86Config
    Explanation
    When you configure the Vide card, monitor type, resolution using
    xf86config command, all information stores in /etc/X11/XF86Config file and when
    Linux start GUI reads the information from this file.

    Rate this question:

  • 8. 

    Your senior administrator asked you to change the defaultbackground of his machine, which uses XDM. Which file would you editto achieve this?

    • A.

      /etc/X11/xdm/Xsetup

    • B.

      /etc/X11/xdift.conf

    • C.

      /etc/X11/xdm/Defaults

    • D.

      /etc/X11/defaults.conf

    Correct Answer
    A. /etc/X11/xdm/Xsetup
    Explanation
    To change the default background of a machine that uses XDM, the file that needs to be edited is "/etc/X11/xdm/Xsetup". This file contains the commands that are executed when the X Display Manager (XDM) starts up. By editing this file, you can specify the desired background image or color for the machine.

    Rate this question:

  • 9. 

    You just started X for the first time and noticed that the display doesnot use the entire screen. What program can you use to fix this?

    • A.

      Xvidtune

    • B.

      Xf86config

    • C.

      XF86Setup

    • D.

      Tweakscreen

    Correct Answer
    B. Xf86config
    Explanation
    When you configure the Vide card, monitor type, resolution using
    xf86config command, all information stores in /etc/X11/XF86Config file and when
    Linux start GUI reads the information from this file.

    Rate this question:

  • 10. 

    Which of the following commands will print the current videosettings to stdout in xf86Config "Modeline " format?

    • A.

      xinfo -mode

    • B.

      Xset -info

    • C.

      Xf86config -list

    • D.

      Xvidtune -show

    Correct Answer
    D. Xvidtune -show
    Explanation
    xvidtune [ -show | -prev | -next | -unlock ] [ -toolkitoption ... ]
    Show - Print the currently selected settings to stdout in xorg.conf "Modeline" format. The
    primary selection is similarly set.

    Rate this question:

  • 11. 

    You are using an application that you want to appear on the screen of anothermachine. What environment variable would you have to set or edit to achieve this?

    • A.

      DISPLAY

    • B.

      REMOTE

    • C.

      REMOTE_XWINDOW

    • D.

      SCREEN

    Correct Answer
    A. DISPLAY
    Explanation
    To share the terminal between multiple hosts, we can export display.
    Example
    Suppose you want to run application on Certkiller B from Certkiller A.
    Certkiller B in GUI Terminal:# xhost +192.168.0.1
    Certkiller A in GUI Terminal:# export DISPLAY=192.168.0.2:0
    # xterm

    Rate this question:

  • 12. 

    Your Linux machine is set to boot to the graphical runlevel. You have updated someRPMs on your system and now you don't see video when the system boots. Whatline should you add/modify to the /etc/inittab file to boot in console mode?

    Correct Answer
    x:5:respawn:/etc/X11/prefdm -nodaemon
    Explanation
    It specifies that x windows system should run on runlevel 5 as a nondaemon.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Nov 20, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 19, 2009
    Quiz Created by
    Tobyyy
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.