Unit 3: Computer Hardware - Subjective Questions
CSE111 — Orientation To Computing • Practice Questions with Detailed Answers
20 questions
Define the Central Processing Unit (CPU) and explain its main functions in a computer system.
The Central Processing Unit (CPU) is the primary processing component of a computer. It executes program instructions and controls the operation of other hardware components. Its main functions include:
- Instruction processing: The CPU fetches instructions from memory, decodes them, and executes them.
- Arithmetic and logical operations: The Arithmetic Logic Unit performs calculations and logical comparisons.
- Control: The Control Unit directs the flow of data and instructions between the CPU, memory, and input/output devices.
- Data movement: The CPU transfers data between registers, memory, and peripheral devices.
- Decision-making: It uses logical operations and program instructions to determine the next action.
The performance of a CPU is influenced by factors such as clock speed, number of cores, cache size, and architecture.
Describe the main components of a CPU and explain the role of each component.
The main components of a CPU are:
- Control Unit (CU): Fetches instructions from memory, decodes them, and coordinates their execution. It controls the movement of data throughout the computer.
- Arithmetic Logic Unit (ALU): Performs arithmetic operations such as addition and subtraction, as well as logical operations such as comparisons and Boolean operations.
- Registers: Small, high-speed storage locations inside the CPU. They temporarily hold instructions, addresses, data, and intermediate results.
- Cache memory: High-speed memory located close to or inside the CPU. It stores frequently used instructions and data to reduce access time.
- Clock: Produces regular electrical pulses that synchronize the activities of the CPU.
Together, these components allow the CPU to process instructions efficiently.
Explain the instruction cycle of a CPU, including the fetch, decode, and execute stages.
The instruction cycle is the sequence of steps followed by the CPU to process an instruction:
- Fetch: The CPU uses the Program Counter to locate the next instruction in memory. The instruction is copied into the Instruction Register, and the Program Counter is updated.
- Decode: The Control Unit interprets the instruction and identifies the required operation, data, and destination.
- Execute: The appropriate component performs the operation. For example, the ALU may perform a calculation, or data may be transferred between memory and a register.
- Store: The result is stored in a register or memory if required.
This cycle repeats continuously while a program is running. The CPU clock coordinates the timing of each stage.
Compare a multi-core CPU with a single-core CPU. Discuss the advantages and limitations of each.
A single-core CPU has one processing core, whereas a multi-core CPU contains two or more independent processing cores on one chip.
Single-core CPU:
- Executes one main stream of instructions at a time.
- Is simpler and usually consumes less power.
- May be less expensive, but performs poorly when running several demanding tasks simultaneously.
Multi-core CPU:
- Can execute multiple instruction streams at the same time.
- Improves multitasking and the performance of software designed for parallel processing.
- May provide better performance without requiring a very high clock speed.
- Can consume more power and generate more heat.
A multi-core CPU does not automatically make every program faster because the software must be designed to use multiple cores effectively.
What is a Graphics Processing Unit (GPU)? Explain how it differs from a CPU and identify its major applications.
A Graphics Processing Unit (GPU) is a specialized processor designed to perform large numbers of similar calculations simultaneously. It was originally developed for rendering images, video, and three-dimensional graphics.
Differences between a CPU and a GPU:
- A CPU has a small number of powerful and flexible cores, while a GPU has many smaller cores optimized for parallel work.
- A CPU is suitable for sequential instructions, decision-making, and general-purpose computing.
- A GPU is effective for performing the same operation on many data items at once.
- CPUs usually have larger control and cache resources, while GPUs devote more hardware to parallel arithmetic operations.
GPUs are used in gaming, animation, video editing, scientific simulations, artificial intelligence, machine learning, cryptocurrency calculations, and professional visualization.
Explain the concept of parallel processing in a GPU and discuss why GPUs are useful for graphics and artificial intelligence.
Parallel processing means dividing a large task into smaller operations that can be performed at the same time. GPUs contain many processing cores that execute similar instructions on multiple data elements concurrently.
For graphics, a GPU can calculate the color, position, lighting, and texture of many pixels or vertices simultaneously. This makes it suitable for rendering complex images and animations.
For artificial intelligence, many algorithms involve matrix and vector calculations. These calculations can be divided into thousands of smaller operations and processed in parallel by the GPU.
The major benefits include:
- High computational throughput.
- Efficient processing of large data sets.
- Faster rendering and model training.
- Reduced execution time for suitable workloads.
However, tasks involving complex branching or strictly sequential instructions may be better handled by a CPU.
Distinguish between integrated graphics and a dedicated graphics card.
Integrated graphics are built into the CPU or motherboard chipset and usually share the computer's main memory. They are suitable for everyday activities such as document editing, web browsing, video playback, and basic gaming. Their advantages include lower cost, lower power consumption, and reduced physical space.
A dedicated graphics card contains its own GPU, video memory, and cooling system. It provides much higher graphics performance for modern games, computer-aided design, video editing, scientific visualization, and machine learning.
The main differences are:
- Memory: Integrated graphics share system RAM; dedicated cards use separate video RAM.
- Performance: Dedicated graphics generally provide higher performance.
- Power: Integrated graphics normally consume less power.
- Cost: Dedicated graphics cards increase the cost of a computer.
- Upgradeability: A dedicated card can often be replaced or upgraded.
Define an input device and describe the working and uses of any four input devices.
An input device is a hardware component used to enter data, instructions, or control signals into a computer.
Examples include:
- Keyboard: Converts pressed keys into digital characters or commands. It is used for typing text and entering instructions.
- Mouse: Detects movement and button clicks to control a pointer and select objects on the screen.
- Scanner: Converts printed text or images into digital form for storage or editing.
- Microphone: Converts sound waves into electrical or digital signals for recording, communication, and voice recognition.
- Webcam: Captures still images or video and sends them to the computer for conferencing, recording, or security.
- Touchscreen: Detects the location of a finger or stylus and allows the user to interact directly with displayed objects.
Input devices make communication between the user and the computer possible.
Explain how a keyboard, mouse, and touchscreen function as input devices. Compare their suitable applications.
A keyboard detects key presses and sends corresponding character codes or control commands to the computer. It is most suitable for writing documents, programming, and entering large amounts of text.
A mouse detects movement across a surface and translates it into pointer movement. Buttons and a scroll wheel allow users to select, open, drag, and navigate objects. It is suitable for graphical user interfaces, drawing, and selecting items.
A touchscreen detects touch using technologies such as capacitive sensing. The computer identifies the location and type of touch, such as tapping, swiping, or pinching. It is suitable for smartphones, tablets, information kiosks, and point-of-sale systems.
The keyboard is best for text entry, the mouse provides precise pointer control, and the touchscreen supports direct and intuitive interaction.
Describe the purpose and operation of a scanner, microphone, webcam, and biometric input device.
The devices operate as follows:
- Scanner: Uses light and sensors to read a printed document or image. It converts the reflected light into digital data that can be stored or edited.
- Microphone: Detects sound waves using a diaphragm and converts them into electrical signals. The signals are then digitized for recording, voice calls, or speech recognition.
- Webcam: Uses a camera sensor to capture images or video. The data is processed and transmitted to applications such as video conferencing software.
- Biometric device: Captures a unique physical or behavioral characteristic, such as a fingerprint, face, iris, or voice. Software compares the captured feature with stored data for identification or authentication.
These devices allow computers to receive visual, audio, printed, and personal identity information.
Define an output device and explain the functions of a monitor, printer, speakers, and projector.
An output device is a hardware component that presents processed information from a computer to the user or another system.
- Monitor: Displays text, images, video, and graphical interfaces. It produces output using pixels arranged in rows and columns.
- Printer: Produces a physical copy of digital text or images on paper or another material. Inkjet printers spray ink, while laser printers use toner and heat.
- Speakers: Convert digital audio signals into electrical signals and then into sound waves that can be heard.
- Projector: Enlarges and projects computer-generated images or video onto a screen or wall for viewing by a group.
The choice of output device depends on whether the user needs visual, printed, audio, or large-scale presentation output.
Compare impact and non-impact printers. Include their working principles, advantages, and limitations.
Impact printers form characters by physically striking an inked ribbon against paper. The most common example is a dot-matrix printer.
- Advantages: Durable, relatively inexpensive to operate, and capable of printing multipart forms.
- Limitations: Noisy, slower, and usually produces lower-quality output.
Non-impact printers create output without physically striking the paper. Examples include inkjet and laser printers.
- Inkjet printers: Spray tiny droplets of liquid ink onto paper. They provide good color output and are useful for photographs, but ink may be costly and can smudge.
- Laser printers: Use a laser, electrically charged drum, toner, and heat to produce text and images. They are fast and produce sharp output, but the initial cost may be higher.
The appropriate printer depends on cost, speed, quality, noise, and volume requirements.
Explain the factors that should be considered when selecting an input or output device for a particular application.
Important selection factors include:
- Purpose: The device must match the task, such as text entry, image capture, audio recording, printing, or presentation.
- Accuracy and quality: A graphic designer may require a high-resolution monitor or scanner, while ordinary office work may require less.
- Speed: High-volume offices may need fast scanners or printers.
- Cost: Both purchase price and operating costs, such as ink, toner, maintenance, and electricity, should be considered.
- Compatibility: The device must work with the computer's operating system, ports, drivers, and software.
- Ease of use: Controls, accessibility, and user comfort affect productivity.
- Reliability and durability: Devices used frequently should withstand continuous operation.
- Environmental impact: Energy consumption, consumable waste, and recyclability are also relevant.
Define computer memory and distinguish between primary memory and secondary memory.
Computer memory is the storage area used to hold data, instructions, and processing results.
Primary memory:
- Is directly accessible by the CPU.
- Provides fast access to currently running programs and data.
- Includes registers, cache, RAM, and ROM.
- Usually has limited capacity compared with secondary storage.
- RAM is generally volatile, while ROM is non-volatile.
Secondary memory:
- Stores data and programs for long-term use.
- Includes hard disk drives, solid-state drives, optical discs, and USB flash drives.
- Has larger capacity but is generally slower than primary memory.
- Is non-volatile, so data remains stored when power is removed.
Primary memory supports active processing, whereas secondary memory provides permanent storage.
Explain RAM and ROM, and compare their characteristics and uses.
Random Access Memory (RAM) is a read-and-write memory used to store programs and data currently being processed. It is generally volatile, meaning its contents are lost when power is switched off. More RAM allows a computer to run more applications and larger files smoothly.
Read-Only Memory (ROM) stores instructions that are needed for essential operations such as starting the computer. It is non-volatile, so its contents are retained without electrical power. Modern forms of ROM, such as flash ROM, can be updated under controlled conditions.
| Feature | RAM | ROM |
|---|---|---|
| Main use | Temporary working storage | Permanent startup or firmware storage |
| Volatility | Usually volatile | Non-volatile |
| Access | Read and write | Mainly read |
| Effect of power loss | Data is lost | Data is retained |
Thus, RAM supports active processing while ROM stores essential instructions.
Describe cache memory and explain how it improves CPU performance.
Cache memory is a small, high-speed memory located inside or near the CPU. It stores copies of frequently used instructions and data.
When the CPU needs information, it first checks the cache:
- A cache hit occurs when the required information is found in the cache. The CPU can access it quickly.
- A cache miss occurs when the information is not present. The CPU must obtain it from slower main memory and may place a copy in the cache.
Cache improves performance because it reduces the average time needed to access frequently used data. Most systems use several levels:
- L1 cache: Smallest and fastest, usually dedicated to a core.
- L2 cache: Larger but slightly slower.
- L3 cache: Larger and often shared among cores.
Cache does not replace RAM; it acts as a faster intermediate storage area.
Compare a hard disk drive (HDD) and a solid-state drive (SSD) in terms of construction, performance, reliability, and cost.
An HDD stores data magnetically on rotating platters and uses moving read/write heads. An SSD stores data electronically in flash memory and has no moving parts.
| Factor | HDD | SSD |
|---|---|---|
| Construction | Magnetic platters and moving heads | Flash memory chips |
| Speed | Generally slower | Generally faster |
| Access time | Higher because of mechanical movement | Very low because there are no moving parts |
| Durability | More vulnerable to shock and vibration | More resistant to physical shock |
| Noise | Produces some mechanical noise | Silent |
| Power use | Usually higher | Usually lower |
| Cost per unit of storage | Usually lower | Usually higher |
HDDs are useful for economical, high-capacity storage, while SSDs are preferred when speed, quiet operation, and durability are important.
Explain optical storage, magnetic storage, and flash storage, giving examples of each.
Computer storage technologies can be classified as follows:
- Magnetic storage: Stores data by magnetizing areas of a surface. Hard disk drives and magnetic tapes are examples. HDDs provide large capacity, while tapes are often used for backup and archiving.
- Optical storage: Uses a laser to read or write data on the surface of a disc. CDs, DVDs, and Blu-ray discs are examples. They are portable but have limited capacity compared with many modern drives.
- Flash storage: Uses electronic memory cells to store data without moving parts. USB flash drives, memory cards, and SSDs are examples. Flash storage is fast, portable, quiet, and resistant to physical shock.
Each technology differs in capacity, speed, cost, durability, portability, and expected lifespan.
Explain the terms bit, byte, kilobyte, megabyte, gigabyte, and terabyte as units of memory capacity.
A bit is the smallest unit of digital information and can have a value of or . A byte consists of bits and can commonly represent one character.
Memory capacity is commonly expressed using the following units:
- Kilobyte (KB): Approximately bytes, or traditionally bytes.
- Megabyte (MB): Approximately kilobytes, or traditionally kilobytes.
- Gigabyte (GB): Approximately megabytes, or traditionally megabytes.
- Terabyte (TB): Approximately gigabytes, or traditionally gigabytes.
Manufacturers often use decimal units, where bytes. Binary units use powers of , such as bytes. These units describe how much data a memory device can store.
Explain volatile and non-volatile memory, and give suitable examples of each.
Volatile memory requires continuous power to preserve its contents. When the computer is switched off, the stored data is normally lost. Examples include:
- RAM.
- CPU cache.
- CPU registers.
Volatile memory is used for temporary storage during processing because it is very fast.
Non-volatile memory retains data even when power is removed. Examples include:
- ROM and firmware memory.
- SSDs.
- Hard disk drives.
- USB flash drives.
- Memory cards.
- Optical discs.
Non-volatile storage is suitable for operating systems, applications, personal files, and backups. A computer normally uses both types: volatile memory for active work and non-volatile memory for long-term storage.
Define the Central Processing Unit (CPU) and explain its main functions in a computer system.
The Central Processing Unit (CPU) is the primary processing component of a computer. It executes program instructions and controls the operation of other hardware components. Its main functions include:
- Instruction processing: The CPU fetches instructions from memory, decodes them, and executes them.
- Arithmetic and logical operations: The Arithmetic Logic Unit performs calculations and logical comparisons.
- Control: The Control Unit directs the flow of data and instructions between the CPU, memory, and input/output devices.
- Data movement: The CPU transfers data between registers, memory, and peripheral devices.
- Decision-making: It uses logical operations and program instructions to determine the next action.
The performance of a CPU is influenced by factors such as clock speed, number of cores, cache size, and architecture.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →