SlideShare a Scribd company logo
Transforming Data
into Information
Lesson 3
This lesson includes the following
sections:
• How Computers Represent Data?
• How Computers Process Data?
• Factors Affecting Processing Speed.
• Extending the Processor's Power to Other Devices.
• Binary Numbers
• The Binary Number System
• Bits and Bytes
• Text Codes
How Computers Represent Data
How Computers Represent Data
– Binary Numbers
• Computer processing is performed by transistors, which
are switches with only two possible states: on and off.
• All computer data is converted to a series of binary
numbers– 1 and 0. For example, you see a sentence as a
collection of letters, but the computer sees each letter as a
collection of 1s and 0s.
• If a transistor is assigned a value of 1, it is on. If it has a
value of 0, it is off. A computer's transistors can be
switched on and off millions of times each second.
Ten different
symbols in
the decimal
system
Numbers above 9
use more than 1 digit
00
11
113
102
1010
1001
1000
111
110
101
100
Base 2
4
5
10
9
8
7
6
Base 10
• To convert data into strings of numbers,
computers use the binary number
system.
• Humans use the decimal system
(“deci”stands for “ten”).
• The binary number system works the
same way as the decimal system, but has
only two available symbols (0 and 1)
rather than ten (0, 1, 2, 3, 4, 5, 6, 7, 8,
and 9).
The Binary Number System
• A single unit of data is called a bit, having a value of 1 or
0.
• Computers work with collections of bits, grouping them to
represent larger pieces of data, such as letters of the
alphabet.
• Eight bits make up one byte. A byte is the amount of
memory needed to store one alphanumeric character.
• With one byte, the computer can represent one of 256
different symbols or characters.
.
How Computers Represent Data - Bits and Bytes
1 0 1 1 0 0 1 01 0 0 1 0 0 1 01 0 0 1 0 0 1 11 1 1 1 1 1 1 1
• A text code is a system that uses binary numbers (1s and
0s) to represent characters understood by humans (letters
and numerals).
• An early text code system, called EBCDIC, uses eight-bit
codes, but is used primarily in older mainframe systems.
• In the most common text-code set, ASCII, each character
consists of eight bits (one byte) of data. ASCII is used in
nearly all personal computers.
• In the Unicode text-code set, each character consists of 16
bits (two bytes) of data.
How Computers Represent Data - Text Codes
000110000
100110001
300110011
200110010
E
D
C
B
A
5
4
Character
00110100
00110101
01000101
01000100
01000011
01000010
01000001
Code
Examples from the
ASCII Text Code
Where Processing Occurs:
• The Control Unit
• The Arithmetic Logic Unit
• Machine Cycles
• The Role of Memory in Processing
• Types of RAM
How Computers Process Data
• Processing takes place in the PC's central processing unit
(CPU).
• The system's memory also plays a crucial role in
processing data.
• Both the CPU and memory are attached to the system's
motherboard, which connects all the computer's devices
together, enabling them to communicate.
How Computers Process Data –
Where Processing Occurs
The two main parts of a CPU are the control unit and the
arithmetic logic unit (ALU)
• The control unit directs the flow of data through the
CPU, and to and from other devices.
• The control unit stores the CPU's microcode, which
contains the instructions for all the tasks the CPU can
perform.
How Computers Process Data –
The Control Unit
• The actual manipulation of data takes place in the ALU.
• The ALU can perform arithmetic and logic operations.
• The ALU is connected to a set of registers—small
memory areas in the CPU, which hold data and program
instructions while they are being processed.
How Computers Process Data –
The Arithmetic Logic Unit
Logical
Operations
≤, ≤ less than or equal to,
not less than or equal to
^ Raise by a power
≥, ≥ greater than or equal to,
not greater than or equal to
÷ Divide
<, < less than, not less thanx Multiply
>, > greater than, not greater than− Subtract
=, ≠ equal to, not equal to+ Add
Arithmetic
Operations
ALU Operations List
• The CPU follows a set of steps-called a machine cycle-for
each instruction it carries out.
• By using a technique called pipelining, many CPUs can
process more than one instruction at a time.
• The machine cycle includes two smaller cycles:
During the instruction cycle, the CPU "fetches" a
command or data from memory and "decodes" it for the
CPU.
During the execution cycle, the CPU carries out the
instruction, and may store the instruction's result in
memory.
How Computers Process Data –
Machine Cycles
• RAM stores data and program code needed by the CPU.
The contents of RAM change rapidly and often.
• Read-only memory (ROM) is nonvolatile (or permanent).
It holds instructions that run the computer when the power
is first turned on.
• The CPU accesses each location in memory by using a
unique number, called the memory address.
How Computers Process Data –
The Role of Memory
There are two basic types of RAM: static and dynamic
• Dynamic RAM (DRAM) chips must be recharged with
electricity very frequently, or they will lose their contents.
• Static RAM (SRAM) does not need to be recharged as
often as DRAM, and can hold its contents longer.
Another type of RAM, called flash memory, can store its
contents after power is turned off. Flash memory is used in
digital cameras to store pictures.
How Computers Process Data -
Types of RAM
• Registers
• RAM
• The System Clock
• The Bus
• Cache Memory
Factors Affecting Processing Speed
• The CPU contains a number of small memory areas,
called registers, which store data and instructions while
the CPU processes them.
• The size of the registers (also called word size)
determines the amount of data with which the computer
can work at a one time.
• Today, most PCs have 32-bit registers, mean the CPU can
process four bytes of data at one time. Register sizes are
rapidly growing to 64 bits.
Factors Affecting Processing Speed – Registers
• The amount of RAM in a PC has a direct affect on the
system's speed.
• The more RAM a PC has, the more program instructions
and data can be held in memory, which is faster than
storage on disk.
• If a PC does not have enough memory to run a program,
it must move data between RAM and the hard disk
frequently. This process, called swapping, can greatly
slow a PC's performance.
Factors Affecting Processing Speed – RAM
More RAM = Better Performance!
• The computer's system clock sets the pace for the CPU by
using a vibrating quartz crystal.
• A single "tick" of the clock is the time required to turn a
transistor off and back on. This is called a clock cycle.
• Clock cycles are measured in Hertz (Hz), a measure of
cycles per second. If a computer has a clock speed of 300
MHz, then its system clock "ticks" 300 million times every
second.
• The faster a PC's clock runs, the more instructions the PC
can execute each second.
Factors Affecting Processing Speed –
The System Clock
• A bus is a path between the components of a computer.
Data and instructions travel along these paths.
• The data bus' width determines how many bits can be
transmitted between the CPU and other devices.
• The address bus runs only between the CPU and RAM,
and carries nothing but memory addresses for the CPU to
use.
• Peripheral devices are connected to the CPU by an
expansion bus.
Factors Affecting Processing Speed –
The Bus
• Cache memory is high-speed memory that holds the most
recent data and instructions that have been loaded by the
CPU.
• Cache is located directly on the CPU or between the CPU
and RAM, making it faster than normal RAM.
• CPU-resident cache is called Level-1 (L1) cache.
External cache is called Level-2 (L2) cache.
• The amount of cache memory has a tremendous impact
on the computer's speed.
Factors Affecting Processing Speed –
Cache Memory
• Ports
• Expansion Slots and Boards
Extending the Processor's Power
to Other Devices
• External devices—such as those used for input and
output—are connected to the system by ports on the
back of the computer.
• PCs feature a number of built-in ports, which are ready
to accept devices such as a printer, mouse, keyboard,
phone line, microphone and speakers, and others.
• Most computers come with a serial port and a parallel
port. A serial port transmits one bit of data at a time; a
parallel port transmits data one byte at a time.
Extending the Processor's Power
to Other Devices – Ports
• If the PC does not have a port for an external device,
you can install an expansion board into one of the empty
expansion slots.
• A board provides the correct port for the new device,
and connects the device to the CPU by way of the
computer's expansion bus.
• Newer bus technologies such as Universal Serial Bus
(USB) and IEEE 1394 enable many devices to be
connected to one port.
• Small Computer System Interface (SCSI) is an older
standard for extending the bus to multiple devices
through a single port.
Adding Other Devices –
Expansion Slots and Boards
Lesson 3 Review
• Explain any two reasons why computers use the binary
number system.
• List the two main parts of the CPU and explain how they
work together.
• Explain the difference between RAM and ROM.
• Identify two RAM technologies used in PCs.
• Explain three hardware factors that affect processing
speed.
• Identify four connections used to attach devices to a PC.

More Related Content

What's hot

Introduction to computer hardware
Introduction to computer hardwareIntroduction to computer hardware
Introduction to computer hardware
Mirea Mizushima
 
Introduction To Operating System
Introduction To Operating SystemIntroduction To Operating System
Introduction To Operating System
Laguna State Polytechnic University
 
Computer processors
Computer processorsComputer processors
Computer processors
JashanpreetSingh471900
 
Computer hardware and its components
Computer hardware and its componentsComputer hardware and its components
Computer hardware and its components
DIrectorate of Information Technology, Govt. of KPK
 
Evolution of Computer
Evolution of Computer Evolution of Computer
Evolution of Computer
Ohi Alam
 
Parts of a Computer
Parts of a ComputerParts of a Computer
Parts of a Computer
Matt Shea
 
CPU and its components
CPU and its componentsCPU and its components
CPU and its components
samina khan
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
saurabh sen sky
 
The History and Generation of Computers
The History and Generation of ComputersThe History and Generation of Computers
The History and Generation of Computers
Shayan Amir
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
mkhisalg
 
Introduction to computer system
Introduction to computer systemIntroduction to computer system
Introduction to computer system
Gc university faisalabad
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
Nimrah Shahbaz
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer
CUO VEERANAN VEERANAN
 
Computer software
Computer softwareComputer software
Computer software
Maneesh Singh
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
Prabesh Shrestha
 
Storage devices
Storage devicesStorage devices
Storage devices
rabail asghar
 
Computer software
Computer softwareComputer software
Computer software
Burhan Ahmed
 
Introduction To Computer 1
Introduction To Computer  1Introduction To Computer  1
Introduction To Computer 1
Amit Chandra
 

What's hot (20)

Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
 
Introduction to computer hardware
Introduction to computer hardwareIntroduction to computer hardware
Introduction to computer hardware
 
Introduction To Operating System
Introduction To Operating SystemIntroduction To Operating System
Introduction To Operating System
 
Computer processors
Computer processorsComputer processors
Computer processors
 
Computer hardware and its components
Computer hardware and its componentsComputer hardware and its components
Computer hardware and its components
 
Evolution of Computer
Evolution of Computer Evolution of Computer
Evolution of Computer
 
Parts of a Computer
Parts of a ComputerParts of a Computer
Parts of a Computer
 
CPU and its components
CPU and its componentsCPU and its components
CPU and its components
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
The History and Generation of Computers
The History and Generation of ComputersThe History and Generation of Computers
The History and Generation of Computers
 
Types and components of computer system
Types and components of computer systemTypes and components of computer system
Types and components of computer system
 
Introduction to computer system
Introduction to computer systemIntroduction to computer system
Introduction to computer system
 
Processors and its Types
Processors and its TypesProcessors and its Types
Processors and its Types
 
1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer1.1.7 Block diagram and Working Principle of Computer
1.1.7 Block diagram and Working Principle of Computer
 
Computer software
Computer softwareComputer software
Computer software
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
Storage devices
Storage devicesStorage devices
Storage devices
 
Computer software
Computer softwareComputer software
Computer software
 
What is a computer?
What is a computer?What is a computer?
What is a computer?
 
Introduction To Computer 1
Introduction To Computer  1Introduction To Computer  1
Introduction To Computer 1
 

Similar to BCS 100: Introduction to Computer Science Lesson 3

Transforming data into information
Transforming data into informationTransforming data into information
Transforming data into information
Maryam Fida
 
Computer Fundamentals.pptx
Computer Fundamentals.pptxComputer Fundamentals.pptx
Computer Fundamentals.pptx
JaimeCanchela1
 
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdffundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
AlihaAzmat1
 
Fundamental of Computers
Fundamental of ComputersFundamental of Computers
Fundamental of Computers
Dr. Himanshu Gupta
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
Blue Elephant Consulting
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
ssuser45ae56
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
oudesign
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
limsh
 
Transforming Data into Information
Transforming Data into InformationTransforming Data into Information
Transforming Data into Information
Bint-e- Hawa
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
DrVaibhavMeshram
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
LearnersCoach
 
Ch01.pptx
Ch01.pptxCh01.pptx
Ch01.pptx
Prince201726
 
Computer architecture pptx
Computer architecture pptxComputer architecture pptx
Computer architecture pptx
MDSHABBIR12
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
Kiran Bagale
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.ppt
MollyZolly
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.ppt
LathaSrinivas5
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
berekethailu2
 

Similar to BCS 100: Introduction to Computer Science Lesson 3 (20)

Transforming data into information
Transforming data into informationTransforming data into information
Transforming data into information
 
Computer Fundamentals.pptx
Computer Fundamentals.pptxComputer Fundamentals.pptx
Computer Fundamentals.pptx
 
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdffundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
 
Fundamental of Computers
Fundamental of ComputersFundamental of Computers
Fundamental of Computers
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
 
BAIT1003 Chapter 2
BAIT1003 Chapter 2BAIT1003 Chapter 2
BAIT1003 Chapter 2
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Cao u1
Cao u1Cao u1
Cao u1
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Transforming Data into Information
Transforming Data into InformationTransforming Data into Information
Transforming Data into Information
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
 
Ch01.pptx
Ch01.pptxCh01.pptx
Ch01.pptx
 
Computer architecture pptx
Computer architecture pptxComputer architecture pptx
Computer architecture pptx
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
 
Brief Introduction.ppt
Brief Introduction.pptBrief Introduction.ppt
Brief Introduction.ppt
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.ppt
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
 

Recently uploaded

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 

Recently uploaded (20)

Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 

BCS 100: Introduction to Computer Science Lesson 3

  • 2. This lesson includes the following sections: • How Computers Represent Data? • How Computers Process Data? • Factors Affecting Processing Speed. • Extending the Processor's Power to Other Devices.
  • 3. • Binary Numbers • The Binary Number System • Bits and Bytes • Text Codes How Computers Represent Data
  • 4. How Computers Represent Data – Binary Numbers • Computer processing is performed by transistors, which are switches with only two possible states: on and off. • All computer data is converted to a series of binary numbers– 1 and 0. For example, you see a sentence as a collection of letters, but the computer sees each letter as a collection of 1s and 0s. • If a transistor is assigned a value of 1, it is on. If it has a value of 0, it is off. A computer's transistors can be switched on and off millions of times each second.
  • 5. Ten different symbols in the decimal system Numbers above 9 use more than 1 digit
  • 6. 00 11 113 102 1010 1001 1000 111 110 101 100 Base 2 4 5 10 9 8 7 6 Base 10 • To convert data into strings of numbers, computers use the binary number system. • Humans use the decimal system (“deci”stands for “ten”). • The binary number system works the same way as the decimal system, but has only two available symbols (0 and 1) rather than ten (0, 1, 2, 3, 4, 5, 6, 7, 8, and 9). The Binary Number System
  • 7. • A single unit of data is called a bit, having a value of 1 or 0. • Computers work with collections of bits, grouping them to represent larger pieces of data, such as letters of the alphabet. • Eight bits make up one byte. A byte is the amount of memory needed to store one alphanumeric character. • With one byte, the computer can represent one of 256 different symbols or characters. . How Computers Represent Data - Bits and Bytes
  • 8. 1 0 1 1 0 0 1 01 0 0 1 0 0 1 01 0 0 1 0 0 1 11 1 1 1 1 1 1 1
  • 9. • A text code is a system that uses binary numbers (1s and 0s) to represent characters understood by humans (letters and numerals). • An early text code system, called EBCDIC, uses eight-bit codes, but is used primarily in older mainframe systems. • In the most common text-code set, ASCII, each character consists of eight bits (one byte) of data. ASCII is used in nearly all personal computers. • In the Unicode text-code set, each character consists of 16 bits (two bytes) of data. How Computers Represent Data - Text Codes
  • 11. Where Processing Occurs: • The Control Unit • The Arithmetic Logic Unit • Machine Cycles • The Role of Memory in Processing • Types of RAM How Computers Process Data
  • 12. • Processing takes place in the PC's central processing unit (CPU). • The system's memory also plays a crucial role in processing data. • Both the CPU and memory are attached to the system's motherboard, which connects all the computer's devices together, enabling them to communicate. How Computers Process Data – Where Processing Occurs
  • 13.
  • 14. The two main parts of a CPU are the control unit and the arithmetic logic unit (ALU) • The control unit directs the flow of data through the CPU, and to and from other devices. • The control unit stores the CPU's microcode, which contains the instructions for all the tasks the CPU can perform. How Computers Process Data – The Control Unit
  • 15.
  • 16. • The actual manipulation of data takes place in the ALU. • The ALU can perform arithmetic and logic operations. • The ALU is connected to a set of registers—small memory areas in the CPU, which hold data and program instructions while they are being processed. How Computers Process Data – The Arithmetic Logic Unit
  • 17. Logical Operations ≤, ≤ less than or equal to, not less than or equal to ^ Raise by a power ≥, ≥ greater than or equal to, not greater than or equal to ÷ Divide <, < less than, not less thanx Multiply >, > greater than, not greater than− Subtract =, ≠ equal to, not equal to+ Add Arithmetic Operations ALU Operations List
  • 18. • The CPU follows a set of steps-called a machine cycle-for each instruction it carries out. • By using a technique called pipelining, many CPUs can process more than one instruction at a time. • The machine cycle includes two smaller cycles: During the instruction cycle, the CPU "fetches" a command or data from memory and "decodes" it for the CPU. During the execution cycle, the CPU carries out the instruction, and may store the instruction's result in memory. How Computers Process Data – Machine Cycles
  • 19. • RAM stores data and program code needed by the CPU. The contents of RAM change rapidly and often. • Read-only memory (ROM) is nonvolatile (or permanent). It holds instructions that run the computer when the power is first turned on. • The CPU accesses each location in memory by using a unique number, called the memory address. How Computers Process Data – The Role of Memory
  • 20.
  • 21. There are two basic types of RAM: static and dynamic • Dynamic RAM (DRAM) chips must be recharged with electricity very frequently, or they will lose their contents. • Static RAM (SRAM) does not need to be recharged as often as DRAM, and can hold its contents longer. Another type of RAM, called flash memory, can store its contents after power is turned off. Flash memory is used in digital cameras to store pictures. How Computers Process Data - Types of RAM
  • 22. • Registers • RAM • The System Clock • The Bus • Cache Memory Factors Affecting Processing Speed
  • 23. • The CPU contains a number of small memory areas, called registers, which store data and instructions while the CPU processes them. • The size of the registers (also called word size) determines the amount of data with which the computer can work at a one time. • Today, most PCs have 32-bit registers, mean the CPU can process four bytes of data at one time. Register sizes are rapidly growing to 64 bits. Factors Affecting Processing Speed – Registers
  • 24. • The amount of RAM in a PC has a direct affect on the system's speed. • The more RAM a PC has, the more program instructions and data can be held in memory, which is faster than storage on disk. • If a PC does not have enough memory to run a program, it must move data between RAM and the hard disk frequently. This process, called swapping, can greatly slow a PC's performance. Factors Affecting Processing Speed – RAM
  • 25.
  • 26. More RAM = Better Performance!
  • 27. • The computer's system clock sets the pace for the CPU by using a vibrating quartz crystal. • A single "tick" of the clock is the time required to turn a transistor off and back on. This is called a clock cycle. • Clock cycles are measured in Hertz (Hz), a measure of cycles per second. If a computer has a clock speed of 300 MHz, then its system clock "ticks" 300 million times every second. • The faster a PC's clock runs, the more instructions the PC can execute each second. Factors Affecting Processing Speed – The System Clock
  • 28. • A bus is a path between the components of a computer. Data and instructions travel along these paths. • The data bus' width determines how many bits can be transmitted between the CPU and other devices. • The address bus runs only between the CPU and RAM, and carries nothing but memory addresses for the CPU to use. • Peripheral devices are connected to the CPU by an expansion bus. Factors Affecting Processing Speed – The Bus
  • 29.
  • 30. • Cache memory is high-speed memory that holds the most recent data and instructions that have been loaded by the CPU. • Cache is located directly on the CPU or between the CPU and RAM, making it faster than normal RAM. • CPU-resident cache is called Level-1 (L1) cache. External cache is called Level-2 (L2) cache. • The amount of cache memory has a tremendous impact on the computer's speed. Factors Affecting Processing Speed – Cache Memory
  • 31.
  • 32. • Ports • Expansion Slots and Boards Extending the Processor's Power to Other Devices
  • 33. • External devices—such as those used for input and output—are connected to the system by ports on the back of the computer. • PCs feature a number of built-in ports, which are ready to accept devices such as a printer, mouse, keyboard, phone line, microphone and speakers, and others. • Most computers come with a serial port and a parallel port. A serial port transmits one bit of data at a time; a parallel port transmits data one byte at a time. Extending the Processor's Power to Other Devices – Ports
  • 34. • If the PC does not have a port for an external device, you can install an expansion board into one of the empty expansion slots. • A board provides the correct port for the new device, and connects the device to the CPU by way of the computer's expansion bus. • Newer bus technologies such as Universal Serial Bus (USB) and IEEE 1394 enable many devices to be connected to one port. • Small Computer System Interface (SCSI) is an older standard for extending the bus to multiple devices through a single port. Adding Other Devices – Expansion Slots and Boards
  • 35. Lesson 3 Review • Explain any two reasons why computers use the binary number system. • List the two main parts of the CPU and explain how they work together. • Explain the difference between RAM and ROM. • Identify two RAM technologies used in PCs. • Explain three hardware factors that affect processing speed. • Identify four connections used to attach devices to a PC.