title: Week 5 — Quiz — ← Home · Student guide · Schedule · Weeks · Pseudocode · Glossary
Mini-Quiz (6–8 min) — Week 5: Intellectual Property, Digital Dilemmas, Pseudocode, Unit 1 Review
Q1. What is intellectual property? Give an example related to digital content.
Answer
Intellectual property refers to creations of the mind, such as inventions, art, music, or software, that are protected by law. Example: Copyrighted music, software code, or digital artwork.
Q2. Why is it important to respect intellectual property rights when using digital content?
Answer
Respecting intellectual property rights ensures creators are credited and compensated, and it is required by law. Using content without permission can be unethical or illegal.
Q2b. What is a Creative Commons license?
Answer
A Creative Commons license is a public copyright license that allows creators to specify how others can use, share, and build upon their work. It provides a flexible range of protections and permissions for creative content.
Q2c. Why might someone choose to use a Creative Commons license for their digital work?
Answer
To encourage sharing, collaboration, and reuse of their work while still retaining some rights. It makes it easier for others to legally use, adapt, and distribute content for education, research, or creative projects.
Q2d. Name and briefly describe two types of Creative Commons licenses.
Answer
- CC BY (Attribution): Others can use, share, and adapt the work as long as they give credit to the creator.
- CC BY-NC (Attribution-NonCommercial): Others can use and adapt the work for non-commercial purposes only, with credit to the creator.
Q3. Describe a digital information dilemma and explain why it is challenging.
Sample Answer
Example: Sharing copyrighted music online makes it easy for people to access, but it can hurt artists’ income and break copyright laws. The challenge is balancing access to information with respecting creators’ rights.
Q4. Pseudocode: What does the following program display?
SET total ← 0
REPEAT 5 TIMES
SET total ← total + 2
END REPEAT
DISPLAY(total)
Answer
total: 0 → 2 → 4 → 6 → 8 → 10; output 10.
Q5. Pseudocode: Complete the code to count how many numbers in L are odd. Use FOR EACH.
# L ← [4, 7, 9, 2]
SET count ← 0
# your code here
DISPLAY(count)
Answer
FOR EACH x IN L IF (x MOD 2 = 1) SET count ← count + 1 END IF END FOR EACH DISPLAY(count) # 2
Q6. What is a bit? What is a byte?
Answer
A bit is a binary digit (0 or 1). A byte is 8 bits.
Q7. What is binary, and why do computers use it?
Answer
Binary is a way of representing information using only two options (0 and 1). Computers use binary because their hardware is based on two states (on/off).
Q8. What is overflow in binary addition?
Answer
Overflow occurs when the result of a binary addition is too large to fit in the available number of bits, causing the value to wrap around or lose data.
Q9. What is lossless compression? What is lossy compression?
Answer
Lossless compression reduces file size without losing any information (e.g., ZIP, PNG). Lossy compression reduces file size by removing some data, resulting in a loss of quality (e.g., JPEG, MP3).
Q10. Write pseudocode to find the largest number in a list L.
Sample Solution
SET max ← L[1] FOR EACH x IN L IF x > max SET max ← x END IF END FOR EACH DISPLAY(max)
Q11. Write pseudocode to count how many times the value 7 appears in a list L.
Sample Solution
SET count ← 0 FOR EACH x IN L IF x = 7 SET count ← count + 1 END IF END FOR EACH DISPLAY(count)
Q12. Write pseudocode to compute the average of numbers in a list L.
Sample Solution
SET sum ← 0 SET n ← LENGTH(L) FOR EACH x IN L SET sum ← sum + x END FOR EACH SET avg ← sum / n DISPLAY(avg)