0% found this document useful (0 votes)
66 views

Fundamental of Python Programming - Presentation1

The document discusses types of programming languages and differences between low-level and high-level languages. It defines programming languages as sets of symbols and codes used to write programs that allow humans to give computers instructions. Low-level languages like machine language and assembly language are close to hardware and use binary/symbols, while high-level languages use English-like terms and are easier for humans but require translation. The key differences are that low-level languages are faster but harder for humans, while high-level languages are easier for humans but slower due to translation.

Uploaded by

Ali bakari
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views

Fundamental of Python Programming - Presentation1

The document discusses types of programming languages and differences between low-level and high-level languages. It defines programming languages as sets of symbols and codes used to write programs that allow humans to give computers instructions. Low-level languages like machine language and assembly language are close to hardware and use binary/symbols, while high-level languages use English-like terms and are easier for humans but require translation. The key differences are that low-level languages are faster but harder for humans, while high-level languages are easier for humans but slower due to translation.

Uploaded by

Ali bakari
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

FUNDAMENTAL OF PYTHON PROGRAMMING

TYPES OF PROGRAMMING LANGUAGE AND


DIFFERENCES
• What is a Programming Language?
• A set of words, symbols and codes used to write programs is called programming language.
• Another definition: A programming language is a language that is designed to be used (read
and written) by humans to create programs that can be executed by computers.

• In other words, we can say that programming languages provides the way so that the
users may interact with the computer to give it commands and instructions to perform
certain tasks.
TYPES OF PROGRAMMING LANGUAGE AND
DIFFERENCES
TYPES OF PROGRAMMING LANGUAGE AND
DIFFERENCES
• With the help of computer language, a programmer tells a computer what
to do.
• Some popular computer programming languages are C++, C#, Java, Visual
Basic, Python, COBOL etc.
• These are examples of high-level programming languages.
• Whereas machine language and assembly language are called low level
programming language.
TYPES OF PROGRAMMING LANGUAGES

• There are two main types of computer programming


languages.
• low-level languages
• high-level languages.
LOW LEVEL PROGRAMMING LANGUAGES

• These languages are near to computer hardware and far from human
languages.
• Computer can understand these languages easily.
• Following are two low-level languages:
• Machine Language
• Assembly Language
MACHINE LANGUAGE
MACHINE LANGUAGE

• A computer language in which instructions are written


in binary form (0 and 1) is called machine language.
• It is the only language that is directly understood by the
computer.
• Machine language is the native language of computer.
MACHINE LANGUAGE
• Advantages of Machine Languages
• a) Very fast program execution:
• Because the machine language is the native language of computer
that computers directly understand and execute.
• b) There is no need of a translator program:
• Because computer can already understand and execute the machine
language instructions directly without the need of translation.
MACHINE LANGUAGE
• Disadvantages of Machine Languages:
a) Machine Language is difficult to understand
b) Machine Language is difficult to learn
c) Programs of Machine Language are difficult to modify
d) Machine Language requires deep knowledge of hardware
e) Programs of Machine Language are difficult to remove errors
f) Programs of Machine Language are Machine dependent 
ASSEMBLY LANGUAGE
ASSEMBLY LANGUAGE

• Assembly language is a low-level language.


• In assembly language, symbols are used instead of binary code.
• These symbols are easy to remember. For example, Add
instruction is used to add two numbers.
• Assembly language is also known as second generation
language
ASSEMBLY LANGUAGE
• Advantages of Assembly Language:
• a) Assembly language programs are executed with fast speed
• b) Assembly language programming is easier to learn,
understand and modify than machine language
• Disadvantages:
• a) Assembly language programs are machine dependent
• b) Assembly language programming requires deep knowledge
of hardware
HIGH LEVEL PROGRAMMING LANGUAGES

• You know that assembly language and machine language


require extensive knowledge of computer hardware.
• To overcome this limitation, a user writes the instructions
in English like sentences to perform the logic of the
problem irrespective of the type of computer you are using.
• The language used for this is referred to as high-level
language.
HIGH LEVEL PROGRAMMING LANGUAGES
• You should know that any higher-level language has to be converted to machine
language for the computer to understand.
• Higher-level languages are problem-oriented languages because the instructions
are suitable for solving a particular problem.
• For example, COBOL (Common Business Oriented Language) is mostly suitable
for business-oriented language where there is very little processing and huge
output.
• There are mathematical oriented languages like FORTRAN (Formula
Translation) and BASIC (Beginners All-purpose Symbolic Instructions Code)
where very large processing is required.
HIGH LEVEL PROGRAMMING LANGUAGES
• A type of language that is close to human languages is called high level language.

• High-level languages are easy to understand. Instructions of these languages are written in
English-like words e.g. Print, Display, Write etc.

• Examples of High-Level Programming Languages


 COBOL
 BASIC
 PASCAL
 C/C++
 JAVA
 Visual Basic
ADVANTAGES OF HIGH-LEVEL PROGRAMMING LANGUAGES:

• a) High Level Programming Languages are Easy to learn and


understand

• b) Programs written in High Level Programming Languages are Easy to


modify

• c) It is Easy to remove errors in the Programs written in High Level


Programming Languages

• d) Programs written in High Level Programming Languages are


Machine independent

• e) High Level Programming Languages have Better documentation


DISADVANTAGES OF HIGH-LEVEL PROGRAMMING LANGUAGES

• a) High-Level Programming Languages is slower


program execution.
• b) Cannot communicate directly with the hardware.
• c) It takes additional translation times to translate the
source to machine code.
DIFFERENCE BETWEEN LOW-LEVEL & HIGH-LEVEL LANGUAGE

You might also like