


















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































































Question 1. Which of the following best describes the primary purpose of technical documentation in an open‑source project? A) To showcase the developer’s coding style B) To provide end‑users and contributors with clear, actionable information C) To replace the source code repository D) To serve as a marketing brochure Answer: B Explanation: Technical documentation exists to help users and contributors understand, install, use, and contribute to the software, not to market or replace code. Question 2. In the open‑source context, a technical writer’s most important responsibility is: A) Writing all the source code themselves B) Ensuring documentation aligns with the project’s licensing terms C) Translating user manuals into multiple languages only D) Maintaining a consistent, accurate, and accessible knowledge base for the community Answer: D Explanation: The writer focuses on clarity, consistency, and accessibility, supporting both users and developers. Question 3. Which document type is primarily aimed at guiding a new contributor through setting up the development environment? A) Reference guide B) Tutorial C) FAQ D) Release notes Answer: B
Explanation: Tutorials walk a reader step‑by‑step through a learning path, such as environment setup. Question 4. When performing audience analysis, which factor is least relevant for a developer‑focused how‑to guide? A) Preferred programming language B) Desired outcome of the guide C) Geographic location of the reader D) Prior experience with the project’s API Answer: C Explanation: Geographic location rarely affects the technical content needed for a developer guide. Question 5. Which principle most directly supports “scannability” in documentation? A) Using dense paragraphs B) Embedding large code blocks without comments C) Providing clear headings and bullet lists D) Writing in passive voice throughout Answer: C Explanation: Headings and bullet lists let readers quickly locate information. Question 6. The typical order of steps in the documentation development lifecycle is: A) Publishing → Drafting → Planning → Reviewing → Maintenance B) Planning → Drafting → Reviewing → Publishing → Maintenance C) Reviewing → Planning → Drafting → Maintenance → Publishing D) Drafting → Planning → Publishing → Reviewing → Maintenance
Answer: A Explanation: .. code:: starts a code block and can specify the language for highlighting. Question 10. Which Sphinx configuration file defines project metadata, extensions, and theme settings? A) index.rst B) conf.py C) Makefile D) requirements.txt Answer: B Explanation: conf.py holds all Sphinx configuration options. Question 11. A static site generator (SSG) primarily differs from a dynamic CMS in that it: A) Stores content in a relational database B) Generates HTML files at build time, not on each request C) Requires server‑side scripting for each page view D) Cannot be version‑controlled with Git Answer: B Explanation: SSGs pre‑render HTML, eliminating runtime processing. Question 12. Which of the following is NOT a common SSG used for documentation? A) Jekyll B) Hugo C) MkDocs D) MySQL
Answer: D Explanation: MySQL is a database system, not a static site generator. Question 13. In a typical Git workflow for documentation contributions, the first step after forking a repository is: A) Opening a pull request B) Merging the upstream master branch C) Cloning the fork to a local machine D) Deleting the original repository Answer: C Explanation: You clone your fork to edit files locally before creating a PR. Question 14. When a documentation file has a merge conflict, the correct approach is to: A) Delete the file entirely B) Manually edit the conflict markers and resolve the differences C) Push the conflicted file without changes D) Rebase the repository onto a different branch without reviewing Answer: B Explanation: Conflict markers must be resolved manually to produce a coherent file. Question 15. According to the Diátaxis framework, which type of document is best suited for “how do I reset my password?” A) Tutorial B) How‑to guide C) Reference D) Explanation
D) Hiding content behind JavaScript that never loads Answer: C Explanation: Clear headings and meta data help search engines index pages. Question 19. A documentation style guide typically includes guidance on: A) The color palette of the project’s logo B) Capitalization, punctuation, and terminology consistency C) The choice of programming language for the core product D) The hardware requirements for building the software Answer: B Explanation: Style guides standardize writing conventions across docs. Question 20. Inclusive language in documentation means: A) Using only gender‑neutral pronouns and avoiding assumptions about the reader’s background B) Writing in a single regional dialect C) Avoiding all technical terminology D) Translating every page into at least ten languages Answer: A Explanation: Inclusive language avoids bias and makes content accessible to diverse audiences. Question 21. Which voice and mood are recommended for step‑by‑step instructions? A) Passive voice, subjunctive mood B) Active voice, imperative mood C) First‑person plural, indicative mood
D) Third‑person passive, conditional mood Answer: B Explanation: “Do this” (imperative, active) provides clear, direct guidance. Question 22. When defining a technical term in a document, the best practice is to: A) Assume the reader already knows the term B) Provide a concise definition at first use, possibly with a hyperlink to a deeper explanation C) Use the term without any definition to keep the text short D) Include the definition only in a separate glossary file Answer: B Explanation: Immediate definitions aid comprehension without forcing the reader to search elsewhere. Question 23. Which of the following would be considered jargon that should be avoided or clarified for a general audience? A) “API” B) “Application Programming Interface” C) “Endpoint URL” D) “User interface” Answer: A Explanation: “API” may be unfamiliar; spelling it out or defining it helps beginners. Question 24. A welcoming tone in open‑source documentation typically includes: A) Sarcastic remarks about beginner mistakes B) Encouragement, gratitude for contributions, and clear guidance C) Demanding language about strict compliance
D) Count of contributors with admin rights Answer: B Explanation: Documentation‑related issue reports indicate gaps or problems perceived by users. Question 28. When retiring outdated documentation, the recommended approach is to: A) Delete the files without any notice B) Archive the content in a separate “old‑docs” branch and add a notice linking to the new location C) Keep the outdated pages live but hide them from the navigation menu only D) Replace the content with random placeholder text Answer: B Explanation: Archiving preserves history while informing readers of the change. Question 29. Which license is commonly used for documentation to allow free reuse with attribution? A) GPL‑3. B) MIT License C) Creative Commons Attribution‑ShareAlike (CC BY‑SA) D) Apache‑2. Answer: C Explanation: CC BY‑SA is designed for creative works like docs, requiring attribution and share‑alike. Question 30. If a documentation page reuses a paragraph from another project under a CC BY‑NC license, the correct action is to: A) Use it without mentioning the source because it’s documentation
B) Provide proper attribution and ensure the new work also complies with the “Non‑Commercial” restriction C) Change a few words and claim it as original D) Convert the license to MIT automatically Answer: B Explanation: CC BY‑NC requires attribution and limits commercial use; you must honor those terms. Question 31. In Python, a docstring placed immediately after a function definition is primarily used for: A) Controlling the function’s runtime performance B) Generating API reference documentation automatically C) Defining variable types for static analysis only D) Encrypting the function’s source code Answer: B Explanation: Tools like Sphinx can extract docstrings to build API docs. Question 32. Which tool can generate HTML API documentation directly from Java source code comments? A) MkDocs B) Javadoc C) Docusaurus D) Hugo Answer: B Explanation: Javadoc parses JavaDoc comments to produce API reference pages.
Question 36. Which practice helps keep translation files synchronized with source documentation? A) Manually editing .po files after each commit B) Using a tool like sphinx-intl to extract messages and update catalogs automatically C) Deleting old translations each release D) Translating directly in the HTML output files Answer: B Explanation: Automation ensures new strings are added and obsolete ones removed. Question 37. A “how‑to guide” differs from a “tutorial” mainly in that a how‑to guide: A) Provides a comprehensive learning path covering multiple concepts B) Focuses on a single, specific task with concise steps C) Is written in a narrative storytelling style D) Includes extensive background theory Answer: B Explanation: How‑to guides are task‑oriented, whereas tutorials are broader learning experiences. Question 38. Which of the following is a recommended way to structure a single documentation page for readability? A) One long paragraph without breaks B) An introductory summary, followed by clearly labeled sections and a conclusion C) Randomly ordered bullet points without headings D) Embedding all code snippets inside a single block at the end Answer: B Explanation: A logical flow with headings aids navigation and comprehension.
Question 39. When writing for an international audience, which phrasing should be avoided? A) “Press the Enter key” B) “Click the button labeled ‘Submit’” C) “Right‑click on the file” D) “Use the ‘Ctrl + C’ shortcut” Answer: D Explanation: Keyboard shortcuts vary by OS; specifying “Ctrl” may not apply on macOS (⌘). Use platform‑neutral descriptions. Question 40. A documentation contribution that adds a new section but does not update the navigation menu is likely to: A) Improve the overall user experience immediately B) Cause users to miss the new content because it isn’t linked C) Break the build process automatically D) Remove the need for a table of contents Answer: B Explanation: Without navigation updates, the new content remains hard to discover. Question 41. Which of the following is NOT a benefit of using a version control system for documentation? A) Ability to track changes over time B) Automatic generation of PDFs without any configuration C) Facilitation of collaborative editing via branches and pull requests D) Easy rollback to a previous stable version Answer: B
Explanation: Sample requests/responses illustrate usage and expected data structures. Question 45. Which Sphinx extension enables automatic generation of API docs from docstrings? A) sphinx.ext.autodoc B) sphinx.ext.todo C) sphinx.ext.mathjax D) sphinx.ext.graphviz Answer: A Explanation: autodoc pulls docstrings into the documentation. Question 46. In a documentation repository, the file CONTRIBUTING.md typically contains: A) The full source code of the project B) Guidelines for how contributors should submit documentation changes C) License information for the software binaries D) A list of all project maintainers’ personal email addresses Answer: B Explanation: CONTRIBUTING.md outlines contribution processes. Question 47. Which of the following is an example of an “inclusive” term to use instead of “master” when referring to the main branch? A) “primary” B) “main” C) “root” D) “leader” Answer: B
Explanation: “main” is the recommended neutral term for the default branch. Question 48. When a documentation page includes a “Note” block, the purpose is to: A) Provide a warning that the user must ignore B) Highlight supplemental information that is useful but not essential to the main flow C) Replace the main instructions entirely D) Add decorative graphics only Answer: B Explanation: “Note” blocks give extra context without interrupting the primary steps. Question 49. Which of the following is the most appropriate way to reference a code variable in a Markdown document to ensure proper formatting? A) variableName (plain text) B) variableName (italic) C) variableName (inline code) D) variableName (bold) Answer: C Explanation: Inline backticks render the text as code, distinguishing it from prose. Question 50. A “reference” document is best described as: A) A narrative walkthrough of a concept B) A concise list of commands, options, and API signatures for quick lookup C) A marketing brochure for the product D) A collection of user testimonials Answer: B
Explanation: Aligning doc versions with software releases helps users find relevant information. Question 54. The most appropriate place to store large binary assets (e.g., videos) referenced by documentation is: A) Inside the same Git repository as the source files B) In a separate, version‑controlled binary storage service (e.g., Git LFS, cloud storage) with links from the docs C) Embedded directly as base64 strings in Markdown files D) In the README file itself Answer: B Explanation: Large binaries inflate repository size; external storage keeps the repo lightweight. Question 55. Which of the following is an advantage of using “task lists” in GitHub‑flavored Markdown for a documentation roadmap? A) They automatically execute code when checked B) They provide a visual, interactive way to track progress and communicate upcoming work C) They hide incomplete tasks from the public view D) They replace the need for a formal issue tracker Answer: B Explanation: Task lists render checkboxes that can be ticked, showing status at a glance. Question 56. When a documentation page includes a “TODO” comment, the best practice is to: A) Leave it indefinitely for readers to see B) Convert it into a tracked issue or pull request before merging the documentation C) Delete the comment before publishing, regardless of relevance D) Replace it with random placeholder text
Answer: B Explanation: TODOs should be turned into actionable items in the project’s workflow. Question 57. Which of the following is a recommended naming convention for image files used in documentation? A) IMG12345.png B) screenshot.png C) install‑cli‑macos.png (descriptive, kebab‑case) D) file1.png Answer: C Explanation: Descriptive, hyphen‑separated names improve discoverability and maintenance. Question 58. In a documentation PR, the term “cherry‑pick” refers to: A) Selecting a random commit to delete B) Applying a specific commit from another branch onto the current branch C) Merging all changes automatically without review D) Reverting the entire documentation history Answer: B Explanation: Cherry‑picking copies a specific commit to another branch. Question 59. Which of the following is a primary reason to include a “search” feature in a documentation site? A) To increase the site’s load time B) To enable users to quickly locate specific topics or keywords C) To replace the need for a table of contents D) To automatically translate pages into other languages