









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!










School: KASS, Ashanti Region Subject: Computing Year: 2 Duration: 2 hours 30 minutes Total Marks: 100 Date: _______________
Answer ALL 50 questions. Each question carries 1 mark.
1. Which of the following symbols represents the AND logic gate? A. ∨ B. ∧ C. ¬ D. ⊕ 2. What does RAM stand for? A. Read-Only Memory B. Random Access Memory C. Rapid Application Memory
D. Read-And-Modify Memory
3. In Python, which keyword is used to create a function? A. function B. def C. define D. func 4. What does “QR” stand for in QR codes? A. Quick Response B. Quality Recognition C. Quantum Resistance D. Query Response 5. Which of the following is a system software? A. Microsoft Word B. Adobe Photoshop C. Windows Operating System D. Google Chrome 6. What is the primary function of a router in a network? A. To store data B. To direct data packets between networks C. To encrypt all data D. To display network information 7. Which data structure follows the Last In, First Out (LIFO) principle? A. Queue
12. Which of the following is a primitive data structure? A. Array B. Linked List C. Integer D. Tree 13. What is the main purpose of a barcode? A. To display product information B. To store and retrieve product data quickly C. To encrypt sensitive information D. To connect devices to the internet 14. Which of the following is NOT a type of network topology? A. Star B. Ring C. Mesh D. Triangle 15. What does TCP/IP stand for? A. Transfer Control Protocol/Internet Protocol B. Transmission Control Protocol/Internet Protocol C. Technical Communication Protocol/Internet Process D. Transfer Communication Protocol/Internet Process
16. If A = 1 and B = 0, what is the result of (A ∨ B) ∧ ¬B? A. 0
17. Which of the following correctly describes the difference between system software and application software? A. System software manages hardware; application software performs specific user tasks B. Application software manages hardware; system software performs specific user tasks C. Both manage hardware equally D. System software is faster than application software 18. In a Local Area Network (LAN), which device is primarily responsible for connecting all computers? A. Modem B. Switch C. Router D. Gateway 19. What is the primary advantage of using a linked list over an array? A. Linked lists use less memory B. Linked lists allow dynamic memory allocation C. Linked lists are faster to access D. Linked lists do not require pointers 20. Which of the following is the correct order of operations in Python (PEMDAS)? A. Parentheses, Exponents, Multiplication, Division, Addition, Subtraction B. Parentheses, Exponents, Addition, Subtraction, Multiplication, Division
25. Which of the following is a characteristic of a Metropolitan Area Network (MAN)? A. Covers a single building B. Covers a city or large campus C. Covers the entire world D. Covers only two computers 26. In a truth table for the XOR (exclusive OR) gate, when are the outputs true? A. When both inputs are the same B. When both inputs are different C. When at least one input is true D. When both inputs are false 27. What is the main function of DNS (Domain Name System)? A. To encrypt data B. To translate domain names into IP addresses C. To manage network traffic D. To store user passwords 28. Which of the following is an example of a non-primitive data structure? A. Integer B. Boolean C. Tree D. Float 29. What does the print() function do in Python? A. Receives user input B. Displays output on the screen
C. Creates a new variable D. Performs arithmetic operations
30. In the context of barcodes, what does the barcode scanner do? A. Creates barcodes B. Reads and decodes barcode information C. Encrypts barcode data D. Stores barcode information 31. Which of the following best describes the role of an Internet Service Provider (ISP)? A. Manufactures computers B. Provides internet access to users and organisations C. Creates software applications D. Manages social media platforms 32. What is the primary advantage of using a graph data structure? A. It uses less memory than arrays B. It can represent complex relationships between data C. It is faster than all other data structures D. It does not require any pointers 33. In Python, which of the following is the correct way to write a comment? A. // This is a comment B. # This is a comment C. /* This is a comment */ D. – This is a comment
38. In a program that calculates student grades, which control structure would be most appropriate to assign grades based on score ranges? A. For loop B. While loop C. If-elif-else statement D. Function definition 39. Which of the following scenarios best demonstrates the use of a stack data structure? A. Processing customer orders in the order they arrive B. Implementing the “undo” function in a text editor C. Managing a queue at a bank D. Storing a list of student names 40. A network administrator needs to ensure that sensitive data transmitted over the internet is protected. Which of the following would be the most effective solution? A. Use a faster internet connection B. Implement SSL/TLS encryption C. Increase the number of routers D. Use only wired connections 41. When designing a simple calculator program, which of the following is the most logical sequence of steps? A. Display result → Perform calculation → Get input → Get operator B. Get input → Get operator → Perform calculation → Display result C. Perform calculation → Get input → Get operator → Display result D. Display result → Get operator → Get input → Perform calculation
42. A company is experiencing slow network performance. After investigation, it is found that the network switch is operating at maximum capacity. Which of the following would be the most appropriate solution? A. Replace the router B. Add more switches or upgrade to a higher-capacity switch C. Increase internet speed D. Replace all network cables 43. In a program that processes a large dataset, which data structure would be most efficient for frequent insertions and deletions? A. Array B. Linked List C. Stack D. Queue 44. Which of the following best explains why error handling is important in a calculator program? A. It makes the program run faster B. It prevents the program from crashing when invalid inputs are entered C. It reduces the number of lines of code D. It increases the memory usage 45. A school wants to implement a network that connects computers in multiple buildings across the campus. Which network topology would provide the best redundancy and fault tolerance? A. Star topology B. Ring topology C. Mesh topology D. Bus topology
A. Array (for fast access) combined with dynamic memory allocation techniques B. Linked List (for dynamic allocation) with optimised search algorithms C. Stack (for LIFO operations) D. Queue (for FIFO operations)
50. A company is implementing a new network infrastructure that must support growth, security, and reliability. Which of the following represents the most comprehensive approach? A. Use only LANs B. Use only WANs C. Implement a hybrid network with LANs for local operations, WANs for remote connectivity, redundancy measures, and security protocols D. Use only wireless connections
Answer ALL 10 questions. Each question carries 1 mark. Instructions: Write your answers clearly in the spaces provided.
1. The _________________ gate produces an output of 1 only when both inputs are 1. 2. In Python, the _________________ function is used to convert a string to an integer. 3. A _________________ is a network that covers a single building or campus.
4. The _________________ data structure follows the First In, First Out (FIFO) principle. 5. The _________________ is the main memory in a computer that stores data and instructions currently being used. 6. In a network, a _________________ is a device that connects multiple computers and switches data between them. 7. The _________________ protocol is used to secure data transmission over the internet. 8. A _________________ is a one-dimensional code that stores data in vertical bars of varying widths. 9. In Python, the _________________ statement is used to repeat a block of code a specific number of times. 10. The _________________ is a non-primitive data structure that represents hierarchical relationships between data elements.
Answer ALL 5 questions in the answer booklet provided.
Simplify the following Boolean expression using algebraic rules and then draw the logic circuit for the simplified expression. Expression: Y = (A ∨ B) ∧ (A ∨ ¬B) ∧ (A ∨ C)
A company is setting up a new network infrastructure that must connect its headquarters (in Accra) with branch offices in Kumasi and Takoradi. The company handles sensitive customer data and requires high security. Required: a) Identify the most appropriate network type(s) for this scenario and justify your choice (2 marks) b) Design a comprehensive security strategy that includes at least 3 security measures (3 marks) c) Explain how each security measure protects the network (2 marks) d) Discuss potential challenges in implementing this network and suggest solutions (1 mark) END OF EXAMINATION