Docsity

LFC208 Creating Open Source Projects Practice Exam, Exams of Technology

Toggle sidebar
bg1
LFC208 Creating Open Source Projects Practice
Exam
**Question 1.** Which of the following best describes the historical origin of the term “open
source”?
A) The launch of the GNU Project in 1983
B) The 1998 Open Source Initiative (OSI) announcement
C) The creation of the Apache License in 1995
D) The release of the Linux kernel in 1991
Answer: B
Explanation: The term “open source” was popularized in 1998 when the Open Source Initiative
was founded and released the Open Source Definition.
**Question 2.** The “Run” freedom in the Four Freedoms of free software allows a user to:
A) Modify the source code for personal use only
B) Execute the program for any purpose without restriction
C) Distribute the program only under the same license
D) Sell the program without providing source code
Answer: B
Explanation: Freedom 0 (“Run”) permits anyone to use the software for any purpose.
**Question 3.** Which statement correctly distinguishes Open Source from Source‑Available
software?
A) Open Source requires a copyleft license, while Source‑Available does not.
B) Open Source guarantees the Four Freedoms; Source‑Available may not.
C) Source‑Available software must be free of charge.
D) Open Source projects cannot accept commercial contributions.
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b

Partial preview of the text

Download LFC208 Creating Open Source Projects Practice Exam and more Exams Technology in PDF only on Docsity!

Exam

Question 1. Which of the following best describes the historical origin of the term “open source”? A) The launch of the GNU Project in 1983 B) The 1998 Open Source Initiative (OSI) announcement C) The creation of the Apache License in 1995 D) The release of the Linux kernel in 1991 Answer: B Explanation: The term “open source” was popularized in 1998 when the Open Source Initiative was founded and released the Open Source Definition. Question 2. The “Run” freedom in the Four Freedoms of free software allows a user to: A) Modify the source code for personal use only B) Execute the program for any purpose without restriction C) Distribute the program only under the same license D) Sell the program without providing source code Answer: B Explanation: Freedom 0 (“Run”) permits anyone to use the software for any purpose. Question 3. Which statement correctly distinguishes Open Source from Source‑Available software? A) Open Source requires a copyleft license, while Source‑Available does not. B) Open Source guarantees the Four Freedoms; Source‑Available may not. C) Source‑Available software must be free of charge. D) Open Source projects cannot accept commercial contributions. Answer: B

Exam

Explanation: Open Source must satisfy the Open Source Definition, including the Four Freedoms; Source‑Available simply makes the code viewable without guaranteeing those freedoms. Question 4. According to the Open Source Definition, which of the following is NOT a required criterion? A) No discrimination against fields of endeavor B) Distribution of source code must be free of charge C) Derived works must allow redistribution under the same license D) License must not restrict the use of the software in a specific country Answer: B Explanation: The OSD does not require that source be distributed for free; it may be sold, as long as the license terms remain unchanged. Question 5. Which benefit of open source is most directly linked to “vendor neutrality”? A) Lower total cost of ownership B) Ability to switch between service providers without lock‑in C) Faster bug resolution due to community contributions D) Improved security through peer review Answer: B Explanation: Vendor neutrality means users are not locked into a single supplier; they can choose any vendor that supports the open source project. Question 6. For a developer, which of the following is a primary reputation‑building advantage of contributing to an open source project? A) Receiving direct financial compensation from the project B) Gaining visibility among potential employers and peers

Exam

Question 9. Which foundation is best known for stewarding the Apache License and many Apache projects? A) Linux Foundation B) Eclipse Foundation C) Apache Software Foundation D) Free Software Foundation Answer: C Explanation: The Apache Software Foundation maintains the Apache License and hosts Apache projects. Question 10. Which of the following licenses is considered permissive? A) GPL v B) AGPL v C) MIT License D) LGPL v2. Answer: C Explanation: The MIT License imposes minimal restrictions, allowing reuse in proprietary software. Question 11. Which license requires that any modified version of the software be distributed under the same license, even when used only over a network? A) GPL v B) Apache 2. C) AGPL v D) BSD 3‑Clause Answer: C

Exam

Explanation: The Affero GPL adds a network use clause, forcing source disclosure for SaaS deployments. Question 12. A project wants to allow commercial use without forcing downstream users to open‑source their modifications. Which license is most appropriate? A) GPL v B) Apache 2. C) LGPL v D) MPL 2. Answer: B Explanation: Apache 2.0 is permissive, permitting commercial use and closed‑source derivatives. Question 13. Which practice helps ensure proper license declaration in a repository? A) Adding a LICENSE file only in the root directory B) Including license headers in every source file and a LICENSE file in the root C) Mentioning the license only in the README D) Using a .gitignore file to hide the LICENSE file Answer: B Explanation: Both a top‑level LICENSE file and per‑file headers provide clear, unambiguous licensing information. Question 14. The principle “Inbound = Outbound” in licensing means: A) All contributions must be licensed under the same terms as the project’s outbound license. B) The project can import any code regardless of its license. C) Contributors receive the same rights they give to the project.

Exam

B) Providing a free license for non‑commercial use and a paid license for commercial use C) Using one license for code and another for documentation D) Licensing the project differently for each operating system Answer: B Explanation: Dual licensing often pairs an open source license for community use with a commercial license for enterprises. Question 18. Which of the following is a recommended practice for protecting a project’s trademark? A) Register the trademark in all possible countries before release B) Allow anyone to use the logo without permission C) Include a trademark policy in the repository’s README D) Use the trademark in all derivative works without modification Answer: C Explanation: Publishing a clear trademark policy informs users how the brand may be used while protecting it. Question 19. When selecting a hosting platform for a new open source project, which factor is most critical for community visibility? A) Private repository support B) Integration with CI/CD pipelines C) Presence of a built‑in issue tracker and pull‑request workflow D) Ability to host large binary assets Answer: C Explanation: A visible issue tracker and pull‑request workflow facilitate community contributions and discovery.

Exam

Question 20. In a typical Git repository layout for an open source library, which file usually contains the project’s licensing information? A) .gitignore B) README.md C) LICENSE D) CONTRIBUTING.md Answer: C Explanation: The LICENSE file is the standard location for the full license text. Question 21. Which Git branch protection rule helps prevent accidental force‑pushes to the main development line? A) Require signed commits B) Require status checks to pass before merging C) Disallow force pushes on the protected branch D) Enable branch deletion protection Answer: C Explanation: Disallowing force pushes ensures the protected branch’s history cannot be rewritten unintentionally. Question 22. A well‑crafted README.md should not contain which of the following? A) Project purpose and high‑level description B) Detailed internal architecture diagrams C) Installation instructions D) License badge or reference Answer: B

Exam

D) Plain text readmes Answer: C Explanation: OpenAPI (Swagger) specifications enable tooling to generate interactive API docs automatically. Question 26. Which CI service is natively integrated with GitHub and can run unit tests on each pull request? A) Travis CI B) Jenkins C) GitHub Actions D) CircleCI Answer: C Explanation: GitHub Actions runs workflows directly within GitHub, triggered by pull‑request events. Question 27. A “lint” step in a CI pipeline primarily checks for: A) Runtime performance regressions B) Code style violations and potential bugs C) License compliance of dependencies D) Security vulnerabilities in compiled binaries Answer: B Explanation: Linters analyze source code for style and common errors. Question 28. Automating documentation deployment in CI/CD typically involves: A) Sending the docs to a private email list

Exam

B) Publishing generated HTML to a static site host (e.g., GitHub Pages) after each successful build C) Archiving docs in a zip file attached to each release D) Printing the docs on a local printer for offline review Answer: B Explanation: CI can automatically generate and push documentation to a public static site for easy access. Question 29. Which practice most improves the onboarding experience for first‑time contributors? A) Requiring a lengthy legal agreement before any pull request B) Tagging beginner‑friendly issues as “good first issue” C) Merging all pull requests without review to speed up contributions D) Limiting contributions to only core team members Answer: B Explanation: “Good first issue” labels highlight tasks suited for newcomers, easing entry. Question 30. Rapid, friendly responses to new contributors primarily help to: A) Increase the project’s download count B) Reduce the need for automated testing C) Build a welcoming community and improve contributor retention D) Avoid the need for a code of conduct Answer: C Explanation: Positive early interactions encourage contributors to stay involved.

Exam

Question 34. In a meritocratic governance model, core maintainers are typically chosen based on: A) Random selection each year B) Their contribution history and demonstrated expertise C) Their financial investment in the project D) Their seniority in the organization that started the project Answer: B Explanation: Meritocracy rewards contributors who have shown sustained, high‑quality involvement. Question 35. An “RFC” process in open source projects is used for: A) Reporting security vulnerabilities B) Submitting new feature proposals for community review and discussion C) Requesting financial sponsorships D) Automating release builds Answer: B Explanation: RFC (Request for Comments) allows structured discussion of major changes before implementation. Question 36. Which communication channel is best suited for real‑time troubleshooting with contributors? A) Mailing list archives B) Issue tracker comments C) Chat platform (e.g., Slack, Discord, IRC) D) Annual conference proceedings

Exam

Answer: C Explanation: Chat platforms enable instantaneous interaction, ideal for quick help. Question 37. A well‑written release announcement should include all EXCEPT: A) Summary of new features and bug fixes B) Detailed internal code architecture diagrams C) Upgrade instructions and any breaking changes D) Links to the full changelog and download assets Answer: B Explanation: Release notes focus on user‑relevant changes, not deep internal architecture. Question 38. Which strategy helps attract new users to an open source project? A) Keeping all documentation private B) Publishing tutorials, blog posts, and example use‑cases C) Requiring a paid subscription for the README D) Limiting the number of contributors per month Answer: B Explanation: Educational content lowers the barrier to entry and showcases the project’s value. Question 39. Semantic Versioning (SemVer) specifies that a MAJOR version bump must occur when: A) New backward‑compatible features are added B) Bug fixes are released C) Incompatible API changes are introduced D) Documentation is updated

Exam

Answer: C Explanation: Providing exploit instructions encourages malicious use and is contrary to responsible disclosure. Question 43. When a CVE is assigned to a vulnerability in your project, the first step you should take is: A) Immediately delete the vulnerable code from the repository B) Publish a public advisory with a fix or mitigation plan C) Wait for the CVE database to close the entry automatically D) Release a new license for the project Answer: B Explanation: Publicly disclosing the issue with a fix aligns with responsible vulnerability management. Question 44. Automated dependency scanning tools (e.g., Dependabot, Snyk) help maintain security by: A) Removing all third‑party dependencies from the project B) Detecting known vulnerable versions and suggesting upgrades C) Encrypting the source code repository D) Automatically changing the project’s license to a more permissive one Answer: B Explanation: These tools compare declared dependencies against vulnerability databases and propose safe versions. Question 45. Technical debt in an open source project typically refers to: A) Money owed to contributors for their work B) Accumulated code quality issues that hinder future development

Exam

C) The number of open issues in the tracker D) The total size of the repository in megabytes Answer: B Explanation: Technical debt is the cost of shortcuts or suboptimal code that must be addressed later. Question 46. Reducing the “bus factor” of a project means: A) Increasing the number of buses used for team travel B) Ensuring that knowledge and responsibilities are shared among multiple contributors C) Limiting the number of contributors to a single maintainer D) Automating all manual testing steps Answer: B Explanation: A low bus factor indicates that the project depends heavily on a few individuals; spreading knowledge mitigates risk. Question 47. Which funding model allows community members to make recurring monetary contributions directly to a project’s maintainers? A) Advertising revenue B) GitHub Sponsors C) Patent licensing D) Crowdsourced translation services Answer: B Explanation: GitHub Sponsors enables individuals to set up recurring donations to open source maintainers. Question 48. Balancing commercial interests with community goals often requires:

Exam

A) Number of stars on the repository B) Average issue resolution time C) Size of the codebase in lines of code D) Frequency of releases per year Answer: B Explanation: Issue resolution time measures how quickly the community addresses user- reported problems. Question 52. GrimoireLab is primarily used for: A) Automated code formatting B) Visualizing community analytics and health metrics C) Managing pull‑request merges D) Generating software licenses Answer: B Explanation: GrimoireLab aggregates data from repositories, mailing lists, and issue trackers to produce dashboards. Question 53. Reporting progress to sponsors typically includes: A) A list of all contributors’ personal email addresses B) Metrics such as downloads, active contributors, and roadmap milestones C) The full source code in a proprietary format D) Internal HR policies of the maintainer team Answer: B Explanation: Sponsors are interested in quantitative indicators of project impact and future plans.

Exam

Question 54. Which of the following best describes the “Run” freedom’s limitation under the GPL? A) Users may not run the program on commercial hardware. B) Users must disclose source when they run the program as a service. C) The GPL does not restrict running the program for any purpose. D) Running the program requires a paid license. Answer: C Explanation: The GPL, like other free licenses, imposes no restriction on the purpose of running the software. Question 55. The “no discrimination against fields of endeavor” clause in the OSD ensures that: A) Software cannot be used for military purposes. B) Any user, including commercial enterprises, may use the software. C) Only academic institutions may redistribute the code. D) The software must be free of charge for all users. Answer: B Explanation: The clause forbids restrictions based on the user’s field, such as business or government. Question 56. When a project’s README includes a “Badge” that shows “Build Passing”, what is the primary purpose of that badge? A) To display the project’s license type B) To indicate the current status of the CI build to viewers C) To list the number of contributors D) To provide a link to the project’s funding page Answer: B