CSC114 · TU past paper
Introduction to Information Technology 2079 question paper
The complete TU 2079 exam paper for Introduction to Information Technology (CSC114), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- 110 marksMemory HierarchyHideAnswer
What is computer memory? Describe memory hierarchy with suitable example.[10]
Computer Memory and Memory Hierarchy
What is Computer Memory?
Computer memory is a device or component in a computer system that is used to store data, instructions, and intermediate results for processing. Memory allows the CPU to access and retrieve information quickly during the execution of programs.
Memory can be broadly classified into:
- Primary Memory (Main Memory): Directly accessible by the CPU (e.g., RAM, ROM, Cache)
- Secondary Memory (Auxiliary Storage): Used for permanent storage (e.g., Hard Disk, SSD, Optical Disk)
The CPU uses registers to store data and instructions during processing, and data must be brought into the CPU's registers before it can be processed. This shows that memory plays a central role in every operation a computer performs.
Memory Hierarchy
The memory hierarchy is an arrangement of different types of memory in a computer system, organized from fastest and most expensive (smallest capacity) at the top to slowest and least expensive (largest capacity) at the bottom.
The key idea behind memory hierarchy is to balance speed, cost, and capacity so that the CPU can access data as quickly as possible while keeping the overall cost of the system reasonable.
Diagram of Memory Hierarchy
___________ | Registers | <-- Fastest, Smallest, Most Expensive |___________| | Cache | |_____________| | Main Memory | | (RAM/ROM) | |_______________| | Secondary Memory | | (Hard Disk, SSD) | |___________________| | Tertiary Memory | | (Optical Disk, Tape)| |_____________________| <-- Slowest, Largest, Least Expensivecsc114-memory-hierarchy
Levels of Memory Hierarchy (Explained)
1. Registers (Level 1 - Top)
- Registers are high-speed storage areas within the CPU itself.
- They have the least storage capacity but are the fastest memory in the hierarchy.
- They store data, instructions, and intermediate results of processing.
- Registers are often referred to as the CPU's working memory.
- Examples:
- Accumulator (ACC): Stores the result of arithmetic and logic operations.
- Instruction Register (IR): Contains the current instruction most recently fetched.
- Capacity: A few bytes to a few hundred bytes
- Speed: Extremely fast (nanoseconds or less)
2. Cache Memory (Level 2)
- Cache memory is a small, high-speed memory located between the CPU and main memory.
- It stores frequently used data and instructions so the CPU does not have to repeatedly access the slower main memory.
- Cache is divided into levels: L1 Cache (inside CPU, fastest), L2 Cache, and L3 Cache (shared among cores).
- Example: When a program runs a loop repeatedly, the loop instructions are stored in cache so the CPU can access them instantly.
- Capacity: A few KB to a few MB
- Speed: Very fast
3. Main Memory / Primary Memory (Level 3)
- Main memory is the primary working memory of the computer, directly accessible by the CPU.
- It includes:
- RAM (Random Access Memory): Volatile memory that stores currently running programs and data. Data is lost when power is turned off.
- ROM (Read Only Memory): Non-volatile memory that stores permanent instructions like the BIOS.
- Main memory (RAM) is one of the key hardware components of a computer system.
- Example: When you open a web browser, it is loaded from the hard disk into RAM so the CPU can access it quickly.
- Capacity: A few GB (e.g., 4 GB, 8 GB, 16 GB)
- Speed: Fast, but slower than cache
4. Secondary Memory (Level 4)
- Secondary memory provides permanent (non-volatile) storage for data and programs.
- It is much larger in capacity than primary memory but much slower to access.
- The CPU cannot directly access secondary memory; data must first be transferred to main memory.
- Examples: Hard Disk Drive (HDD), Solid State Drive (SSD), USB Flash Drive
- The hard disk is a block device that transfers data as blocks.
- Capacity: Hundreds of GB to several TB
- Speed: Slower than RAM
5. Tertiary / Offline Memory (Level 5 - Bottom)
- This is the lowest level of the memory hierarchy, used for backup and archival purposes.
- It is the cheapest and largest in capacity but the slowest to access.
- Examples: Optical Disks (CD, DVD, Blu-ray), Magnetic Tapes
- Capacity: Can range from GB to PB (in tape libraries)
- Speed: Very slow
Summary Table
Memory Level Example Speed Capacity Cost Registers ACC, IR Fastest Bytes Highest Cache L1, L2, L3 Cache Very Fast KB - MB Very High Main Memory RAM, ROM Fast GB Moderate Secondary Memory HDD, SSD Slow GB - TB Low Tertiary Memory CD, Tape Slowest TB - PB Lowest
Why is Memory Hierarchy Important?
- Speed: The CPU can access data from registers and cache almost instantly, reducing waiting time.
- Cost Efficiency: Expensive fast memory (registers, cache) is used in small amounts; cheap slow memory (hard disk) is used in large amounts.
- Performance: Frequently used data is kept in higher levels (cache/registers), improving overall system performance.
- Example: When you run a calculation, the numbers are loaded from the hard disk into RAM, then into cache, and finally into the CPU registers where the actual addition or subtraction takes place. The result is stored back in the accumulator register.
Conclusion
The memory hierarchy is a fundamental concept in computer architecture that balances the competing demands of speed, cost, and capacity. By organizing storage into registers, cache, main memory, secondary memory, and tertiary memory, a computer system can give the CPU the illusion of large, fast, and inexpensive memory all at once, which is essential for efficient program execution.
- 210 marksOperating SystemHideAnswer
Why software is needed in computer system? Mention the role of system software. Discuss the functionalities of operating system.[10]
--- Hardware alone cannot perform any useful task. A computer system is a combination of hardware and software. Software is needed because: - Hardware components such as CPU, memory, and I/O devices are physical components that require i...
- 310 marksNetwork TopologyHideAnswer
What is computer network. Discuss the types of network topologies with their pros and cons.[10]
A computer network is a collection of two or more computers and other devices (nodes) that are interconnected with each other to share resources, data, and information. The connected devices communicate through wired or wireless transmis...
- 45 marksGenerations of ComputerHideAnswer
Briefly describe the generation of computer. [5]
The evolution of computers is defined in terms of five generations, classified on the basis of speed, size, components used, storage capacity, and processing speed. --- - Hardware: Used vacuum tubes for circuitry; input through punched c...
- 55 marksInstruction CycleHideAnswer
Define instruction set. How a CPU instruction cycle works? [5]
An instruction set (also called an Instruction Set Architecture, ISA) is the complete collection of instructions that a CPU can understand and execute. It defines the set of operations a processor can perform, the data types it supports,...
- 65 marksOutput DevicesHideAnswer
Discuss different types of printers with examples. [5]
A printer is an output device that produces a hard copy (printed output) of documents, images, or other data from a computer onto paper or other media. Printers are broadly classified into two main categories: --- Impact printers work by...
- 75 marksNumericalConversion from Decimal to Binary, Octal, HideAnswer
Define decimal to binary conversion. Convert decimal 12.15 to binary. [5]
Decimal to binary conversion is the process of representing a number given in the decimal (base-10) system, which uses digits 0 through 9, into its equivalent form in the binary (base-2) system, which uses only the digits 0 and 1. A deci...
- 85 marksCommunication ProtocolHideAnswer
What is communication protocol? Why it is used in computer networks? List few examples if communication protocols. [5]
A communication protocol is a set of established rules that dictates how to format, transmit, and receive data so that computer network devices -- from servers and routers to endpoints -- can communicate regardless of the differences in ...
- 95 marksElements of MultimediaHideAnswer
What is multimedia? Describe the elements of multimedia. [5]
Multimedia is the use of a computer to present and combine text, graphics, audio, and video with links and tools that let the user navigate, interact, create, and communicate. In simple terms, multimedia refers to the integration of mult...
- 105 marksSecurity MechanismsHideAnswer
What is firewall? How firewall is used to secure computer systems? [5]
A firewall is a network security system (either hardware-based, software-based, or both) that monitors and controls incoming and outgoing network traffic based on a set of predefined security rules. It acts as a barrier (or "wall") betwe...
- 115 marksIntroduction to Data Warehousing, Data minHideAnswer
Define the terms data warehousing, data mining, and big data. [5]
A data warehouse is a collection of data from various sources stored under a common schema. It stores both current and historical data in one single place and is primarily used for analysis, reporting, and data mining purposes. Key chara...
- 125 marksIntroduction to Internet of ThingsHideAnswer
Write short notes on: a. Cloud Computing b. IoT [5]
Short Notes: Cloud Computing and IoT
a. Cloud Computing
Cloud Computing is a model of delivering computing services such as servers, storage, databases, networking, software, and analytics over the internet ("the cloud") on a pay-as-you-go basis.
Key Characteristics:
- On-demand self-service: Users can access computing resources as needed without human interaction with the service provider.
- Broad network access: Services are available over the network and accessed through standard devices.
- Resource pooling: Computing resources are pooled to serve multiple users.
- Rapid elasticity: Resources can be scaled up or down quickly based on demand.
- Measured service: Usage is monitored and billed accordingly.
Types of Cloud Services:
Model Description Example IaaS (Infrastructure as a Service) Provides virtualized computing infrastructure AWS EC2, Google Compute PaaS (Platform as a Service) Provides platform for application development Google App Engine SaaS (Software as a Service) Delivers software over the internet Gmail, Google Docs Advantages:
- Cost-effective (no need to buy hardware)
- Accessible from anywhere
- Automatic updates and maintenance
- High scalability and flexibility
Disadvantages:
- Requires internet connectivity
- Security and privacy concerns
- Dependency on service provider
b. Internet of Things (IoT)
IoT (Internet of Things) refers to the network of physical devices, vehicles, appliances, and other objects embedded with sensors, software, and connectivity that enables them to collect and exchange data over the internet.
Key Components:
- Sensors/Devices: Collect data from the environment (e.g., temperature sensors, cameras)
- Connectivity: Devices communicate via Wi-Fi, Bluetooth, or cellular networks
- Data Processing: Collected data is processed either locally or in the cloud
- User Interface: Results are presented to the user through apps or dashboards
How IoT Works:
Physical Device (Sensor) --> Internet/Network --> Cloud/Server --> User ApplicationApplications of IoT:
- Smart Home: Smart lights, thermostats, security cameras (e.g., Amazon Echo)
- Healthcare: Wearable health monitors, remote patient monitoring
- Agriculture: Smart irrigation systems, soil monitoring
- Transportation: GPS tracking, self-driving vehicles
- Industry: Smart manufacturing, predictive maintenance
Advantages:
- Automation and efficiency
- Real-time monitoring and control
- Improved quality of life
- Reduced human effort
Disadvantages:
- Security and privacy risks
- High implementation cost
- Complexity in managing large networks of devices
In summary, Cloud Computing provides the backbone infrastructure for storing and processing IoT data, and both technologies together are driving the modern digital transformation era.