LFCS · 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. X.Org configuration files, such as xorg.conf, define sections using a specific block structure with Section "SectionName" and EndSection 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
(38 responses)- A3% (1)
- B92% (35)
- C5% (2)
Why each option
X.Org configuration files, such as `xorg.conf`, define sections using a specific block structure with `Section "SectionName"` and `EndSection` directives.
Curly brackets (`{}`) are not the standard syntax for defining sections in `xorg.conf` files.
In X.Org configuration files like `xorg.conf`, content belonging to a specific section, identified by `SectionName`, is enclosed between a line starting with `Section "SectionName"` and a subsequent line containing `EndSection`.
XML-like tags (`<Section>...</Section>`) are not used in `xorg.conf` configuration files; this syntax is characteristic of XML documents.
Square brackets (`[]`) are typically used in INI-style configuration files, not for defining sections in `xorg.conf`.
While indentation improves readability, it is not the mechanism for associating content with a section in `xorg.conf`; the `EndSection` directive explicitly closes the section.
Concept tested: X.Org configuration file section syntax
Source: https://www.x.org/releases/X11R7.7/doc/man/man5/xorg.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.