Docsity

LFC207 Collaborating Effectively with Open Source Projects Practice Exam, Exams of Technology

Toggle sidebar
bg1
LFC207 Collaborating Effectively with Open
Source Projects Practice Exam
**Question 1.** Which event is considered the catalyst for the modern open‑source
movement?
A) Release of Windows 95
B) Formation of the Free Software Foundation
C) Launch of the Apache HTTP Server
D) Creation of the Open Source Initiative
Answer: D
Explanation: The Open Source Initiative (OSI) was founded in 1998 to promote the term “open
source” and certify licenses, sparking widespread industry adoption.
**Question 2.** The Open Source Definition (OSD) contains how many criteria that a license
must meet?
A) 5
B) 8
C) 10
D) 12
Answer: C
Explanation: The OSD lists ten specific criteria that define an open‑source license.
**Question 3.** Which of the following best describes the “bus factor” in an open‑source
project?
A) Number of contributors who can merge code
B) Number of developers needed to keep the project alive if a key person leaves
C) Ratio of issues closed to issues opened
D) Frequency of releases per year
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 LFC207 Collaborating Effectively with Open Source Projects Practice Exam and more Exams Technology in PDF only on Docsity!

Source Projects Practice Exam

Question 1. Which event is considered the catalyst for the modern open‑source movement? A) Release of Windows 95 B) Formation of the Free Software Foundation C) Launch of the Apache HTTP Server D) Creation of the Open Source Initiative Answer: D Explanation: The Open Source Initiative (OSI) was founded in 1998 to promote the term “open source” and certify licenses, sparking widespread industry adoption. Question 2. The Open Source Definition (OSD) contains how many criteria that a license must meet? A) 5 B) 8 C) 10 D) 12 Answer: C Explanation: The OSD lists ten specific criteria that define an open‑source license. Question 3. Which of the following best describes the “bus factor” in an open‑source project? A) Number of contributors who can merge code B) Number of developers needed to keep the project alive if a key person leaves C) Ratio of issues closed to issues opened D) Frequency of releases per year Answer: B

Source Projects Practice Exam

Explanation: The bus factor measures project resilience; a low number means loss of a few people could cripple the project. Question 4. A “Code of Conduct” (CoC) primarily aims to: A) Define licensing terms for contributions B) Set technical coding standards C) Promote inclusive and respectful community behavior D) Outline the project’s roadmap Answer: C Explanation: A CoC establishes behavioral expectations to foster a welcoming environment. Question 5. Which license is classified as permissive? A) GPL‑3. B) AGPL‑3. C) MIT D) LGPL‑2. Answer: C Explanation: The MIT license imposes minimal restrictions, allowing reuse with attribution. Question 6. Under the GPL‑2.0 license, a developer who distributes a modified binary must: A) Pay a royalty to the original author B) Release the source code of the modifications under the same license C) Only keep the original source closed D) Obtain a commercial license from the original author Answer: B

Source Projects Practice Exam

C) Dual‑licensed MIT/GPL‑3. D) Any license the author chooses Answer: B Explanation: GPL’s strong copyleft overrides the permissive MIT license, requiring the combined work to be GPL‑3.0. Question 10. In Git, the command git rebase is primarily used to: A) Merge two unrelated histories B) Apply commits from one branch onto another, creating a linear history C) Delete a branch permanently D) List remote repositories Answer: B Explanation: Rebase reapplies commits on top of another base, producing a cleaner, linear commit log. Question 11. Which Git workflow step creates a copy of the upstream repository under your own account for contribution? A) Clone B) Fork C) Pull D) Merge Answer: B Explanation: Forking creates a personal copy on the hosting service, enabling isolated changes and pull requests. Question 12. An issue that is labeled “good first issue” usually indicates:

Source Projects Practice Exam

A) The issue is high priority for the next release B) The issue is simple, well‑defined, and suitable for newcomers C) The issue has already been assigned to a senior developer D) The issue requires a full redesign of the codebase Answer: B Explanation: “Good first issue” tags help new contributors find manageable tasks to start with. Question 13. In a pull request (PR), the term “CI checks” refers to: A) Community Interaction checks B) Continuous Integration tests that automatically run on the code C) Code Inspection by maintainers D) Compatibility Index verification Answer: B Explanation: CI checks automatically build and test the proposed changes to ensure they do not break the project. Question 14. Which of the following is an appropriate commit message format for a conventional commit? A) “Fixed bug” B) “feat: add user authentication module” C) “Update” D) “Changes made on 2024‑ 03 ‑ 01 ” Answer: B Explanation: Conventional commits start with a type (e.g., feat, fix) followed by a concise description.

Source Projects Practice Exam

Explanation: The BDFL model places ultimate authority in one respected leader while still encouraging community input. Question 18. The primary purpose of a “CONTRIBUTING.md” file is to: A) List all licensed software used by the project B) Provide guidelines on how to contribute, including coding standards and PR process C) Summarize the project’s roadmap D) Document the project’s financial sponsors Answer: B Explanation: CONTRIBUTING.md informs potential contributors about the expected workflow and standards. Question 19. Which of the following best describes “license compatibility”? A) Two licenses that can be used together without violating any terms B) Licenses that share the same author C) Licenses that have identical wording D) Licenses that are both permissive Answer: A Explanation: Compatibility means code under different licenses can be combined while respecting each license’s obligations. Question 20. When reporting a bug, which piece of information is least essential? A) Steps to reproduce the issue B) Expected vs. actual behavior C) The contributor’s personal email address D) Environment details (OS, version)

Source Projects Practice Exam

Answer: C Explanation: Personal contact details are unnecessary for the technical description of a bug. Question 21. In a project that follows a “do‑ocracy” governance model, decision‑making is based on: A) Formal votes by all members B) The authority of a single leader C) Individuals taking action; those who do the work decide the direction D) Random selection of contributors Answer: C Explanation: Do‑ocracy empowers those who actively contribute to influence project decisions. Question 22. Which of the following is a typical responsibility of a “release manager”? A) Writing new features for the next version B) Coordinating the packaging, testing, and publishing of a new release C) Managing the project’s legal affairs D) Moderating community chat rooms Answer: B Explanation: Release managers oversee the end‑to‑end process of delivering a stable version. Question 23. The term “viral” in the context of open‑source licensing most closely refers to: A) A license that spreads automatically to all dependent projects B) A license that requires a fee for commercial use C) A license that forces derivative works to adopt the same license (strong copyleft) D) A license that is popular on social media

Source Projects Practice Exam

C) Agreeing to adopt the project’s coding style guide D) Waiving any future patent claims Answer: B Explanation: A CLA gives the project the rights needed to use and relicense contributions while the contributor retains copyright. Question 27. Which of the following is a common metric used to assess an open‑source project’s health? A. Number of lines of code B. Frequency of commits and active contributors C. Size of the project’s logo file D. Number of proprietary forks Answer: B Explanation: Regular commits and a diverse contributor base indicate ongoing maintenance and community interest. Question 28. In Git, the command git cherry-pick <commit> is used to: A. Merge two branches automatically B. Apply a specific commit from another branch onto the current branch C. Delete a commit from history D. Create a new branch from a tag Answer: B Explanation: Cherry‑pick copies a single commit onto the current HEAD without merging full branches. Question 29. Which of the following statements about the Apache 2.0 license is true?

Source Projects Practice Exam

A. It requires that derivative works be licensed under Apache 2.0 only. B. It includes an explicit patent grant to downstream users. C. It disallows commercial use of the software. D. It mandates that all contributors sign a CLA. Answer: B Explanation: Apache 2.0 provides a patent license from contributors to users, reducing patent risk. Question 30. A “roadmap” in an open‑source project typically outlines: A. The list of all open issues B. Planned features, milestones, and release timelines C. The legal structure of the foundation D. The financial budget for the year Answer: B Explanation: Roadmaps communicate future development goals and expected release dates. Question 31. Which of the following describes the “meritocracy” governance model? A. Decisions are made by the most senior contributor only. B. Contributors gain influence based on the quality and quantity of their contributions. C. All contributors have equal voting power regardless of activity. D. Governance is outsourced to a commercial entity. Answer: B Explanation: In a meritocracy, reputation and influence are earned through demonstrated contributions. Question 32. When a project adopts a “dual‑license” strategy, it means:

Source Projects Practice Exam

Question 35. Which of the following best explains “continuous integration” (CI) in an open‑source workflow? A. Manual testing of each pull request by maintainers. B. Automated building and testing of code changes on each commit or PR. C. Continuous deployment of every commit to production. D. Weekly code reviews by the community. Answer: B Explanation: CI automatically verifies that new changes compile and pass tests, catching regressions early. Question 36. A “trademark” in open‑source projects typically protects: A. The source code itself. B. The project’s name, logo, or brand identifiers. C. The licensing terms. D. Individual contributors’ usernames. Answer: B Explanation: Trademarks safeguard branding elements from misuse or confusion. Question 37. When a contributor wants to submit a change that affects the project’s licensing, the appropriate first step is to: A. Directly merge the change without discussion. B. Open an issue or discussion thread to obtain maintainer approval. C. Submit a pull request and hope for the best. D. Fork the repository and never inform the original project. Answer: B

Source Projects Practice Exam

Explanation: Licensing changes impact the whole project and require community consensus before proceeding. Question 38. Which of the following is a typical sign of contributor burnout? A. Increased number of commits per week. B. Frequent absence from community discussions and declining code contributions. C. Rapid adoption of new features. D. Expanded documentation contributions. Answer: B Explanation: Burnout manifests as reduced participation and disengagement from the community. Question 39. In a project that uses “semantic versioning,” a change that introduces backward‑compatible functionality should increment which part of the version number? A. Major version B. Minor version C. Patch version D. Build metadata only Answer: B Explanation: Semantic versioning increments the minor version for new, backward‑compatible features. Question 40. Which of the following best describes a “sponsor” in the context of open‑source sustainability? A. An individual who writes code for the project. B. An organization that provides financial or resource support to maintain the project. C. A user who files bug reports.

Source Projects Practice Exam

C. MRs can only be used for private repositories. D. PRs require code review, whereas MRs do not. Answer: B Explanation: MR and PR are platform‑specific terms for the same workflow of proposing and reviewing changes. Question 44. Which of the following actions is required when re‑licensing a project from MIT to GPL‑3.0? A. Obtaining permission from every past contributor. B. Changing the code without any notice. C. Adding a new license file and updating headers, while ensuring contributors agree or have signed a CLA that permits re‑licensing. D. Deleting the old MIT license from the repository history. Answer: C Explanation: Re‑licensing needs proper consent or a CLA that grants the right to change the license; the new license must be clearly added. Question 45. The term “upstream” in a Git workflow refers to: A. The remote repository from which you originally cloned. B. The local branch you are currently on. C. The directory where patches are stored. D. The server’s backup location. Answer: A Explanation: “Upstream” denotes the original remote repository that receives contributions. Question 46. Which of the following is a key benefit of using “code reviews” in open‑source projects?

Source Projects Practice Exam

A. Reducing the number of contributors needed. B. Ensuring code quality, consistency, and knowledge sharing. C. Automatically fixing all bugs. D. Eliminating the need for documentation. Answer: B Explanation: Reviews catch defects, enforce standards, and spread understanding among the community. Question 47. A “patent grant” clause in an open‑source license primarily protects: A. The project’s trademark. B. Contributors from being sued for patent infringement when using the software. C. The author’s right to sell the software commercially. D. The license’s compatibility with GPL. Answer: B Explanation: Patent clauses assure users that contributors cannot later claim patent infringement for the licensed code. Question 48. Which of the following is true about “forking” a project on a platform like GitHub? A. It creates a new independent project that cannot interact with the original. B. It automatically copies all open issues and pull requests. C. It allows you to propose changes back to the original via pull requests. D. It requires administrative rights on the original repository. Answer: C Explanation: Forks enable contributors to develop changes and submit them back to the upstream project.

Source Projects Practice Exam

Explanation: Maintainers oversee day‑to‑day project health, including code review and releases. Question 52. Which of the following is a common reason for a project to adopt a “code of conduct” after an incident of harassment? A. To increase the number of contributors. B. To formalize expectations for respectful behavior and provide enforcement mechanisms. C. To change the project’s license. D. To replace the need for a governance model. Answer: B Explanation: A CoC addresses community behavior and outlines processes for handling violations. Question 53. In the context of open‑source contributions, “triage” refers to: A. Automatically merging all pull requests. B. Prioritizing and categorizing incoming issues and pull requests for further action. C. Deleting old branches. D. Conducting security audits. Answer: B Explanation: Triage helps the team decide which items need immediate attention, assignment, or closure. Question 54. Which license explicitly allows linking with proprietary software without imposing copyleft on the proprietary code? A. GPL‑2. B. LGPL‑2. C. AGPL‑3.

Source Projects Practice Exam

D. MPL‑2.

Answer: B Explanation: The LGPL permits linking its libraries with proprietary programs while keeping the LGPL code open. Question 55. Which of the following is a typical characteristic of a “community‑driven” open‑source project? A. Decisions made solely by a single corporate sponsor. B. Transparent discussion forums, open issue trackers, and merit‑based contribution acceptance. C. Closed source code with paid licenses. D. No public roadmap. Answer: B Explanation: Community‑driven projects rely on open communication and meritocratic contribution processes. Question 56. When a contributor uses the “git revert” command, they are: A. Deleting the commit from history. B. Creating a new commit that undoes the changes introduced by a previous commit. C. Resetting the branch to an earlier state. D. Squashing multiple commits into one. Answer: B Explanation: git revert adds a compensating commit, preserving history while nullifying prior changes. Question 57. Which of the following best illustrates “license incompatibility”?