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