
















































































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 defines Open Source Software (OSS)? A) Software whose source code is proprietary but freely distributed. B) Software whose source code is publicly available and can be modified and shared. C) Software that is free of charge but closed source. D) Software developed exclusively by a single company. Answer: B Explanation: OSS requires that the source code be openly accessible, allowing anyone to view, modify, and redistribute it. Question 2. The “Four Freedoms” of free software include the freedom to run the program for any purpose. Which freedom does this describe? A) Freedom 0 B) Freedom 1 C) Freedom 2 D) Freedom 3 Answer: A Explanation: Freedom 0 is the right to use the software for any purpose without restriction. Question 3. Which historical event is considered a turning point that popularized the term “open source”? A) Release of Linux kernel in 1991 B) Publication of the GNU Manifesto in 1985 C) The “Open Source Definition” by the OSI in 1998 D) Creation of the Apache HTTP Server in 1995 Answer: C
Explanation: In 1998, the OSI’s Open Source Definition formalized the term and helped mainstream open source. Question 4. Which benefit of OSS directly reduces vendor lock‑in? A) Lower licensing costs B) Access to source code C) Community support D) Automatic security patches Answer: B Explanation: Having the source code means an organization can modify or replace components without depending on a single vendor. Question 5. Which of these projects is NOT typically cited as part of the core internet infrastructure? A) Linux B) Apache HTTP Server C) Kubernetes D) Microsoft Office Answer: D Explanation: Linux, Apache, and Kubernetes are foundational OSS components; Microsoft Office is proprietary. Question 6. An organization that wants to both consume and contribute to OSS should first establish which function? A) Marketing Department B. Legal Department only
B) Granting influence based on the quality and quantity of contributions. C) Voting on every decision by all users. D) Randomly selecting maintainers. Answer: B Explanation: Meritocratic governance rewards contributors who consistently provide valuable work. Question 10. Which of the following is NOT a typical way to contribute to an OSS project? A) Writing code B) Updating documentation C) Purchasing a license key D) Reporting bugs Answer: C Explanation: Purchasing a license key is irrelevant to OSS contribution; code, docs, and bug reports are common contributions. Question 11. A Contributor License Agreement (CLA) is used to: A) Transfer copyright ownership to the project. B) Grant the project a license to use the contributor’s contributions. C. Prevent contributors from forking the project. D) Ensure contributors receive royalties. Answer: B Explanation: A CLA secures a legal permission for the project to use, modify, and distribute the contributed code. Question 12. The Developer Certificate of Origin (DCO) requires contributors to:
A. Sign a legal contract. B. Certify that they have the right to submit the code. C. Pay a contribution fee. D. Use a specific IDE. Answer: B Explanation: The DCO is a lightweight statement that the contributor has the authority to submit the patch. Question 13. Which Git command creates a local copy of a remote repository? A) git push B) git clone C) git pull D) git fork Answer: B Explanation: git clone copies the entire repository (including history) to the local machine. Question 14. In Git, a “branch” is primarily used to: A) Store binary assets. B) Isolate development work without affecting the main code line. C. Compress repository size. D. Merge multiple repositories. Answer: B Explanation: Branches let developers work on features or fixes independently before merging. Question 15. Which hosting platform introduced the “pull request” workflow?
Question 18. Which CI tool is commonly used in open source projects hosted on GitHub? A) Jenkins B) Travis CI C) CircleCI D) All of the above Answer: D Explanation: All listed tools integrate with GitHub and are widely adopted in OSS CI pipelines. Question 19. In the context of CD, “continuous delivery” differs from “continuous deployment” because: A) Delivery stops after automated testing; deployment requires manual approval. B. Delivery includes manual testing; deployment is fully automated. C) Delivery only builds binaries; deployment only runs tests. D) There is no difference. Answer: A Explanation: Continuous delivery produces a release artifact ready for deployment, while continuous deployment pushes it automatically to production. Question 20. Which license is considered “permissive”? A) GPLv B) LGPL C) MIT D. AGPL Answer: C Explanation: The MIT license imposes minimal restrictions, allowing proprietary reuse.
Question 21. A “copyleft” license requires: A) That derivative works be released under the same license. B. That the code be kept private. C) That users pay a royalty. D) That the software be used only for non‑commercial purposes. Answer: A Explanation: Copyleft ensures that modifications remain open source under the same terms. Question 22. Adding a copyright notice to source files is important because: A) It prevents anyone from reading the code. B) It identifies the original author and establishes ownership. C) It makes the code run faster. D) It automatically grants a patent. Answer: B Explanation: Copyright notices clarify authorship and help enforce licensing terms. Question 23. SPDX is primarily used to: A. Create software bills of materials (SBOMs). B) Encrypt source code. C) Manage CI pipelines. D) Host repositories. Answer: A Explanation: SPDX standardizes the representation of licensing and component metadata for SBOMs.
Explanation: Inclusive communities benefit from broader ideas, leading to better software and healthier ecosystems. Question 27. Which of the following is a metric used by CHAOSS to assess community health? A) Number of lines of code. B) Time‑to‑first‑response for issues. C. CPU utilization of the CI server. D) Size of the binary distribution. Answer: B Explanation: CHAOSS tracks interaction metrics like response time to gauge contributor engagement. Question 28. Which of these is NOT a typical responsibility of an OSPO? A) Managing open source licenses. B) Coordinating contributions to external projects. C. Designing hardware schematics. D) Defining internal open source policies. Answer: C Explanation: OSPOs focus on software governance, not hardware design. Question 29. The “fork” action on GitHub creates: A) A new branch in the same repository. B) A copy of the repository under the user’s account for independent development. C) An automated CI pipeline. D. A merge conflict.
Answer: B Explanation: Forking clones the repo to the user’s namespace, allowing separate changes. Question 30. Which license requires that any network‑use of the software also make the source available? A) MIT B) Apache 2. C) AGPL D. BSD 3‑Clause Answer: C Explanation: The Affero GPL (AGPL) extends copyleft to software accessed over a network. Question 31. In Git, what does the command git rebase accomplish? A) Merges two branches without a merge commit. B. Rewrites commit history to place changes on top of another base. C) Deletes remote branches. D) Creates a tag. Answer: B Explanation: git rebase reapplies commits onto a new base, creating a linear history. Question 32. Which of the following best describes a “maintainer” in an OSS project? A) The sole author of all code. B) A person responsible for reviewing contributions and guiding project direction. C) A user who only reports bugs. D) A developer who works on a proprietary fork.
Explanation: Public access to source code is essential for open source compliance. Question 36. When a project adopts a “dual‑license” model, it means: A) The code is released under two different licenses, typically one permissive and one copyleft. B) The project has no license. C) Contributors must sign two CLAs. D) The license changes every year. Answer: A Explanation: Dual licensing offers users a choice between two licensing terms. Question 37. Which of the following is NOT an advantage of using CI in OSS projects? A) Faster feedback on code quality. B) Reduced integration bugs. C) Automatic license compliance checking. D. Guaranteeing zero security vulnerabilities. Answer: D Explanation: CI improves detection but cannot guarantee the absence of all vulnerabilities. Question 38. The SPDX identifier for the Apache License 2.0 is: A) Apache-2. B) Apache C) Apache- 2 D) AP2. Answer: A Explanation: SPDX uses the standardized string “Apache-2.0”.
Question 39. Which tool is specifically designed to generate SBOMs for container images? A) FOSSology B) Syft C. Jenkins D) GitLab CI Answer: B Explanation: Syft scans container images and produces SPDX‑compatible SBOMs. Question 40. In community governance, a “code of conduct” primarily aims to: A) Define coding style guidelines. B) Establish behavioral expectations to foster an inclusive environment. C) List required programming languages. D) Set licensing fees. Answer: B Explanation: A code of conduct outlines acceptable behavior to ensure respectful participation. Question 41. Which of the following is a characteristic of a “permissive” license? A) Requires derivatives to be open source. B) Allows proprietary use of the code. C) Enforces contribution back to the upstream project. D) Prohibits commercial use. Answer: B Explanation: Permissive licenses (e.g., MIT, BSD) let others use the code in proprietary products.
Question 45. A “signed commit” in Git provides: A) Automatic merging. B) Verification of the author’s identity using GPG keys. C) Faster cloning. D) License enforcement. Answer: B Explanation: GPG‑signed commits ensure the commit originates from a trusted developer. Question 46. Which of the following is NOT a typical artifact of a CI pipeline? A) Build logs. B) Test reports. C. Binary releases. D) License negotiation documents. Answer: D Explanation: CI focuses on building, testing, and reporting, not legal negotiations. Question 47. In the context of OSS, “fork‑and‑pull” refers to: A) Creating a fork, making changes, and submitting a pull request back to the original project. B. Forking a repository and never interacting again. C) Pulling changes without forking. D) Merging two unrelated projects. Answer: A Explanation: This workflow allows contributors to propose improvements while keeping the original repo intact.
Question 48. Which license includes an explicit patent grant to downstream users? A) GPLv B) Apache 2. C. BSD 2‑Clause D) MIT Answer: B Explanation: Apache 2.0 contains a patent‑grant clause protecting users from patent claims. Question 49. Which of the following is a key metric for measuring CI effectiveness? A) Number of lines of code per commit. B) Mean time to restore (MTTR) after a broken build. C) Number of emojis in commit messages. D) Size of the repository on disk. Answer: B Explanation: MTTR indicates how quickly a broken build is fixed, reflecting CI responsiveness. Question 50. The term “semantic versioning” (SemVer) dictates that a version number is expressed as: A) major.minor.patch B) year.month.day C) build.revision D) alpha.beta.gamma Answer: A Explanation: SemVer uses MAJOR.MINOR.PATCH to convey compatibility impact.
Explanation: Tags provide immutable references to release points. Question 54. Which of the following best describes “dependency scanning” in CI? A. Counting the number of files in the repo. B) Analyzing third‑party libraries for known vulnerabilities and license issues. C) Measuring code coverage. D. Generating documentation. Answer: B Explanation: Dependency scanning checks external components for security and compliance risks. Question 55. The “Linux Foundation” primarily supports open source by: A) Selling proprietary Linux editions. B) Providing training, certifications, and project hosting. C. Requiring all code to be written in C. D) Mandating commercial licenses. Answer: B Explanation: The Linux Foundation offers resources, governance, and infrastructure for OSS. Question 56. Which of the following is NOT a typical role in an OSS community? A) Maintainer B) Contributor C) End‑user D. Patent attorney (as a core development role) Answer: D
Explanation: Patent attorneys are not usually involved in day‑to‑day code development. Question 57. Which of these is a benefit of using a permissive license for a startup? A) Guarantees that all contributors will stay forever. B) Allows the startup to combine OSS code with proprietary components without releasing source. C. Forces all downstream users to open source their changes. D) Prevents any commercial use. Answer: B Explanation: Permissive licenses give flexibility to keep parts of the product closed. Question 58. Which tool is commonly used for automating release notes generation from Git commit messages? A) SonarQube B) Release Drafter C. FOSSology D) Gerrit Answer: B Explanation: Release Drafter creates draft release notes based on conventional commit messages. Question 59. In the context of OSS, “upstream contribution” means: A) Submitting patches to the original project that your product depends on. B) Creating a private fork only for internal use. C. Sending money to the project maintainers. D) Removing features from the upstream code.