O-Level Computer Science Worksheet
Topic: Data Representation, Binary, Logic Gates
1. Convert 1101₂ to decimal. Answer: 13₁₀
2. Convert 25₁₀ to binary. Answer: 11001₂
3. What is the difference between analog and digital data? Answer: Analog data is
continuous, whereas digital data is discrete.
4. Convert 3F₁₆ to decimal. Answer: 63₁₀
5. Convert 101101₂ to hexadecimal. Answer: 2D₁₆
6. What is ASCII? Answer: A character encoding standard that represents text using 7 or 8
bits per character.
7. How many bits are in a byte? Answer: 8 bits
8. Define the term ‘overflow error’ in binary addition. Answer: An error that occurs when a
calculation produces a value that exceeds the available bit space.
9. Add 1011₂ and 1101₂. Answer: 11000₂
10. Draw the truth table for an AND gate. Answer: (Truth table representation)
11. Draw the truth table for a NAND gate. Answer: (Truth table representation)
12. Write the Boolean expression for an OR gate. Answer: A + B
13. What is the use of XOR gates? Answer: Used for error detection and parity checking.
14. Simplify the Boolean expression A(B + C). Answer: AB + AC
15. What is a half-adder circuit? Answer: A digital circuit that adds two binary numbers and
outputs a sum and carry bit.
16. How do registers help in a CPU? Answer: They store small amounts of data temporarily
for quick access.
17. Define the term ‘bit depth.’ Answer: The number of bits used to store a pixel in an
image.
18. What is the significance of Unicode? Answer: It allows representation of characters from
multiple languages.
19. Why is hexadecimal used in computing? Answer: It is a more compact and human-
readable way to represent binary data.
20. Explain how logic gates are used in simple circuits. Answer: They perform basic logical
operations like AND, OR, and NOT to process binary signals.
Additional Past Paper Questions (2210):
21. Convert 45₁₀ to binary.
22. What is a truth table? Provide an example.
23. Define a primary key in a database.
24. Explain the difference between RAM and ROM.
25. Convert 10011011₂ to hexadecimal.
26. What is meant by a parity bit?
27. Explain the difference between lossy and lossless compression.
28. What is a logic circuit?
29. Describe the function of a multiplexer.
30. What is the importance of hexadecimal color codes in web design?