Unit 2: Memory, I/O and languages
Information Technology notes · PTU syllabus (BSIT104/BSBC104)
On this page
Unit summary
Memory stores data and programs, devices move information in and out, and languages let people instruct computers. This unit covers memory types — magnetic core, RAM, ROM, secondary and cache — input/output units, storage devices, printer types, machine, assembly, high-level and fourth-generation languages, compilers, interpreters and assemblers, and system and application software.
After this unit you can
- Explain types of memory
- Explain input, output and storage devices and printers
- Distinguish generations of programming languages and translators
- Distinguish system and application software
PTU syllabus topics
- Memory types (magnetic core, RAM, ROM, secondary, cache)
- input/output units
- storage devices
- printer types
- machine/assembly/high-level/4GL languages
- compilers
- interpreters
- assemblers
- system and application software
- Registers
Fastest, smallest, inside the CPU
- Cache
Very fast, small
- Main memory (RAM)
Fast, volatile
- Secondary storage
SSD, HDD: large, slower
- Archival storage
Tape, cloud: largest, slowest
Topic 1
Memory types
Examples
RAM, ROM, cache
Hard disk, SSD, pen drive, DVD
Volatility
RAM volatile; ROM non-volatile
Non-volatile
Speed
Fast
Slower
Capacity and cost
Small, costly per GB
Large, cheap per GB
Storage units: 8 bits = 1 byte; 1 KB = 1024 bytes; MB, GB, TB follow in steps of 1024.
- Magnetic core memory: early primary memory (1950s–1970s) using tiny magnetised rings — non-volatile but replaced by semiconductor RAM.
- Cache memory: small, very fast memory between CPU and RAM holding frequently used data — levels L1, L2, L3.
- Registers
Fastest, smallest
- Cache
L1, L2, L3
- Main memory (RAM)
- Secondary storage
SSD, HDD
- Tertiary and offline storage
Tape, optical, cloud backup
Topic 2
Input and output units
Function
Send data into the computer
Present results from the computer
Examples
Keyboard, mouse, scanner, microphone, webcam, touch screen, barcode and QR readers, OMR, MICR
Monitor, printer, speakers, projector, plotter
Topic 3
Storage devices
- Magnetic: hard disk drives, magnetic tape; optical: CD, DVD, Blu-ray; solid-state: SSD, USB pen drives, memory cards; cloud storage: Google Drive, OneDrive.
- Comparison factors: capacity, speed, cost per GB, durability, portability.
Topic 4
Printer types
Impact
Dot matrix (multi-part forms), line printers
Non-impact
Inkjet (home, photos), laser (offices, fast, sharp text), thermal (receipts, labels)
Specialised
Plotters (engineering drawings), 3D printers
Topic 5
Programming languages and translators
Translation
Whole program at once
Line by line
Speed of execution
Faster
Slower
Errors
Reported after compiling the whole program
Reported line by line
Examples
C, C++
Python, JavaScript
Assemblers translate assembly language into machine code.
| Generation | Language |
|---|---|
| 1GL | Machine language (binary) |
| 2GL | Assembly language (mnemonics) |
| 3GL | High-level languages (C, Java, Python) |
| 4GL | Query and report languages (SQL) |
| 5GL | AI and logic languages (Prolog) |
- Fourth-generation languages (4GL): closer to human language, specify what is needed rather than how — SQL, report generators, MATLAB.
Topic 6
System and application software
Purpose
Runs and manages the computer
Performs specific user tasks
Examples
Windows, Linux, device drivers, utilities
MS Word, Tally, browsers
User interaction
Indirect
Direct
Dependence
Runs independently
Needs system software to run
Key terms
- RAM
- Volatile read-write main memory
- Cache
- High-speed memory between CPU and RAM
- SSD
- Solid-state drive using flash memory
- Assembler
- Translates assembly language into machine code
- 4GL
- Fourth-generation, non-procedural language
Quick revision
- Magnetic core, RAM (SRAM, DRAM), ROM (PROM, EPROM, EEPROM), cache, secondary; memory hierarchy.
- Input and output devices.
- Magnetic, optical, solid-state, cloud storage.
- Impact and non-impact printers.
- Machine, assembly, high-level, 4GL; compiler, interpreter, assembler; system vs application software.
Important exam questions
Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).
Short-answer questions
- Q1.Distinguish RAM and ROM.
- Q2.What is cache memory?
- Q3.Name four input devices.
- Q4.Distinguish impact and non-impact printers.
- Q5.Distinguish a compiler and an interpreter.
- Q6.Give two examples each of system and application software.
Long-answer questions
- Q1.Explain the types of memory and the memory hierarchy.
- Q2.Explain input, output and storage devices.
- Q3.Explain generations of programming languages and language translators.
- Q4.Distinguish system software and application software with examples.
Stuck on this unit?
Message SBS on WhatsApp for help with Information Technology, or to ask about studying B.Sc IT at Synetic.
