Unit 2: Memory and I/O Devices - Subjective Questions
DCAP101 • Practice Questions with Detailed Answers
20 questions
Define computer memory and explain its major types.
Computer memory is the storage area in which a computer keeps data, instructions, and processing results.
The major types of memory are:
- Primary memory: Memory directly accessible by the CPU. It includes RAM, ROM, cache, and registers. It is fast but generally has limited capacity.
- Secondary memory: Non-volatile storage used to preserve data for a long period. Examples include hard disk drives, solid-state drives, flash drives, DVDs, and memory cards.
- Volatile memory: Memory that loses its contents when power is switched off. RAM is the main example.
- Non-volatile memory: Memory that retains its contents even when power is removed. ROM, hard disks, SSDs, and flash drives are examples.
Thus, primary memory supports immediate processing, while secondary memory provides long-term storage.
Explain the different units used to measure computer memory and show their relationships.
Computer memory is measured using the following units:
- Bit: The smallest unit of data; it can represent either or .
- Nibble: A group of bits.
- Byte: A group of bits.
- Kilobyte: .
- Megabyte: .
- Gigabyte: .
- Terabyte: .
- Petabyte: .
For example, the number of bytes in is:
These binary relationships are commonly used when describing memory, although storage manufacturers may also use decimal units.
What is RAM? Explain its functions and major types.
Random Access Memory or RAM is a primary, volatile memory that temporarily stores programs, data, and results currently being used by the CPU.
Functions of RAM:
- Holds the operating system and active applications.
- Stores data being processed by the CPU.
- Allows fast read and write operations.
- Supports multitasking by keeping several programs active.
- Improves system performance when sufficient capacity is available.
Major types:
- SRAM: Static RAM is very fast and does not require frequent refreshing. It is expensive and is mainly used in cache memory.
- DRAM: Dynamic RAM requires continuous refreshing. It is slower than SRAM but less expensive and is commonly used as the main memory.
RAM loses its data when power is switched off, so permanent files must be saved on secondary storage.
Define ROM and describe its different types.
Read-Only Memory or ROM is non-volatile primary memory that stores permanent instructions required for starting and controlling a computer. Its contents remain available when power is turned off.
Types of ROM:
- Mask ROM: Programmed by the manufacturer and normally cannot be changed.
- PROM: Programmable Read-Only Memory can be programmed once by a user.
- EPROM: Erasable Programmable Read-Only Memory can be erased using ultraviolet light and programmed again.
- EEPROM: Electrically Erasable Programmable Read-Only Memory can be erased and rewritten electrically.
- Flash ROM: A faster form of EEPROM that can be erased and rewritten in blocks.
ROM commonly stores firmware, such as the BIOS or UEFI instructions used during the booting process.
Distinguish between RAM and ROM.
RAM and ROM differ in the following ways:
| Basis | RAM | ROM |
|---|---|---|
| Full form | Random Access Memory | Read-Only Memory |
| Nature | Volatile | Non-volatile |
| Data retention | Loses data when power is removed | Retains data without power |
| Operations | Supports frequent reading and writing | Mainly used for reading, though some types can be rewritten |
| Purpose | Stores active programs and data | Stores firmware and startup instructions |
| Speed | Generally faster | Generally slower than RAM |
| Capacity | Usually larger than ROM in a computer | Usually smaller than RAM |
In summary, RAM is temporary working memory, whereas ROM provides permanent instructions needed for basic system operation.
Compare primary memory and secondary memory with suitable examples.
| Feature | Primary memory | Secondary memory |
|---|---|---|
| CPU access | Directly accessible by the CPU | Accessed through input-output controllers |
| Speed | Very fast | Comparatively slower |
| Capacity | Usually limited | Usually much larger |
| Cost | More expensive per unit of storage | Less expensive per unit of storage |
| Data retention | May be volatile or non-volatile | Normally non-volatile |
| Purpose | Holds instructions and data currently in use | Provides long-term storage |
| Examples | RAM, ROM, cache, and registers | HDD, SSD, DVD, flash drive, and memory card |
Primary and secondary memory work together. A program is stored permanently in secondary memory and is loaded into primary memory before the CPU executes it.
Describe secondary storage devices and explain why they are necessary in a computer system.
Secondary storage devices are non-volatile devices used to store programs and data permanently or for long periods.
Examples include:
- Hard disk drives
- Solid-state drives
- USB flash drives
- Memory cards
- CDs, DVDs, and Blu-ray disks
- Magnetic tapes
They are necessary because they:
- Retain information when power is turned off.
- Provide much more storage capacity than primary memory.
- Store operating systems, applications, documents, and multimedia.
- Support backup and recovery of important data.
- Allow information to be transferred between devices.
- Provide economical storage for large amounts of data.
However, secondary storage is usually slower than RAM and its data must generally be loaded into primary memory before processing.
Explain the construction and working of a hard disk drive. Mention its advantages and limitations.
A hard disk drive or HDD is a magnetic secondary storage device.
Main components:
- Platters: Circular disks coated with magnetic material.
- Spindle: Rotates the platters at high speed.
- Read-write heads: Read data from and write data to platter surfaces.
- Actuator arm: Positions the heads over the required track.
- Controller: Manages communication between the drive and computer.
Working:
- Data is organized into tracks and sectors on the platters.
- The spindle rotates the platters.
- The actuator moves a read-write head to the required location.
- The head detects magnetic patterns while reading or changes them while writing.
- The controller transfers the data to or from the computer.
Advantages:
- High storage capacity
- Low cost per gigabyte
- Suitable for large files and backups
Limitations:
- Mechanical parts can wear out or be damaged by shock.
- Slower and noisier than an SSD.
- Consumes more power than flash-based storage.
What is a flash drive? Describe its working, uses, advantages, and precautions.
A flash drive is a compact, portable secondary storage device that uses non-volatile flash memory and normally connects through a USB port.
Working:
- Data is stored electronically in flash-memory cells.
- A built-in controller manages reading, writing, and communication through USB.
- Because there are no moving parts, access is quick and silent.
Uses:
- Transferring files between computers
- Carrying presentations and documents
- Creating bootable installation media
- Temporarily backing up important files
Advantages:
- Small, lightweight, and reusable
- Resistant to ordinary mechanical shock
- Faster and more convenient than many optical disks
- Available in large capacities
Precautions:
- Use the safe-eject option before removal.
- Scan the drive for malware.
- Avoid heat, moisture, and physical damage.
- Encrypt confidential information.
- Maintain another backup because flash drives can be lost or fail.
Explain optical disks and describe how data is read from and written to them.
Optical disks are removable storage media that use laser light to read and, where supported, write data. Common examples are CDs, DVDs, and Blu-ray disks.
Reading data:
- Data is represented by microscopic changes on a spiral track.
- A low-power laser beam is directed at the disk surface.
- Different reflection patterns are detected by an optical sensor.
- The drive converts these patterns into binary data.
Writing data:
- On recordable disks, a stronger laser changes a dye layer to create readable marks.
- On rewritable disks, the laser changes the physical state of a special material, allowing data to be erased and written again.
Advantages:
- Easy to distribute and transport
- Not affected by magnetic fields
- Useful for music, movies, software, and archival copies
Limitations:
- Lower capacity and speed than many modern drives
- Easily scratched
- Requires a compatible optical drive
Describe a DVD and compare it with a CD and a Blu-ray disk.
A Digital Versatile Disc or DVD is an optical disk used to store video, software, audio, and general data. A standard single-layer DVD commonly stores about , while a dual-layer DVD stores about .
| Feature | CD | DVD | Blu-ray |
|---|---|---|---|
| Typical single-layer capacity | About | About | About |
| Laser | Infrared | Red | Blue-violet |
| Data density | Low | Higher than CD | Highest among the three |
| Common use | Music and small files | Movies and software | High-definition video and large files |
DVDs store more data than CDs because they use smaller marks and more closely spaced tracks. Blu-ray disks use a shorter-wavelength laser, allowing even greater data density. DVD formats include DVD-ROM, DVD-R, DVD+R, DVD-RW, and DVD+RW.
Describe the keyboard as an input device and explain the functions of its main groups of keys.
A keyboard is an input device used to enter text, numbers, symbols, and commands into a computer.
Main groups of keys:
- Alphanumeric keys: Letters, numbers, punctuation marks, and symbols.
- Function keys: Keys such as F1 to F12 that perform application-specific operations.
- Modifier keys: Shift, Ctrl, Alt, and similar keys used with other keys to change their functions.
- Navigation keys: Arrow keys, Home, End, Page Up, and Page Down for moving through content.
- Editing keys: Backspace, Delete, Insert, and Enter.
- Numeric keypad: Provides fast entry of numbers and arithmetic operators.
- Special keys: Esc, Tab, Caps Lock, Windows or Command key, and Print Screen.
When a key is pressed, the keyboard controller identifies its key code and sends the corresponding signal to the computer for interpretation.
Explain the working of a computer mouse and compare mechanical, optical, and wireless mice.
A mouse is a pointing input device used to move the on-screen pointer and perform actions such as clicking, selecting, dragging, and scrolling.
Working:
- Movement is detected by a ball or an optical sensor.
- The movement is converted into horizontal and vertical coordinate changes.
- These signals are sent to the computer.
- The operating system moves the pointer accordingly.
Comparison:
- Mechanical mouse: Uses a rubber ball and internal rollers. It requires regular cleaning and is now uncommon.
- Optical mouse: Uses an LED, image sensor, and processor to detect movement. It is accurate and has no moving ball.
- Laser mouse: Uses a laser for higher sensitivity and may work on a wider range of surfaces.
- Wireless mouse: Communicates through Bluetooth or a radio-frequency USB receiver. It reduces cable clutter but requires batteries or charging.
Modern mice may also include programmable buttons, touch-sensitive surfaces, and adjustable sensitivity.
What is an LCD? Explain its basic working and list its advantages and limitations.
LCD stands for Liquid Crystal Display. It is an output device used in computer monitors, televisions, laptops, calculators, and mobile devices.
Basic working:
- A backlight produces light behind the display panel.
- Liquid-crystal cells are placed between polarizing layers.
- Electrical signals change the orientation of the liquid crystals.
- This controls how much light passes through each cell.
- Red, green, and blue subpixels combine at different intensities to produce colors.
Advantages:
- Thin and lightweight
- Low power consumption
- Produces sharp images at its native resolution
- Generates less heat than older CRT displays
- Occupies less desk space
Limitations:
- Image quality may reduce outside the ideal viewing angle.
- Damaged pixels may remain stuck or dead.
- Some panels have slower response times.
- The backlight and panel can degrade over time.
Describe the scanner as an input device. Explain its working and common types.
A scanner is an input device that converts printed text, photographs, or drawings into digital form.
Working:
- The document is placed on or passed through the scanner.
- A light source illuminates the document.
- Reflected light is captured by CCD or CIS sensors.
- The sensor converts light intensity and color into electrical signals.
- The scanner software creates a digital image.
- Optical Character Recognition or OCR may convert scanned printed text into editable text.
Common types:
- Flatbed scanner: The document is placed on a glass surface; suitable for photographs and books.
- Sheet-fed scanner: Pulls individual pages through the device; useful for offices.
- Handheld scanner: Moved manually across an object or document.
- Drum scanner: Provides very high image quality for professional work.
- Barcode and QR scanner: Reads coded product or information labels.
What is a plotter? Compare a plotter with a printer and mention its applications.
A plotter is an output device designed to produce large, precise drawings and graphics. Traditional plotters draw lines using pens, while modern large-format plotters often use inkjet technology.
| Basis | Plotter | Printer |
|---|---|---|
| Main purpose | Produces precise technical and large-format drawings | Produces general text and images |
| Output size | Often supports very large paper sizes | Usually supports standard paper sizes |
| Precision | Very high line and dimensional accuracy | Adequate for ordinary documents and images |
| Typical users | Engineers, architects, and designers | Homes, schools, shops, and offices |
| Cost | Usually more expensive | Available across a wide price range |
Applications of plotters:
- Architectural plans
- Engineering drawings
- Maps and geographical charts
- Computer-aided design output
- Posters, banners, and signs
- Circuit and machine-part layouts
A plotter is preferred when size and dimensional accuracy are more important than ordinary high-speed document printing.
Classify printers into impact and non-impact printers. Explain their types, advantages, and limitations.
Printers can be classified into impact and non-impact printers.
Impact printers
They print by physically striking an inked ribbon against paper.
- Dot-matrix printer: Uses pins to form characters and images as patterns of dots.
- Daisy-wheel printer: Uses a wheel containing molded characters.
- Line printer: Prints an entire line at a time.
Advantages:
- Can print multipart or carbon-copy forms.
- Often has low running costs for basic text.
Limitations:
- Noisy and usually slow.
- Produces lower-quality graphics.
Non-impact printers
They print without striking the paper.
- Inkjet printer: Sprays tiny droplets of ink; suitable for color images.
- Laser printer: Uses toner, a photosensitive drum, and heat; fast and suitable for offices.
- Thermal printer: Uses heat-sensitive paper or transfers ink using heat; common for receipts and labels.
Advantages: Quiet operation, better print quality, and generally higher speed.
Limitations: Ink, toner, thermal paper, and maintenance can increase operating costs.
Explain the working process of a laser printer.
A laser printer is a non-impact printer that uses electrostatic charges, toner powder, and heat to produce output.
Printing process:
- Processing: The printer receives the document and converts it into a page image.
- Charging: A uniform electrical charge is applied to a photosensitive drum.
- Exposing: A laser beam scans the drum and creates an electrostatic image of the page.
- Developing: Charged toner particles attach to the required areas of the drum.
- Transferring: Paper passes near the drum and attracts the toner image.
- Fusing: Heated rollers melt and press the toner permanently onto the paper.
- Cleaning: Remaining toner is removed, and the drum is prepared for the next page.
Laser printers are valued for high speed, sharp text, quiet operation, and a low cost per page during high-volume printing.
Differentiate between input devices and output devices, giving suitable examples and explaining devices that can perform both functions.
Input devices send data and instructions to a computer, whereas output devices present processed information to the user.
| Category | Purpose | Examples |
|---|---|---|
| Input devices | Enter data or control signals | Keyboard, mouse, scanner, microphone, webcam, and barcode reader |
| Output devices | Present results | Monitor, printer, plotter, speakers, projector, and headphones |
Some devices perform both functions:
- Touchscreen: Displays information and receives touch input.
- Multifunction printer: Prints output and scans documents as input.
- Storage device: Receives data during writing and supplies it during reading.
- Network interface: Sends and receives digital data over a network.
- Virtual-reality headset: Displays visual and audio output while its sensors collect movement and position input.
Therefore, the classification depends on the direction in which data moves between the device, computer, and user.
Discuss recent I/O devices available in the market and explain how they improve human-computer interaction.
Recent I/O devices combine sensors, displays, wireless communication, and artificial intelligence to make interaction more natural.
Examples include:
- Touchscreen and foldable displays: Combine visual output with direct touch and gesture input.
- Virtual-reality headsets: Provide immersive visual and audio output while tracking head and hand movement.
- Augmented-reality glasses: Overlay digital information on the real-world view and may accept voice, gesture, and eye-tracking input.
- Haptic controllers and gloves: Provide force, vibration, or touch feedback while detecting hand movements.
- Biometric devices: Use fingerprints, facial features, iris patterns, or voice for secure input and authentication.
- 3D scanners: Capture the shape and dimensions of physical objects as digital models.
- 3D printers: Produce physical objects from digital designs.
- Voice assistants and smart speakers: Receive spoken input and provide audio output.
- Eye-tracking devices: Detect where a user is looking, supporting accessibility, gaming, and research.
- Wireless styluses: Provide pressure-sensitive handwriting and drawing input.
These devices improve accessibility, immersion, security, precision, and convenience. Their limitations may include high cost, privacy concerns, compatibility requirements, battery dependence, and the need for specialized software.
Define computer memory and explain its major types.
Computer memory is the storage area in which a computer keeps data, instructions, and processing results.
The major types of memory are:
- Primary memory: Memory directly accessible by the CPU. It includes RAM, ROM, cache, and registers. It is fast but generally has limited capacity.
- Secondary memory: Non-volatile storage used to preserve data for a long period. Examples include hard disk drives, solid-state drives, flash drives, DVDs, and memory cards.
- Volatile memory: Memory that loses its contents when power is switched off. RAM is the main example.
- Non-volatile memory: Memory that retains its contents even when power is removed. ROM, hard disks, SSDs, and flash drives are examples.
Thus, primary memory supports immediate processing, while secondary memory provides long-term storage.
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 →