CSC 180.1 · Introduction to Computer Science and BASIC Programming
Our notes
2 min readThe basic idea
A computer is an electronic machine that accepts data (input), processes it under the control of stored instructions (a program), stores it, and gives information (output).
Functional components
- Input unit: keyboard, mouse, scanner, microphone, camera, touch screen, sensors.
- Central Processing Unit (CPU):
- Control Unit (CU): fetches instructions, decodes them, directs the other parts.
- Arithmetic and Logic Unit (ALU): does arithmetic (+, −, ×, ÷) and logic (comparisons, AND, OR, NOT).
- Registers: tiny, very fast storage inside the CPU.
- Main memory (primary storage):
- RAM: read/write, holds running programs and data, volatile (lost when power goes).
- ROM: read-only, keeps start-up instructions (firmware), non-volatile.
- Cache: fast memory between CPU and RAM.
- Secondary storage: hard disk, SSD, flash drive, memory card, optical disc, cloud storage. Non-volatile and larger, but slower.
- Output unit: monitor, printer, speaker, projector.
Data moves between parts along buses (data, address and control buses).
The fetch-decode-execute cycle
The CPU repeatedly: fetches the next instruction from memory, decodes it, executes it, and stores the result. The clock speed (GHz) sets how many cycles per second.
Hardware, software and users
- Hardware: the physical parts.
- Software: programs. System software (operating systems such as Windows, Linux, Android; utilities; language translators) and application software (word processors, spreadsheets, games, apps).
- Liveware (humans): users, programmers, operators.
Units of storage
1 bit = a 0 or 1; 1 byte = 8 bits; 1 KB = 1,024 bytes; 1 MB = 1,024 KB; 1 GB = 1,024 MB; 1 TB = 1,024 GB. (Disk makers often use 1,000 instead of 1,024.)
Worked example
How many bits in 2 KB? 2 × 1,024 × 8 = 16,384 bits.
Characteristics of a computer
- Speed: millions or billions of operations per second.
- Accuracy: errors usually come from wrong data or programs ("garbage in, garbage out", GIGO).
- Storage: huge amounts of data kept and recalled.
- Diligence: no tiredness or boredom.
- Versatility: many kinds of tasks.
- Automation: follows a stored program without human help.
Limitations: no intelligence of its own beyond its programs, no feelings, needs power and maintenance.
Exams usually ask
- Draw and explain the block diagram of a computer.
- Distinguish RAM from ROM, and primary from secondary storage.
- State the characteristics and limitations of a computer.
Common mistake
Calling the system unit or the hard disk "the CPU". The CPU is the processor chip inside the system unit.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Workplace Software and Skills, 1.2 Computer Hardware and Networks
(opens openstax.org in a new tab)
OpenStax, Workplace Software and Skills, 1.2 Computer Hardware and Networks, CC BY-NC-SA 4.0 · licence
-
Computer hardware
(opens en.wikipedia.org in a new tab)
Wikipedia, Computer hardware, CC BY-SA 4.0 · licence
-
Central processing unit
(opens en.wikipedia.org in a new tab)
Wikipedia, Central processing unit, CC BY-SA 4.0 · licence
-
Von Neumann architecture
(opens en.wikipedia.org in a new tab)
Wikipedia, Von Neumann architecture, CC BY-SA 4.0 · licence
-
NOUN CIT 104: Introduction to Computers
NOUN course book (PDF, about 3 MB). Hardware, software and packages.
(opens nou.edu.ng in a new tab)
Watch
-
Introduction Functional Components of Computer
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Functional Components of Computer
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
Functional Components of Computer, Central Processing Unit, Components of CPU
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
CS2300 FCSD | Lec 01 | Functional components of a computer system
51 min · ≈ 230 MB · about ₦129
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.