Unit 2: Memory and I/O Devices - Subjective Questions
DECAP145 • Practice Questions with Detailed Answers
20 questions
Define computer memory. Explain the different types of memory used in a computer system.
Computer Memory refers to the physical devices used to store data, instructions, and information either temporarily or permanently for processing by the computer.
Types of Memory:
-
Primary Memory (Main Memory):
- Directly accessible by the CPU.
- Fast but limited in size and generally volatile.
- Includes RAM (volatile) and ROM (non-volatile).
-
Secondary Memory (Auxiliary Storage):
- Used for permanent storage of large amounts of data.
- Non-volatile and cheaper per unit of storage.
- Examples: HDD, SSD, Flash Drives, Optical Disks.
-
Cache Memory:
- Very high-speed memory placed between CPU and main memory.
- Stores frequently used data to speed up processing.
-
Registers:
- Smallest and fastest memory located inside the CPU.
- Holds data currently being processed.
Memory can be broadly classified as volatile (loses data when power is off) and non-volatile (retains data without power).
Explain the various units of memory with their values. Convert 1 GB into KB and bytes.
Units of Memory:
The smallest unit is a bit (binary digit, 0 or 1). Larger units are built upon it:
- Bit – A single binary digit (0 or 1).
- Nibble – 4 bits.
- Byte – 8 bits (basic unit of storage).
- Kilobyte (KB) = Bytes = Bytes.
- Megabyte (MB) = KB = Bytes.
- Gigabyte (GB) = MB = Bytes.
- Terabyte (TB) = GB = Bytes.
- Petabyte (PB) = TB.
Conversion of 1 GB:
So, 1 GB = 1,048,576 KB = 1,073,741,824 Bytes.
What is RAM? Explain its types (SRAM and DRAM) with their characteristics.
RAM (Random Access Memory) is the main volatile memory of a computer where data and instructions are stored temporarily while the computer is running. Data is lost when power is switched off. It allows both read and write operations, and any location can be accessed directly (randomly).
Types of RAM:
-
SRAM (Static RAM):
- Stores data using flip-flops (transistors).
- Does not need to be refreshed.
- Very fast and expensive.
- Used in cache memory.
- Consumes more power and requires more space per bit.
-
DRAM (Dynamic RAM):
- Stores data using capacitors and transistors.
- Needs to be refreshed thousands of times per second.
- Slower than SRAM but cheaper.
- Higher storage density.
- Used as main memory in computers.
Key Point: SRAM is faster but costlier, while DRAM is slower but economical and used for larger main memory.
What is ROM? Describe the different types of ROM in detail.
ROM (Read Only Memory) is a non-volatile memory whose contents can only be read, not easily written. It retains data even when power is turned off and is used to store the BIOS/firmware and boot instructions.
Types of ROM:
-
MROM (Masked ROM):
- Programmed by the manufacturer during production.
- Contents cannot be changed.
-
PROM (Programmable ROM):
- Blank when manufactured; can be programmed once by the user using a PROM programmer.
- Cannot be erased afterwards.
-
EPROM (Erasable Programmable ROM):
- Can be erased by exposing it to ultraviolet (UV) light and reprogrammed.
-
EEPROM (Electrically Erasable Programmable ROM):
- Can be erased and reprogrammed electrically, byte by byte.
- Basis for modern flash memory.
Uses: Storing firmware, bootstrap loader, and permanent system programs.
Distinguish between RAM and ROM on the basis of at least five points.
Difference between RAM and ROM:
| Basis | RAM | ROM |
|---|---|---|
| Full Form | Random Access Memory | Read Only Memory |
| Volatility | Volatile (data lost on power off) | Non-volatile (retains data) |
| Operations | Read and Write | Mainly Read only |
| Speed | Faster | Slower compared to RAM |
| Usage | Temporary storage of running programs/data | Stores permanent instructions (BIOS/firmware) |
| Cost | More expensive per unit | Cheaper |
| Capacity | Generally larger (GBs) | Smaller |
| Types | SRAM, DRAM | PROM, EPROM, EEPROM |
Summary: RAM is the working memory used during processing and loses data on power-off, whereas ROM permanently stores essential start-up instructions.
Explain the concept of secondary storage. Why is it needed even though primary memory exists?
Secondary Storage refers to non-volatile storage devices used to permanently store large volumes of data, programs, and files that are not immediately needed by the CPU.
Need for Secondary Storage:
- Non-volatility: Primary memory (RAM) is volatile and loses data when power is off; secondary storage retains data permanently.
- Large Capacity: Provides much larger storage (GBs to TBs) than primary memory.
- Cost-effective: Cheaper per unit of storage compared to RAM.
- Portability: Devices like flash drives and optical disks allow data transfer between systems.
- Backup: Enables backup and archival of important data.
Examples of Secondary Storage Devices:
- Hard Disk Drive (HDD)
- Solid State Drive (SSD)
- Flash/Pen Drives
- Optical Disks (CD, DVD, Blu-ray)
Limitation: Secondary storage is slower than primary memory and cannot be accessed directly by the CPU; data must first be loaded into RAM.
Describe the Hard Disk Drive (HDD) in detail. Explain its structure and working.
A Hard Disk Drive (HDD) is a non-volatile secondary storage device that stores data magnetically on rotating disks called platters.
Structure of HDD:
- Platters: Circular metal disks coated with magnetic material used to store data.
- Spindle: Rotates the platters at high speed (e.g., 5400 or 7200 RPM).
- Read/Write Head: Reads and writes data on the platter surfaces.
- Actuator Arm: Moves the read/write heads across the platters.
- Tracks & Sectors: Each platter is divided into concentric circles (tracks) and further into sectors; a set of same tracks across platters forms a cylinder.
Working:
- The platters spin at high speed while the read/write head moves to the required track.
- Data is stored by magnetizing tiny regions on the platter surface.
- To read/write, the head is positioned over the correct sector and detects/changes the magnetic orientation.
Advantages: Large capacity, low cost per GB.
Disadvantages: Slower than SSD, mechanical parts prone to damage, produces noise and heat.
What is a Flash Drive? Explain its features, advantages, and disadvantages.
A Flash Drive (also called Pen Drive or USB drive) is a small, portable secondary storage device that uses flash memory (EEPROM based) to store data and connects through a USB port.
Features:
- Uses non-volatile flash memory.
- Compact and portable.
- No moving parts (solid-state).
- Plug-and-play through USB.
- Available in capacities from a few GB to several TB.
Advantages:
- Portable and lightweight.
- Fast data transfer.
- Durable (no mechanical parts).
- Reusable and rewritable many times.
- No external power required.
Disadvantages:
- Limited number of write/erase cycles.
- Small size makes it easy to lose.
- Can carry viruses between systems.
- Costlier per GB than HDD for large capacities.
Uses: Data transfer, backup, bootable drives, and portable storage.
Explain Optical Disks. Describe CD, DVD, and Blu-ray with their storage capacities.
Optical Disks are secondary storage devices that store data using laser technology. Data is written and read using a laser beam that detects pits and lands on the disk surface.
Types of Optical Disks:
-
CD (Compact Disc):
- Uses infrared/red laser.
- Typical capacity: 700 MB.
- Types: CD-ROM (read only), CD-R (write once), CD-RW (rewritable).
-
DVD (Digital Versatile Disc):
- Uses red laser with finer pits.
- Capacity: 4.7 GB (single layer) up to 8.5 GB (dual layer).
- Types: DVD-ROM, DVD-R, DVD-RW.
-
Blu-ray Disc (BD):
- Uses a blue-violet laser (shorter wavelength).
- Capacity: 25 GB (single layer), 50 GB (dual layer).
- Used for HD video and large data storage.
Working: A laser beam is focused on the spinning disk; pits and lands represent binary data (0s and 1s), which are read by detecting reflected light.
Advantages: Portable, cheap, good for distribution.
Disadvantages: Prone to scratches, lower capacity than modern drives, slower access.
What is an SSD (Solid State Drive)? Explain how it works and its advantages over HDD.
A Solid State Drive (SSD) is a non-volatile secondary storage device that stores data on interconnected flash memory chips with no moving mechanical parts.
Working:
- SSDs use NAND flash memory to store data in cells (electrically).
- A controller manages reading, writing, and data mapping.
- Since there are no spinning platters or moving heads, data access is nearly instantaneous.
Advantages of SSD over HDD:
- Faster read/write speeds and quick boot times.
- No moving parts, so more durable and shock-resistant.
- Silent operation (no noise).
- Lower power consumption and less heat.
- Lightweight and compact.
Disadvantages:
- More expensive per GB than HDD.
- Limited write/erase cycles.
- Data recovery can be difficult after failure.
Conclusion: SSDs offer superior speed and durability, making them ideal for modern laptops and performance-critical systems.
Compare HDD and SSD on the basis of speed, cost, durability, and working principle.
Comparison between HDD and SSD:
| Basis | HDD (Hard Disk Drive) | SSD (Solid State Drive) |
|---|---|---|
| Working Principle | Stores data magnetically on spinning platters | Stores data electronically on flash memory chips |
| Moving Parts | Has moving parts (platters, heads) | No moving parts |
| Speed | Slower read/write and boot | Much faster |
| Durability | Less durable, sensitive to shock | Highly durable and shock-resistant |
| Noise | Produces noise | Silent |
| Power Consumption | Higher | Lower |
| Cost | Cheaper per GB | More expensive per GB |
| Capacity | Available in very large capacities cheaply | Costlier for large capacity |
Conclusion: HDDs are cost-effective for bulk storage, while SSDs are preferred for speed, durability, and performance.
What are I/O devices? Classify them with suitable examples.
I/O (Input/Output) Devices are hardware components used to communicate with the computer by feeding data into it (input) or receiving processed results from it (output).
Classification of I/O Devices:
-
Input Devices:
- Used to enter data and instructions into the computer.
- Examples: Keyboard, Mouse, Scanner, Microphone, Joystick, Light Pen.
-
Output Devices:
- Used to display or produce the result of processing.
- Examples: Monitor (LCD/LED), Printer, Plotter, Speaker, Projector.
-
Input-Output (Both) Devices:
- Perform both input and output functions.
- Examples: Touchscreen, Modem, Network card, Storage devices.
Role: I/O devices act as an interface between the user and the computer, enabling interaction and communication. Without them, humans could not provide data to or receive results from the computer.
Describe the keyboard as an input device. Explain the different types of keys found on a keyboard.
A Keyboard is the most common input device used to enter text, numbers, and commands into a computer. It works like a typewriter and sends key signals to the CPU when keys are pressed.
Types of Keys on a Keyboard:
-
Alphanumeric Keys: Include letters (A–Z) and numbers (0–9) used for typing text.
-
Numeric Keypad: A set of number keys arranged like a calculator, used for fast numeric entry.
-
Function Keys: Keys F1 to F12 that perform special functions depending on the software.
-
Control/Modifier Keys: Such as Ctrl, Alt, Shift, used in combination with other keys.
-
Navigation Keys: Arrow keys, Home, End, Page Up, Page Down used to move the cursor.
-
Special Purpose Keys: Enter, Spacebar, Backspace, Delete, Esc, Tab, Caps Lock.
Working: When a key is pressed, the keyboard controller generates a unique scan code, which is converted into a character code (like ASCII) and sent to the CPU.
Explain the mouse as a pointing device. Describe its types and functions.
A Mouse is a hand-operated pointing input device used to control the movement of the cursor on the screen and to select items through a graphical user interface.
Functions of a Mouse:
- Pointing: Moving the cursor on the screen.
- Clicking: Selecting objects (left/right click).
- Double-clicking: Opening files or programs.
- Dragging: Moving objects while holding the button.
- Scrolling: Using the scroll wheel to move up/down.
Types of Mouse:
- Mechanical Mouse: Uses a rubber ball to detect movement (older type).
- Optical Mouse: Uses an LED and sensor to detect motion; more accurate.
- Laser Mouse: Uses a laser for higher precision on various surfaces.
- Wireless Mouse: Connects via Bluetooth or RF without cables.
- Trackball Mouse: User rolls a ball instead of moving the whole device.
Working: The mouse detects movement and translates it into cursor movement, sending position and button-press signals to the computer.
What is an LCD? Explain its working principle and advantages as a display device.
An LCD (Liquid Crystal Display) is a flat-panel output/display device that uses liquid crystals to produce images. It is widely used in monitors, laptops, televisions, and mobile devices.
Working Principle:
- LCDs contain a layer of liquid crystals placed between two transparent electrodes and polarizing filters.
- A backlight provides illumination.
- When an electric current is applied, the liquid crystals align to allow or block light passing through, forming pixels.
- Combined with color filters (RGB), these pixels create colored images.
Advantages of LCD:
- Thin and lightweight compared to CRT monitors.
- Low power consumption.
- Less heat and radiation emission.
- Sharp images with no flicker.
- Space-saving flat design.
Disadvantages:
- Limited viewing angles (in older models).
- Fixed native resolution.
- Backlight may fade over time.
Conclusion: LCDs replaced bulky CRT monitors due to their efficiency, clarity, and compact design.
What is a Scanner? Explain its working and describe different types of scanners.
A Scanner is an input device that converts physical documents, images, or text into a digital format that can be stored and processed by a computer.
Working:
- The scanner shines a bright light onto the document.
- Reflected light is captured by sensors (CCD – Charge Coupled Device).
- The light intensity is converted into digital signals (pixels).
- The digital image is then transferred to the computer.
Types of Scanners:
- Flatbed Scanner: Document is placed on a flat glass surface; commonly used for documents and photos.
- Handheld Scanner: A small portable scanner moved manually over the document.
- Sheetfed Scanner: The document is fed through the scanner while the sensor stays fixed.
- Drum Scanner: High-resolution scanner used for professional printing.
- Barcode Scanner: Reads barcodes on products.
- OMR/OCR/MICR Scanners: Special scanners for marks, characters, and cheque processing.
Uses: Digitizing documents, photos, barcodes, and enabling OCR for text recognition.
Describe a Plotter. How is it different from a printer? Explain its types.
A Plotter is an output device used to produce high-quality, large-scale vector graphics such as engineering drawings, maps, architectural plans, and blueprints. It uses pens to draw continuous lines on paper.
Types of Plotters:
- Drum Plotter: Paper is placed on a rotating drum, and pens move horizontally while the drum rotates.
- Flatbed Plotter: Paper is fixed on a flat surface, and pens move in both X and Y directions.
- Inkjet Plotter: Uses ink spray instead of pens for large color prints.
Difference between Plotter and Printer:
| Basis | Plotter | Printer |
|---|---|---|
| Output Type | Vector graphics (line drawings) | Text and raster images |
| Method | Draws continuous lines using pens | Prints using dots |
| Use | CAD, maps, engineering designs | General documents and images |
| Size | Handles very large paper | Standard paper sizes |
| Cost | Expensive | Relatively cheaper |
Conclusion: Plotters are specialized for precise, large-format line drawings, unlike general-purpose printers.
Explain different types of printers with their working, advantages, and disadvantages.
A Printer is an output device that produces a hard copy (paper output) of digital documents and images. Printers are classified as Impact and Non-Impact types.
1. Impact Printers: Print by striking an inked ribbon against paper.
- Dot Matrix Printer: Uses a matrix of pins to form characters.
- Advantages: Cheap, can print multiple carbon copies.
- Disadvantages: Noisy, low print quality, slow.
2. Non-Impact Printers: Print without physical contact.
-
Inkjet Printer: Sprays tiny droplets of liquid ink onto paper.
- Advantages: Good quality color printing, quiet, affordable.
- Disadvantages: Slow, ink is expensive, ink may smudge.
-
Laser Printer: Uses a laser beam and toner powder fused onto paper by heat.
- Advantages: Fast, high quality, economical for high volume.
- Disadvantages: Costly, color laser printers are expensive.
-
Thermal Printer: Uses heat on special paper (used in billing/POS).
Conclusion: The choice of printer depends on cost, print quality, speed, and purpose.
Explain any five latest I/O devices available in the market and their uses.
Modern computing has introduced several advanced I/O devices offering better interaction, accuracy, and convenience.
Latest I/O Devices:
-
Touchscreen Displays: Act as both input and output; users interact directly by touching the screen. Used in smartphones, tablets, ATMs, and kiosks.
-
Biometric Devices: Fingerprint scanners, face recognition cameras, and iris scanners used for secure authentication.
-
VR Headsets (Virtual Reality): Provide immersive 3D visual and motion input/output for gaming, training, and simulations.
-
Smart Voice Assistants (Voice I/O): Devices like smart speakers use microphones (input) and speakers (output) with speech recognition (e.g., Alexa, Google Assistant).
-
3D Printers: Output devices that create physical 3D objects layer by layer from digital models.
-
Gesture Recognition Devices / Motion Sensors: Detect hand and body movements as input (e.g., Kinect, LEAP Motion).
-
Stylus/Digital Pen with Graphic Tablets: Precise input for designers and artists.
Conclusion: These modern devices enhance human-computer interaction with more natural, secure, and immersive experiences.
Distinguish between primary memory and secondary memory in detail.
Difference between Primary and Secondary Memory:
| Basis | Primary Memory | Secondary Memory |
|---|---|---|
| Definition | Main memory directly accessible by CPU | Auxiliary storage for permanent data |
| Access by CPU | Accessed directly | Not accessed directly; data loaded into RAM first |
| Volatility | Usually volatile (RAM) | Non-volatile |
| Speed | Very fast | Slower |
| Cost | Expensive per unit | Cheaper per unit |
| Capacity | Limited (MB to GB) | Very large (GB to TB) |
| Examples | RAM, ROM, Cache | HDD, SSD, DVD, Flash Drive |
| Purpose | Temporary working storage during processing | Permanent storage of data and programs |
Summary:
- Primary memory is fast, close to the CPU, and used during active processing, but is limited and often volatile.
- Secondary memory provides large, permanent, and cost-effective storage but is slower and cannot be directly accessed by the CPU.
Both work together: data is stored permanently in secondary memory and loaded into primary memory for processing.
Define computer memory. Explain the different types of memory used in a computer system.
Computer Memory refers to the physical devices used to store data, instructions, and information either temporarily or permanently for processing by the computer.
Types of Memory:
-
Primary Memory (Main Memory):
- Directly accessible by the CPU.
- Fast but limited in size and generally volatile.
- Includes RAM (volatile) and ROM (non-volatile).
-
Secondary Memory (Auxiliary Storage):
- Used for permanent storage of large amounts of data.
- Non-volatile and cheaper per unit of storage.
- Examples: HDD, SSD, Flash Drives, Optical Disks.
-
Cache Memory:
- Very high-speed memory placed between CPU and main memory.
- Stores frequently used data to speed up processing.
-
Registers:
- Smallest and fastest memory located inside the CPU.
- Holds data currently being processed.
Memory can be broadly classified as volatile (loses data when power is off) and non-volatile (retains data without power).
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 →