CS 101 Chapter 2
CS 101 Chapter 2
Learning Outcomes:
At the end of the topic, students should name and explain the components of
computer system, basic computer operations, distinguish the different types of computer
according to its applications, know the advantages and disadvantages of a High Level
and Low Level Languages, Understand on how to make a Python Classes in the
Integrated Development Environment (IDE) of Python Programming Language, and
Understand the different data types used in the Python Program.
Indicative Content:
• Memory System
• Random Access Memory
• Read Only Memory
• Secondary Storage Devices
Discussion:
There are two kinds of computer memory: primary and secondary. Primary memory is
accessible directly by the processing unit. RAM is an example of primary memory. As soon
as the computer is switched off the contents of the primary memory is lost. You can store and
retrieve data much faster with primary memory compared to secondary memory. Secondary
memory such as floppy disks, magnetic disk, etc., is located outside the computer.
Primary memory is more expensive than secondary memory. Because of this the size of
primary memory is less than that of secondary memory. We will discuss about secondary
memory later on memory is more expensive than secondary memory. Because of this the size
of primary memory is less than that of secondary memory. We will discuss about secondary
memory later on.
You know that each cell of memory contains one character or 1 byte of data. So the
capacity is defined in terms of byte or words. Thus 64 kilobyte (KB) memory is capable of
storing 64 1024 = 32,768 bytes. (1 kilobyte is 1024 bytes). A memory size ranges from few
kilobytes in small systems to several thousand kilobytes in large mainframe and
supercomputer. In your personal computer you will find memory capacity in the range of 64
KB, 4 MB, 8 MB and even 16 MB(MB = Million bytes).
Hard Disk
The hard disk drive is the main, and usually largest data storage device in a computer.
It is a non-volatile, random access digital magnetic data storage device. A hard drive is made
up of platters which stored the data, and read/write heads to transfer data. A Hard Drive is
generally the fastest of the secondary storage devices, and has the largest data storage
capacity, approximately the same as Magnetic Tapes. Hard drives however, are not very
portable and are primarily used internally in a computer system. Some persons use hard
drives externally as a form of storage and as a substitute for portable storage, hard drives used
for these purposes are called external hard drives.
Optical Discs
Optical disk is an electronic data storage medium from which data is read and written
to by using a low-powered laser beam. It is flat, circular, plastic or glass disk on which data is
stored in the form of light and dark pits. There are three basic types of optical disks: Read-
only optical disks, Write once read many Optical disks and Rewritable Optical disks. Two
main types of optical disks are:
CD - is an abbreviation of compact disk, and is a form of data storage that can transfer
data up to the speed of 7800 KB/s. A standard 120 mm CD holds up to 700 MB
of data, or about 70 minutes of audio. There are two types of CD: CD-ROM and
CD-RW, CD-ROM are stands for CD-Read Only Memory and they function the
same way Read Only Memory Does. CD-RW Stards for CD-Rewritable, these
disks can be erased and rewritten at any time.
DVD - is an abbreviation of Digital Versatile Disc, and is an optical disc storage
media format that can be used for data storage. The DVD supports disks with
capacities of 4.7 GB to 17 GB and access rates of 600 KBps to 1.3 MBps. A
standard DVD disc store up to 4.7 GB of data. There are two types of DVD's:
DVD-ROM and DVD-RW. DVD-ROM stands for DVD-Read Only Memory
and they function the same way Read Only Memory Does. DVD-RW stands for
DVD-Rewritable, these disks can be erased and rewritten at any time.
Flash Drive
A flash drive is a small external storage device, typically the size of a human thumb
that consists of flash memory. USB flash drives are removable and rewritable reads and
writes to flash memory. They are a solid-state storage medium that's both inexpensive and
durable. Currently, USB 2.0 flash drives on the market are able to reach a data transfer speed
of 480 Mbit/s and USB 3.0 has transmission speeds of up to 5 Gbit/s. USB Flash drives vary
in sizes from 8 Megabytes to 512 Gigabytes. More commonly used sizes vary from 2
Gigabytes.
References:
• A Practical Introduction to Python Programming by Brian Heinold/ebook
• Getting Started with Python and IDLE/ebook
• A Python Book: Beginning Python, Advanced Python, and Python Exercises by Dave
Kuhlman/ebook
• Python Basics/ebook
Prepared by:
RIO L. VERGABERA, ME
Course Facilitator