nerdexam
LPI

102-500 · Question #196

The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

The correct answer is B. It is placed between a line containing Section "SectionName" and a line containing EndSection. Option B is correct because xorg.conf uses a plain-text block syntax where each section opens with Section "SectionName" on its own line and closes with EndSection - this is the actual format defined by the X.Org specification. Option A is wrong because xorg.conf does not use…

User Interfaces and Desktops

Question

The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Options

  • AIt is placed in curly brackets as in Section SectionName { ... }.
  • BIt is placed between a line containing Section "SectionName" and a line containing EndSection.
  • CIt is placed between the tags <Section name="SectionName"> and </Section>
  • DIt is placed after the row [SectionName].
  • EIt is placed after an initial unindented Section "SectionName" and must be indented by exactly one

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    82% (23)
  • C
    4% (1)
  • D
    11% (3)

Explanation

Option B is correct because xorg.conf uses a plain-text block syntax where each section opens with Section "SectionName" on its own line and closes with EndSection - this is the actual format defined by the X.Org specification. Option A is wrong because xorg.conf does not use curly-brace syntax (that belongs to languages like C or JSON). Option C is wrong because xorg.conf is not XML and uses no angle-bracket tags. Option D is wrong because the [SectionName] bracket style is INI-file syntax (used by files like /etc/samba/smb.conf), not X11. Option E is wrong because there is no indentation requirement - indentation inside a section is conventional for readability but not enforced by the parser.

Memory tip: Think of xorg.conf sections like a sandwich - Section "Name" is the top slice, your config lines are the filling, and EndSection is the bottom slice. No brackets, no tags, just open and close keywords.

Topics

#X11#xorg.conf#configuration syntax#section structure

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice