

















































































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 “ethics” in the context of software development? A) The set of legal statutes governing code distribution B) Personal opinions about programming style C) Principles that guide right‑and‑wrong behavior in creating and using software D) Market trends influencing technology choices Answer: C Explanation: Ethics refers to moral principles that help developers decide what is right or wrong in their work, distinct from law or personal preference. Question 2. How does “law” differ from “ethics” in open‑source development? A) Law is optional, ethics is mandatory B) Law is enforceable by courts, ethics is guided by professional standards C) Law governs only proprietary software, ethics only open source D) Law and ethics are identical concepts Answer: B Explanation: Laws are statutory rules enforceable by legal systems, while ethics are normative guidelines that may not have legal force. Question 3. Which ethical theory evaluates actions based on their outcomes? A) Deontology B) Consequentialism C) Virtue Ethics D) Relativism Answer: B
Explanation: Consequentialism judges the morality of actions by the results they produce, focusing on overall good or harm. Question 4. The Open Source Definition requires that a license must allow: A) Only binary redistribution B) Modification of source code for private use only C) Free redistribution of the software without discrimination D) Mandatory fees for commercial use Answer: C Explanation: One of the ten OSD criteria is that the license must permit free redistribution of the software to any party. Question 5. The “commons” in open‑source terminology refers to: A) Proprietary codebases owned by corporations B) Shared resources that are collectively managed and freely available C) Government‑controlled software libraries D) Private repositories with restricted access Answer: B Explanation: The commons denotes communal resources—like open‑source code—that are collectively maintained and openly accessible. Question 6. Which principle is NOT part of the developer’s ethical ethos? A) Transparency in code changes B) Honesty about limitations C) Concealing security flaws to protect reputation D) Accountability for published work
D. It limits the number of contributors Answer: B Explanation: Too many licenses make it hard to combine code, threatening the goal of shared, reusable software. Question 10. Software Composition Analysis (SCA) tools help developers meet ethical obligations by: A. Generating revenue reports B. Identifying license conflicts and vulnerable components C. Encrypting source code automatically D. Removing all third‑party dependencies Answer: B Explanation: SCA scans detect license incompatibilities and security issues, supporting compliance and responsible use of third‑party code. Question 11. Before signing a Contributor License Agreement (CLA), an ethical contributor should: A. Ignore the terms if they are lengthy B. Verify that the CLA does not relinquish all rights to the project owner without compensation C. Assume all CLAs are standard and non‑problematic D. Sign without reading to expedite contribution Answer: B Explanation: Contributors must understand how their rights are transferred to avoid unintentionally surrendering control over their work. Question 12. When incorporating third‑party code with an unclear license, the ethical action is to:
A. Use it anyway, assuming it is open source B. Remove the code or obtain clear permission before inclusion C. Claim ownership of the code to avoid licensing issues D. Hide the source of the code in documentation Answer: B Explanation: Ethical practice requires clarity on licensing; ambiguous code should be excluded or properly licensed. Question 13. Proper attribution in open‑source projects is important because: A. It increases project popularity B. It fulfills legal requirements only C. It respects the moral rights of original creators D. It allows authors to charge fees later Answer: C Explanation: Giving credit acknowledges contributors’ effort and upholds the ethical principle of respect for authorship. Question 14. “Code theft” in an open‑source context is best described as: A. Using a library under its license terms B. Copying code without attribution or license compliance C. Forking a repository with permission D. Refactoring code for personal use only Answer: B Explanation: Taking code and presenting it as one’s own without proper attribution or licensing violates ethical norms.
Question 18. Ethical encouragement of under‑represented groups can include: A. Requiring them to work unpaid overtime B. Providing mentorship programs and inclusive documentation C. Excluding them from decision‑making committees D. Publicly highlighting only their mistakes Answer: B Explanation: Supportive structures like mentorship and accessible docs promote equitable participation. Question 19. In a “benevolent dictator” governance model, the ethical risk is: A. Too many contributors can join B. Centralized power may lead to decisions that ignore community input C. No one can merge pull requests D. The project cannot accept external funding Answer: B Explanation: Concentrated authority can marginalize community voices, raising concerns about fairness and accountability. Question 20. Forking a project is ethically justified when: A. The original maintainers are unresponsive to critical security fixes B. The forker wants to claim credit for the original work C. The intention is to sabotage the original project D. The fork will be kept private and never released Answer: A
Explanation: Forking to address urgent issues or preserve the project’s health aligns with the commons’ interests. Question 21. Responsible disclosure of a security vulnerability requires: A. Publicly posting the exploit immediately B. Notifying the maintainers first and giving reasonable time to fix it C. Selling the vulnerability to the highest bidder D. Ignoring the vulnerability if it is not critical Answer: B Explanation: Ethical disclosure balances user safety with giving maintainers a chance to remediate before public exposure. Question 22. A “white‑hat” hacker differs from a “black‑hat” hacker because: A. White‑hats seek profit from vulnerabilities, black‑hats do not B. White‑hats report findings responsibly, black‑hats exploit them maliciously C. Both act illegally, but white‑hats are more skilled D. There is no ethical difference between them Answer: B Explanation: White‑hat activities aim to improve security, whereas black‑hat actions intend harm or personal gain. Question 23. An open‑source maintainer’s ethical duty when a critical bug is discovered is to: A. Hide the bug to avoid bad publicity B. Immediately patch or communicate a mitigation plan to users C. Delete the repository to erase the issue
C. Only proprietary software D. The absence of version control systems Answer: B Explanation: Attackers insert malicious code into widely used dependencies, leveraging the trust in open‑source supply chains. Question 27. A Software Bill of Materials (SBOM) helps address ethical supply‑chain risks by: A. Encrypting all source files B. Providing a transparent inventory of all components and their origins C. Automatically fixing all vulnerabilities D. Removing third‑party libraries entirely Answer: B Explanation: SBOMs increase provenance visibility, enabling users to assess and mitigate risks. Question 28. Dual‑use technology in open source is ethically problematic because: A. It always improves security B. It can be repurposed for harmful activities like surveillance or weapons C. It reduces development costs D. It eliminates the need for licensing Answer: B Explanation: When software can be used for both beneficial and malicious purposes, developers must consider potential misuse. Question 29. Contributor Covenant‑style licenses that restrict usage are: A. Fully compatible with all open‑source definitions
B. Generally considered “source‑available” rather than true open source C. Mandatory for all Apache projects D. Required by the OSI for security tools Answer: B Explanation: Usage‑restriction clauses conflict with the OSI’s definition of open source, which forbids discrimination against fields of endeavor. Question 30. An ethical concern specific to releasing open‑source ML models is: A. The model’s file size B. Potential bias in training data leading to unfair outcomes C. The programming language used to implement the model D. The color of the project logo Answer: B Explanation: Biased data can propagate discrimination, making transparency and bias mitigation essential. Question 31. Releasing a powerful language model without safeguards may be unethical because: A. It reduces the model’s performance B. It enables malicious actors to generate disinformation or automated attacks C. It increases the model’s market value D. It forces users to pay for API access Answer: B Explanation: Unrestricted access to potent AI can facilitate harmful activities, violating principles of beneficence.
Explanation: Dominance by a single corporate agenda can undermine community governance and the commons. Question 35. The “embrace, extend, and extinguish” (EEE) strategy is ethically problematic because: A. It encourages open standards adoption B. It leverages open‑source to lock out competition and control the ecosystem C. It reduces software costs for users D. It promotes community collaboration Answer: B Explanation: EEE exploits open‑source contributions to create proprietary lock‑in, violating openness principles. Question 36. Applying deontological ethics to a license violation would focus on: A. The overall consequences for the community B. Whether the act of violating the license itself is intrinsically wrong C. The profit generated from the violation D. The popularity of the project Answer: B Explanation: Deontology judges actions based on adherence to moral rules, irrespective of outcomes. Question 37. Using consequentialist reasoning, a maintainer might decide to: A. Ignore a minor license breach because fixing it would delay a critical security patch B. Enforce every license term strictly, regardless of impact C. Refuse to accept any contributions from new developers
D. Publish all code without any license attached Answer: A Explanation: If the overall benefit (security) outweighs the minor breach, a consequentialist may accept the trade‑off. Question 38. A historical turning point illustrating ethical conflict in FOSS was the creation of the “Linux‑kernel mailing list” split in 2005 over: A. Disagreements about code formatting style B. Governance and decision‑making transparency concerns C. The color scheme of the website D. The choice of programming language Answer: B Explanation: The split highlighted tensions between centralized authority and community‑driven governance. Question 39. When documenting an ethical decision, best practice includes: A. Keeping the rationale private to avoid criticism B. Providing a clear, written record of the reasoning, stakeholders consulted, and outcomes C. Using vague language to prevent legal liability D. Only summarizing the final decision without context Answer: B Explanation: Transparent documentation fosters accountability and future learning. Question 40. An ethical framework for evaluating a new open‑source feature should first consider: A. The number of stars the repository has
Question 43. Which of the following actions exemplifies “accountability” for an open‑source maintainer? A. Ignoring user bug reports B. Regularly publishing release notes that explain changes and known issues C. Deleting all issue comments after they are resolved D. Refusing to discuss design decisions publicly Answer: B Explanation: Transparent communication about changes demonstrates responsibility to the community. Question 44. The ethical concept of “virtue ethics” would encourage a developer to cultivate which trait? A. Greed for maximizing donations B. Integrity in reporting bugs and crediting contributors C. Indifference toward community feedback D. Secrecy about security flaws Answer: B Explanation: Virtue ethics emphasizes moral character traits like honesty and integrity. Question 45. A “license compatibility matrix” is ethically useful because it: A. Allows developers to ignore licensing rules B. Helps identify which licenses can be combined without conflict, preventing inadvertent violations C. Forces all projects to adopt the same license D. Reduces the need for documentation Answer: B
Explanation: Mapping compatibility supports responsible reuse of code across projects. Question 46. When a contributor discovers that their code contains a security flaw after merging, the ethical next step is to: A. Delete the commit history to hide the flaw B. Open an issue, disclose the vulnerability, and work with maintainers to fix it C. Blame the reviewer for not catching it D. Keep the flaw secret to avoid embarrassment Answer: B Explanation: Prompt, honest disclosure mitigates risk and upholds community trust. Question 47. An open‑source project that requires contributors to sign a CLA that transfers all rights to a corporation may be ethically questionable because: A. It improves code quality B. It can concentrate ownership and limit contributors’ control over their work C. It speeds up releases D. It encourages more contributions Answer: B Explanation: Overly broad CLAs can undermine the spirit of shared ownership in open source. Question 48. Which of the following best describes “ethical hacking” in the open‑source realm? A. Writing malware and distributing it anonymously B. Performing penetration testing with permission and reporting findings responsibly C. Exploiting zero‑day vulnerabilities for personal gain D. Ignoring security best practices to save time
B. Users can understand how decisions are made, reducing hidden biases and fostering trust C. It reduces the size of the codebase D. It ensures the model is open‑source Answer: B Explanation: Transparency about model behavior aligns with ethical obligations to prevent unfair outcomes. Question 52. Which scenario illustrates a conflict of interest that should be disclosed in an open‑source project? A. A maintainer receiving payment from a company whose product depends on the project B. A contributor using a free text editor C. A user reporting a bug via email D. A developer writing documentation in Markdown Answer: A Explanation: Financial ties may bias decisions and must be openly disclosed to maintain trust. Question 53. An ethical response to a community member’s harassment claim is to: A. Ignore the claim to avoid drama B. Investigate promptly, follow the CoC’s process, and apply consistent sanctions if warranted C. Publicly shame the accused without evidence D. Delete the claim from the issue tracker Answer: B Explanation: Fair, transparent handling protects community safety and upholds the CoC. Question 54. The “principle of least privilege” in software design is ethically relevant because:
A. It maximizes system performance B. It limits potential damage from compromised components, protecting users C. It makes code harder to read D. It forces developers to use more libraries Answer: B Explanation: Reducing unnecessary access mitigates security risks, aligning with the duty to protect users. Question 55. Which licensing strategy best supports a “dual‑licensing” business model while remaining ethically consistent with open‑source ideals? A. Using GPL for community version and a proprietary license for commercial customers, with clear communication of terms B. Secretly embedding hidden clauses in the license C. Requiring payment for any use, open or closed source D. Changing the license retroactively without notice Answer: A Explanation: Transparent dual licensing respects the community while allowing commercial sustainability. Question 56. An open‑source project’s decision to refuse contributions that embed tracking code is an example of: A. License incompatibility B. Ethical stance on user privacy C. Technical debt reduction D. Marketing strategy Answer: B