LX0-104 · Question #8
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.. In the X11 configuration file xorg.conf, content for a specific section is defined by enclosing it between a Section "SectionName" line and an EndSection line. This structure logically groups related configuration directives.
Question
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
How the community answered
(36 responses)- B86% (31)
- C6% (2)
- D3% (1)
- E6% (2)
Why each option
In the X11 configuration file `xorg.conf`, content for a specific section is defined by enclosing it between a `Section "SectionName"` line and an `EndSection` line. This structure logically groups related configuration directives.
Curly brackets `{}` are commonly used in scripting languages or JSON, but not for defining sections in `xorg.conf`.
The standard syntax for defining sections in the `xorg.conf` file, and many other X11-related configuration files, involves a `Section "SectionName"` line to begin the section and an `EndSection` line to conclude it, with all configuration directives for that section placed in between.
XML-like tags such as `<Section>` and `</Section>` are not used for structuring `xorg.conf` files.
Square brackets `[]` for section headers are common in INI-style configuration files, but `xorg.conf` uses the `Section "SectionName"` syntax.
While indentation is often used for readability, it is not a strict syntactical requirement for associating content within `xorg.conf` sections; the `EndSection` keyword explicitly defines the end of a section.
Concept tested: X11 xorg.conf section syntax
Source: https://www.x.org/releases/current/doc/man/man5/xorg.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.