Unit 2 of 4 · B.Sc IT Sem 1

Unit 2: Memory, I/O and languages

Information Technology notes · PTU syllabus (BSIT104/BSBC104)

3 min read6 topics10 exam questions
On this page
  1. Unit summary
  2. Memory types
  3. Input and output units
  4. Storage devices
  5. Printer types
  6. Programming languages and translators
  7. System and application software
  8. Key terms
  9. Quick revision
  10. Important questions

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
1

Topic 1

Memory types

RAM is volatile (loses data when power is off) and used for running programs; ROM is non-volatile and stores start-up firmware. Cache is a small, very fast memory between the CPU and RAM. Secondary memory stores data permanently.

ComparisonPrimary vs secondary memory
Primary memory
Secondary memory

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.
HierarchyMemory hierarchy
  1. Registers

    Fastest, smallest

  2. Cache

    L1, L2, L3

  3. Main memory (RAM)
  4. Secondary storage

    SSD, HDD

  5. Tertiary and offline storage

    Tape, optical, cloud backup

Example

Memory hierarchy in a laptop: CPU registers and cache (fastest, smallest), 8 GB RAM for open programs, and a 512 GB SSD for files. Opening a file copies it from the SSD into RAM so the CPU can work on it quickly.

Exam tip

Speed falls and capacity rises as we move from registers → cache → RAM → secondary storage.

2

Topic 2

Input and output units

ComparisonInput vs output devices
Input devices
Output devices

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

Example

Devices at a bank: a customer uses a card reader and keypad (input) at an ATM, sees instructions on the screen (output), and gets a printed slip (output). At the counter, a barcode scanner and a fingerprint scanner are input devices.

Exam tip

Some devices are both input and output — e.g. a touchscreen.

3

Topic 3

Storage devices

Storage devices are compared on capacity, speed, cost per GB, durability and portability.

  • 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.

Example

Choosing storage: a student keeps assignments on a 64 GB USB drive (portable), a laptop uses an SSD for fast start-up, and a company backs up years of records on magnetic tape because it is cheap for large volumes.

Exam tip

SSDs have no moving parts, so they are faster and more shock-resistant than HDDs.

4

Topic 4

Printer types

ClassificationPrinters
Printers
  • 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

Example

Choosing a printer: a shop printing multi-copy bills uses a dot matrix printer (impact, can print carbon copies); a home uses an inkjet for colour photos; an office uses a laser printer for fast, high-volume text printing.

Exam tip

Impact printers strike the paper and can print carbon copies; non-impact printers are quieter and better quality.

5

Topic 5

Programming languages and translators

Languages are machine language (binary), assembly language (mnemonics like ADD, MOV) and high-level languages (C, Java, Python). Translators convert them to machine code: an assembler for assembly language, and a compiler or interpreter for high-level languages.

ComparisonCompiler vs interpreter
Compiler
Interpreter

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.

GenerationLanguage
1GLMachine language (binary)
2GLAssembly language (mnemonics)
3GLHigh-level languages (C, Java, Python)
4GLQuery and report languages (SQL)
5GLAI and logic languages (Prolog)
  • Fourth-generation languages (4GL): closer to human language, specify what is needed rather than how — SQL, report generators, MATLAB.

Example

Compiler vs interpreter: a C program is compiled once into an executable file that runs quickly; a Python script is interpreted line by line, so it stops at the first error line and runs slower but is easier to test.

Exam tip

Assembler → assembly language; compiler → whole program at once; interpreter → line by line.

6

Topic 6

System and application software

ComparisonSystem vs application software
System software
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

Example

Software on one laptop: Windows (operating system), device drivers and antivirus (utilities) are system software; MS Word, a browser and a billing package are application software.

Exam tip

System software runs the computer; application software does the user's tasks.

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

  1. Q1.Distinguish RAM and ROM.
  2. Q2.What is cache memory?
  3. Q3.Name four input devices.
  4. Q4.Distinguish impact and non-impact printers.
  5. Q5.Distinguish a compiler and an interpreter.
  6. Q6.Give two examples each of system and application software.

Long-answer questions

  1. Q1.Explain the types of memory and the memory hierarchy.
  2. Q2.Explain input, output and storage devices.
  3. Q3.Explain generations of programming languages and language translators.
  4. 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.

WhatsApp us