Hard Disk Drive(HDD)
π is part of a computer system which reads from and writes data on a disk which in turn becomes a file.
π A high capacity magnetic disk made up of metal which can be fixed in the system unit of the computer.
π Serves as a secondary storage.
π The amount of time it takes to retrieve (or store) data from (or to) disk is called the disk access time.
@Computer_science_course
π is part of a computer system which reads from and writes data on a disk which in turn becomes a file.
π A high capacity magnetic disk made up of metal which can be fixed in the system unit of the computer.
π Serves as a secondary storage.
π The amount of time it takes to retrieve (or store) data from (or to) disk is called the disk access time.
@Computer_science_course
4. Input/Output (IO) Devices
βΆοΈ Input Devices
π Is the unit used to enter data into the computer so that it can be processed.
π It converts information from a form suitable to human beings to one understandable by the computer.
πKeyboard
πMouse
πScanner and etc.
βΆοΈ Output Devices
π Used to get data out of a computer so that it can be examined, analyzed or distributed to others.
π Convert the result of the only-machine understandable form to a form understandable by human beings.
πThe Visual Display Unit (VDU) or monitor or screen,
πPrinters and etc
@Computer_science_course
βΆοΈ Input Devices
π Is the unit used to enter data into the computer so that it can be processed.
π It converts information from a form suitable to human beings to one understandable by the computer.
πKeyboard
πMouse
πScanner and etc.
βΆοΈ Output Devices
π Used to get data out of a computer so that it can be examined, analyzed or distributed to others.
π Convert the result of the only-machine understandable form to a form understandable by human beings.
πThe Visual Display Unit (VDU) or monitor or screen,
πPrinters and etc
@Computer_science_course
5. Communication Bus
π We have seen that there are different components of a computer and each performs a specific function.
π But to perform a given task in synchronized form there should be some mechanism of communication.
π For this reason, there is an electronic circuit which produces communication path between the different components of a computer system along which
data are transferred, that is Bus.
βΆοΈ Internal Bus
which communicates the different parts of the CPU.
βΆοΈ External Bus
which communicates the CPU with memory and peripheral devices.
π The size of the bus determines the speed of
efficiency of the computer.
@Computer_science_course
π We have seen that there are different components of a computer and each performs a specific function.
π But to perform a given task in synchronized form there should be some mechanism of communication.
π For this reason, there is an electronic circuit which produces communication path between the different components of a computer system along which
data are transferred, that is Bus.
βΆοΈ Internal Bus
which communicates the different parts of the CPU.
βΆοΈ External Bus
which communicates the CPU with memory and peripheral devices.
π The size of the bus determines the speed of
efficiency of the computer.
@Computer_science_course
Computer Software
π Software serves as an interface between a user and a computer.
π Hardware needs instructions in order to solve problem.
π The finite set of instructions (steps) that the computer follows to perform a given job is called a program.
π Any program to be executed first it should reside / loaded/ in the memory.
@Computer_science_course
π Software serves as an interface between a user and a computer.
π Hardware needs instructions in order to solve problem.
π The finite set of instructions (steps) that the computer follows to perform a given job is called a program.
π Any program to be executed first it should reside / loaded/ in the memory.
@Computer_science_course
Computer software is classified into two
1. System Software
2. Application Software
@Computer_science_course
1. System Software
2. Application Software
@Computer_science_course
1. System Software
Constitutes those programs which facilitates the work of the computer hardware.
π It organizes and manages the machineβs resources, handles the input/output devices.
π It controls the hardware by performing functions that users shouldnβt have to or are unable to handle.
π System programs make complex hardware more users friendly.
π It acts as intermediate between the user and the hardware.
π It enables the computer understand programming languages i.e. it serves as means of communication between user and a computer.
πThe important categories of system software are:
I. Operating system
II. Language software
@Computer_science_course
Constitutes those programs which facilitates the work of the computer hardware.
π It organizes and manages the machineβs resources, handles the input/output devices.
π It controls the hardware by performing functions that users shouldnβt have to or are unable to handle.
π System programs make complex hardware more users friendly.
π It acts as intermediate between the user and the hardware.
π It enables the computer understand programming languages i.e. it serves as means of communication between user and a computer.
πThe important categories of system software are:
I. Operating system
II. Language software
@Computer_science_course
Operating system (OS)
π Operating system coordinates the activity between the user and the computer.
π It serves as an intermediary between programs and hardwares.
Types of Operating Systems:
i. Single-user / Single tasking OS
π Only one program can be
run on a computer at a time.
π Also can serve only
one user at a time.
ii. Single-user / multi-tasking OS
π desktop and laptop computers now day
π popular OS's Like
πLinux (Ubuntu)
πWindows
πmacOS
iii. Multi-user
π Unix, VMS and mainframe operating systems, such as MVS (Multiple Virtual Storage).
iv. Real Time Operating System
π is capable of processing data so quickly that the results are available to influence the activity currently taking place.
π are used to control machinery, scientific instruments and industrial systems.
@Computer_science_course
π Operating system coordinates the activity between the user and the computer.
π It serves as an intermediary between programs and hardwares.
Types of Operating Systems:
i. Single-user / Single tasking OS
π Only one program can be
run on a computer at a time.
π Also can serve only
one user at a time.
ii. Single-user / multi-tasking OS
π desktop and laptop computers now day
π popular OS's Like
πLinux (Ubuntu)
πWindows
πmacOS
iii. Multi-user
π Unix, VMS and mainframe operating systems, such as MVS (Multiple Virtual Storage).
iv. Real Time Operating System
π is capable of processing data so quickly that the results are available to influence the activity currently taking place.
π are used to control machinery, scientific instruments and industrial systems.
@Computer_science_course
2. Language Software
πAre software which are used by programmers to develop application software and translate programs to machine code.
πLanguage software is a generic name consisting of various programs that serve as
π editors
π and translators to develop programs in a number of programming languages.
@Computer_science_course
πAre software which are used by programmers to develop application software and translate programs to machine code.
πLanguage software is a generic name consisting of various programs that serve as
π editors
π and translators to develop programs in a number of programming languages.
@Computer_science_course
Translator
π program that converts one or more languages to another language.
βΆοΈ Three types of translators
I) Assemblers:
is a program that translates assembly languages into machine code.
II) Compiler:
is a program that translates a high level language into machine code.
>> creates an executable program.
π C++, JAVA, C# and e.t.c
III) Interpreter:
is a program that translates each instruction of high level language & executes the instruction before translating the next instruction.
π PHP, JAVASCRIPT, PYTHON and e.t.c
@Computer_science_course
π program that converts one or more languages to another language.
βΆοΈ Three types of translators
I) Assemblers:
is a program that translates assembly languages into machine code.
II) Compiler:
is a program that translates a high level language into machine code.
>> creates an executable program.
π C++, JAVA, C# and e.t.c
III) Interpreter:
is a program that translates each instruction of high level language & executes the instruction before translating the next instruction.
π PHP, JAVASCRIPT, PYTHON and e.t.c
@Computer_science_course
βΆοΈ High-level programming languages
Vs
βΆοΈ Low-level programming languages
βΆοΈ A High-level language
is a programming language designed to simplify computer programming.
π High-level source code contains easy-to-read syntax for human.
π Most common programming languages are considered
high-level languages.
C++, C#, Java, JavaScript, PHP, Python...
βΆοΈ A Low-level language
π is a programming language that deals with a computer's hardware components and constraints.
π May also be referred to as a computerβs native language.
π Machine language and assembly language are popular examples of low-level languages.
@Computer_science_course
Vs
βΆοΈ Low-level programming languages
βΆοΈ A High-level language
is a programming language designed to simplify computer programming.
π High-level source code contains easy-to-read syntax for human.
π Most common programming languages are considered
high-level languages.
C++, C#, Java, JavaScript, PHP, Python...
βΆοΈ A Low-level language
π is a programming language that deals with a computer's hardware components and constraints.
π May also be referred to as a computerβs native language.
π Machine language and assembly language are popular examples of low-level languages.
@Computer_science_course
βΆοΈ Procedural
Vs βΆοΈ Object Oriented
Vs βΆοΈ Structured programming languages
βΆοΈ A procedural programming language
πconsists of a set of procedure calls and a set of code for each procedure. Example: BASIC
βΆοΈ A structural programming language emphasizes on separating a programβs data from its functionality. Example: C
βΆοΈ Object oriented languages are based on entities known as objects. Example: Java
@Computer_science_course
Vs βΆοΈ Object Oriented
Vs βΆοΈ Structured programming languages
βΆοΈ A procedural programming language
πconsists of a set of procedure calls and a set of code for each procedure. Example: BASIC
βΆοΈ A structural programming language emphasizes on separating a programβs data from its functionality. Example: C
βΆοΈ Object oriented languages are based on entities known as objects. Example: Java
@Computer_science_course
Application Software
π Is software that is designed to perform tasks for the specific area or areas by using more than one installation.
π Are usually called application packages as they may include a number of programs along with operating instruction, documentation and so forth.
@Computer_science_course
π Is software that is designed to perform tasks for the specific area or areas by using more than one installation.
π Are usually called application packages as they may include a number of programs along with operating instruction, documentation and so forth.
@Computer_science_course
Virus
β οΈ Is the most common type of malware,
and it's defined as a malicious program that can execute itself and spreads by infecting other programs or files.
β οΈ A virus is a piece of software that can "infect" other programs by modifying them.
β οΈ Similar to biological virus: Replicates and Spreads Some exists to simply replicate
themselves.
β οΈ Others can do serious damage such as erasing fileβ¦
@Computer_science_course
β οΈ Is the most common type of malware,
and it's defined as a malicious program that can execute itself and spreads by infecting other programs or files.
β οΈ A virus is a piece of software that can "infect" other programs by modifying them.
β οΈ Similar to biological virus: Replicates and Spreads Some exists to simply replicate
themselves.
β οΈ Others can do serious damage such as erasing fileβ¦
@Computer_science_course
Worm
β οΈIs a type of malware that can self-replicate without a host program.
β οΈ Worms typically spread without any human interaction or directives from the malware authors.
β οΈ A Trojan horse is a malicious program that is designed to appear as a legitimate program.
β οΈ once activated following installation, Trojans can execute their malicious functions.
@Computer_science_course
β οΈIs a type of malware that can self-replicate without a host program.
β οΈ Worms typically spread without any human interaction or directives from the malware authors.
β οΈ A Trojan horse is a malicious program that is designed to appear as a legitimate program.
β οΈ once activated following installation, Trojans can execute their malicious functions.
@Computer_science_course
Spyware
β οΈ Is a kind of malware that is designed to collect information and data on users and observe their activity without users' knowledge.
Other types of malware include functions or features designed for a specific purpose.
Ransomware
β οΈ for example, is designed to infect a user's system and encrypt the data.
β οΈ Cybercriminals then demand a ransom payment from the victim in exchange for decrypting the system's data.
@Computer_science_course
β οΈ Is a kind of malware that is designed to collect information and data on users and observe their activity without users' knowledge.
Other types of malware include functions or features designed for a specific purpose.
Ransomware
β οΈ for example, is designed to infect a user's system and encrypt the data.
β οΈ Cybercriminals then demand a ransom payment from the victim in exchange for decrypting the system's data.
@Computer_science_course
Computer Number System
1. Bit:
π Is the smallest unit of data representation.
π Is a space that can hold a single state.
2. Byte:
π Is the smallest unit of data measurement.
π Is a single group of 8 bits. [1 Byte = 8 Bits.]
3. Word:
π Is a group of 8 Bytes. [1 word = 8 Bytes.]
@Computer_science_course
1. Bit:
π Is the smallest unit of data representation.
π Is a space that can hold a single state.
2. Byte:
π Is the smallest unit of data measurement.
π Is a single group of 8 bits. [1 Byte = 8 Bits.]
3. Word:
π Is a group of 8 Bytes. [1 word = 8 Bytes.]
@Computer_science_course
Decimal Number System
Z = {0,1,2,3,4,5,6,7,8,9};
Base = 10
π Each position to the left of a digit increases by a power of 10.
π Each position to the right of a digit decreases by a power of 10.
@Computer_science_course
Z = {0,1,2,3,4,5,6,7,8,9};
Base = 10
π Each position to the left of a digit increases by a power of 10.
π Each position to the right of a digit decreases by a power of 10.
@Computer_science_course
Binary Number System
π Has two states 1(ON state)
and 0(OFF state).
Z = {0,1};
Base = 2
Unsigned number representation
With n bits we can represent 2^n unsigned integer numbers.
β οΈRemember: This ^ Indicates The Power Of
βοΈ Range: from 0 to 2^n -1
So with 8 bits we can represent 2^8 = (256) numbers from 0 to 2^8 -1 = (255).
π Each position to the left of a digit increases by a power of 2.
π Each position to the right of a digit decreases by a power of 2.
Example:
(11001)2 = 1*2^0 + 0*2^1 + 0*2^2 + 1*2^3 + 1*2^4
= (25)10
@Computer_science_course
π Has two states 1(ON state)
and 0(OFF state).
Z = {0,1};
Base = 2
Unsigned number representation
With n bits we can represent 2^n unsigned integer numbers.
β οΈRemember: This ^ Indicates The Power Of
βοΈ Range: from 0 to 2^n -1
So with 8 bits we can represent 2^8 = (256) numbers from 0 to 2^8 -1 = (255).
π Each position to the left of a digit increases by a power of 2.
π Each position to the right of a digit decreases by a power of 2.
Example:
(11001)2 = 1*2^0 + 0*2^1 + 0*2^2 + 1*2^3 + 1*2^4
= (25)10
@Computer_science_course
Signed number representation
βΆοΈ Here we would need to consider sign, meaning we represent both positive and negative numbers.
π Sign and magnitude
With this method we reserve the most significant bit of the left most bit for sign.
This bit is called sign bit.
range becomes from -2^n-1 -1 to 2^n-1 -1
@Computer_science_course
βΆοΈ Here we would need to consider sign, meaning we represent both positive and negative numbers.
π Sign and magnitude
With this method we reserve the most significant bit of the left most bit for sign.
This bit is called sign bit.
range becomes from -2^n-1 -1 to 2^n-1 -1
@Computer_science_course