Unit 1: Computer fundamentals
Fundamentals of Computer and Programming in Python notes · PTU syllabus (PGCA1902)
On this page
- Unit summary
- Hardware and software concepts
- Functional units of a computer
- CPU, registers and the system bus
- Memory unit and motherboard
- Input and output devices
- Data representation and number systems
- Machine, assembly and high-level languages
- The operating system as a user interface
- Emerging technologies: an introduction
- Key terms
- Quick revision
- Important questions
Unit summary
Every program runs on hardware managed by software. This unit covers hardware and software concepts, the CPU, registers, system bus, memory unit and motherboard, input and output devices, primary, secondary and auxiliary memory and cache, data representation and number systems, machine, assembly and high-level languages, the operating system as a user interface, and an introduction to Bluetooth, cloud computing, big data, data mining, mobile computing and IoT.
After this unit you can
- Explain hardware, software and the functional units of a computer
- Describe the CPU, registers, buses, memory and motherboard
- Convert between number systems and explain data representation
- Compare language levels and introduce emerging technologies
PTU syllabus topics
- Hardware and software concepts
- CPU/registers/system bus/memory unit/motherboard
- I/O devices
- primary/secondary/auxiliary memory and cache
- data representation (bit, byte, binary/decimal/hexadecimal/octal systems and conversions)
- machine/assembly/high-level languages
- operating system as user interface
- introduction to Bluetooth
- cloud computing
- big data
- data mining
- mobile computing and IoT
- Registers
Inside the CPU: fastest
- Cache
L1, L2, L3
- Main memory
RAM
- Secondary storage
SSD, HDD
- Auxiliary storage
Tape, cloud, optical
Topic 1
Hardware and software concepts
Nature
Physical, tangible parts
Programs and data; intangible
Examples
CPU, RAM, keyboard, disk
Windows, Python interpreter, MS Word
Failure
Wears out, damaged physically
Bugs; does not wear out
Types
Input, output, processing, storage, communication devices
System software, application software, utilities
Topic 2
Functional units of a computer
- 1Input unit
Accepts data and instructions
- 2Memory unit
Stores data and programs
- 3Control unit
Directs and coordinates all operations
- 4Arithmetic logic unit
Performs calculations and comparisons
- 5Output unit
Presents results
The CPU = control unit + ALU (+ registers).
Topic 3
CPU, registers and the system bus
- Program counter (PC)
- Address of the next instruction
- Instruction register (IR)
- Instruction being executed
- Memory address register (MAR)
- Address of the memory location to access
- Memory data register (MDR)
- Data read from or written to memory
- Accumulator (AC)
- Holds intermediate results of ALU operations
- General-purpose and status (flag) registers
- Working data; carry, zero, sign flags
- 1Fetch
PC → MAR; instruction read into MDR and IR; PC incremented
- 2Decode
Control unit interprets the opcode
- 3Execute
ALU performs the operation
- 4Store
Result written to a register or memory
Data bus
Actual data
Bidirectional
Address bus
Memory or I/O addresses (width decides addressable memory — 32 bits address 4 GB)
CPU to memory
Control bus
Read, write, clock, interrupt signals
Both ways
Topic 4
Memory unit and motherboard
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
- Motherboard: the main circuit board connecting all components — CPU socket, RAM slots, chipset, BIOS/UEFI firmware chip, PCIe expansion slots, SATA and M.2 storage connectors, USB and audio ports, power connectors and the CMOS battery.
Topic 5
Input and 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
Topic 6
Data representation and number systems
- Bit: a binary digit (0 or 1); nibble: 4 bits; byte: 8 bits; word: the CPU's natural unit (32 or 64 bits). Characters are stored as codes — ASCII (7 bits) and Unicode (UTF-8, up to 4 bytes).
Binary
2: 0, 1
1011₂ = 11
Octal
8: 0–7
13₈ = 11
Decimal
10: 0–9
11
Hexadecimal
16: 0–9, A–F
B₁₆ = 11
- 1Decimal to base b
Divide repeatedly by b and read remainders bottom to top
- 2Base b to decimal
Multiply each digit by its place value (power of b) and add
- 3Binary to octal or hex
Group bits in threes or fours from the right
- 4Octal or hex to binary
Write each digit as 3 or 4 bits
Example
45₁₀ → 45 ÷ 2 gives remainders 1, 0, 1, 1, 0, 1 → 101101₂ = 55₈ = 2D₁₆. 3F₁₆ = 3 × 16 + 15 = 63₁₀.
Topic 7
Machine, assembly and high-level languages
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 8
The operating system as a user interface
- The OS sits between users and hardware, managing processes, memory, files and devices and offering an interface: a command-line interface (Linux shell, Windows PowerShell), a graphical user interface (Windows, macOS, GNOME) or touch and voice interfaces (Android, iOS, assistants).
Topic 9
Emerging technologies: an introduction
- Bluetooth
- Short-range wireless (about 10 m) in the 2.4 GHz band for headsets, keyboards, wearables
- Cloud computing
- On-demand computing resources over the internet — IaaS, PaaS, SaaS
- Big data
- Very large, fast, varied data — volume, velocity, variety, veracity, value
- Data mining
- Discovering patterns in large data — association, classification, clustering
- Mobile computing
- Computing on the move with smartphones, tablets and wireless networks
- Internet of Things (IoT)
- Everyday objects with sensors connected to the internet — smart meters, wearables
Key terms
- Register
- Small, very fast storage inside the CPU
- System bus
- Set of data, address and control lines connecting components
- Motherboard
- Main circuit board connecting all computer parts
- Cache memory
- Fast memory between CPU and RAM
- Hexadecimal
- Base-16 number system using 0–9 and A–F
Quick revision
- Hardware vs software; input, memory, ALU, control unit, output.
- Registers PC, IR, MAR, MDR, AC; fetch–decode–execute; data, address and control buses.
- Memory hierarchy; primary, secondary, auxiliary, cache; motherboard parts.
- Bit, byte, ASCII, Unicode; binary, octal, decimal, hex conversions.
- 1GL to 5GL; compiler, interpreter, assembler; OS interfaces; Bluetooth, cloud, big data, mining, mobile, IoT.
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 hardware and software.
- Q2.What is the role of the program counter?
- Q3.Name the three buses of a system bus.
- Q4.Convert 156₁₀ to binary and hexadecimal.
- Q5.Distinguish a compiler and an interpreter.
- Q6.What is the Internet of Things?
Long-answer questions
- Q1.Explain the functional units of a computer and the CPU's registers.
- Q2.Explain the types of memory and the memory hierarchy.
- Q3.Explain number systems and conversions with examples.
- Q4.Explain the generations of programming languages and emerging technologies.
Stuck on this unit?
Message SBS on WhatsApp for help with Fundamentals of Computer and Programming in Python, or to ask about studying M.Sc IT at Synetic.
