SlideShare a Scribd company logo
What is a programming language?
A programming language defines a set of instructions that are
compiled together to perform a specific task by the CPU (Central
Processing Unit). The programming language mainly refers to high-
level languages such as C, C++, Pascal, Ada, COBOL, etc.
Each programming language contains a unique set of keywords and
syntax, which are used to create a set of instructions. Thousands of
programming languages have been developed till now, but each
language has its specific purpose. These languages vary in the level
of abstraction they provide from the hardware. Some programming
languages provide less or no abstraction while some provide higher
abstraction. Based on the levels of abstraction, they can be classified
into two categories:
o Low-level language
o High-level language
The image which is given below describes the abstraction level from
hardware. As we can observe from the below image that the machine
language provides no abstraction, assembly language provides less
abstraction whereas high-level language provides a higher level of
abstraction.
Low-level language
The low-level language is a programming language that provides no
abstraction from the hardware, and it is represented in 0 or 1 forms,
which are the machine instructions. The languages that come under
this category are the Machine level language and Assembly
language.
PlayNext
Unmute
Current Time 0:00
/
Duration 18:10
Loaded: 0.37%
Â
Fullscreen
Backward Skip 10sPlay VideoForward Skip 10s
Machine-level language
The machine-level language is a language that consists of a set of
instructions that are in the binary form 0 or 1. As we know that
computers can understand only machine instructions, which are in
binary digits, i.e., 0 and 1, so the instructions given to the computer
can be only in binary codes. Creating a program in a machine-level
language is a very difficult task as it is not easy for the programmers
to write the program in machine instructions. It is error-prone as it
is not easy to understand, and its maintenance is also very high. A
machine-level language is not portable as each computer has its
machine instructions, so if we write a program in one computer will
no longer be valid in another computer.
The different processor architectures use different machine codes,
for example, a PowerPC processor contains RISC architecture, which
requires different code than intel x86 processor, which has a CISC
architecture.
Assembly Language
The assembly language contains some human-readable commands
such as mov, add, sub, etc. The problems which we were facing in
machine-level language are reduced to some extent by using an
extended form of machine-level language known as assembly
language. Since assembly language instructions are written in
English words like mov, add, sub, so it is easier to write and
understand.
As we know that computers can only understand the machine-level
instructions, so we require a translator that converts the assembly
code into machine code. The translator used for translating the code
is known as an assembler.
The assembly language code is not portable because the data is
stored in computer registers, and the computer has to know the
different sets of registers.
The assembly code is not faster than machine code because the
assembly language comes above the machine language in the
hierarchy, so it means that assembly language has some abstraction
from the hardware while machine language has zero abstraction.
Differences between Machine-Level language and
Assembly language
The following are the differences between machine-level language
and assembly language:
Machine-level language Assembly language
The machine-level language comes at the lowest
level in the hierarchy, so it has zero abstraction
level from the hardware.
The assembly language comes above the m
language means that it has less abstractio
from the hardware.
It cannot be easily understood by humans. It is easy to read, write, and maintain.
The machine-level language is written in binary
digits, i.e., 0 and 1.
The assembly language is written in simple
language, so it is easily understandable
users.
It does not require any translator as the machine
code is directly executed by the computer.
In assembly language, the assembler is u
convert the assembly code into machine c
It is a first-generation programming language. It is a second-generation programming lan
High-Level Language
The high-level language is a programming language that allows a
programmer to write the programs which are independent of a
particular type of computer. The high-level languages are
considered as high-level because they are closer to human
languages than machine-level languages.
When writing a program in a high-level language, then the whole
attention needs to be paid to the logic of the problem.
A compiler is required to translate a high-level language into a low-
level language.
Advantages of a high-level language
o The high-level language is easy to read, write, and maintain
as it is written in English like words.
o The high-level languages are designed to overcome the
limitation of low-level language, i.e., portability. The high-
level language is portable; i.e., these languages are machine-
independent.
Differences between Low-Level language
and High-Level language
The following are the differences between low-level language
and high-level language:
Low-level language High-level language
It is a machine-friendly language, i.e., the
computer understands the machine language,
which is represented in 0 or 1.
It is a user-friendly language as this lang
written in simple English words, which can b
understood by humans.
The low-level language takes more time to
execute.
It executes at a faster pace.
It requires the assembler to convert the assembly
code into machine code.
It requires the compiler to convert the hig
language instructions into machine code.
The machine code cannot run on all machines, so
it is not a portable language.
The high-level code can run all the platform
is a portable language.
It is memory efficient. It is less memory efficient.
Debugging and maintenance are not easier in a
low-level language.
Debugging and maintenance are easier in
level language.

More Related Content

PPT
Computer languages
PPTX
Data programming with the minimum hocker
PPTX
Computer language 6th standard 201 .pptx
PPT
Programming languages
PPTX
Programming languages of computer
PPTX
Programming languages.pptx
PPT
Computer languages 11
PPT
Computer languages
Computer languages
Data programming with the minimum hocker
Computer language 6th standard 201 .pptx
Programming languages
Programming languages of computer
Programming languages.pptx
Computer languages 11
Computer languages

Similar to What is a programming language.docx (20)

PDF
Cracking the Code: A Beginner's Guide to Programming Languages
PPTX
computer languages
PPTX
Programming language
PPT
Computer languages and generation
PPT
Vahida Akhter.ppt regardung computer languages
PPT
porgrammingymtmutmtmtmtmtmsymxmsrmyytmsts
PPT
Programming language basics.ppt Computer Science
PPTX
Computer programming, low level and high level languages
PPT
Cmp104 lec 6 computer lang
PPT
Cmp104 lec 6 computer lang
DOCX
Fundamentals of Programming language.docx
PPTX
Computer Language -by VarunThapa.pptx
PPTX
Rajesh ppt
PPTX
introduction to programming languages
DOC
Computer programming
PPT
High level languages representation
PPTX
Information security presentation slides
PPTX
week 1 - INTRO TO PROGRAMMING.pptx
PPTX
Introduction Programming and Application Lecture 1.pptx
PPTX
COMPUTER LANGUAGES programming languages.pptx
Cracking the Code: A Beginner's Guide to Programming Languages
computer languages
Programming language
Computer languages and generation
Vahida Akhter.ppt regardung computer languages
porgrammingymtmutmtmtmtmtmsymxmsrmyytmsts
Programming language basics.ppt Computer Science
Computer programming, low level and high level languages
Cmp104 lec 6 computer lang
Cmp104 lec 6 computer lang
Fundamentals of Programming language.docx
Computer Language -by VarunThapa.pptx
Rajesh ppt
introduction to programming languages
Computer programming
High level languages representation
Information security presentation slides
week 1 - INTRO TO PROGRAMMING.pptx
Introduction Programming and Application Lecture 1.pptx
COMPUTER LANGUAGES programming languages.pptx
Ad

Recently uploaded (20)

PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
L1 - Introduction to python Backend.pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
System and Network Administration Chapter 2
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
medical staffing services at VALiNTRY
PDF
Digital Strategies for Manufacturing Companies
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Odoo POS Development Services by CandidRoot Solutions
How to Choose the Right IT Partner for Your Business in Malaysia
L1 - Introduction to python Backend.pptx
Design an Analysis of Algorithms II-SECS-1021-03
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Designing Intelligence for the Shop Floor.pdf
System and Network Administration Chapter 2
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Understanding Forklifts - TECH EHS Solution
Which alternative to Crystal Reports is best for small or large businesses.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Computer Software and OS of computer science of grade 11.pptx
medical staffing services at VALiNTRY
Digital Strategies for Manufacturing Companies
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Odoo Companies in India – Driving Business Transformation.pdf
Digital Systems & Binary Numbers (comprehensive )
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Ad

What is a programming language.docx

  • 1. What is a programming language? A programming language defines a set of instructions that are compiled together to perform a specific task by the CPU (Central Processing Unit). The programming language mainly refers to high- level languages such as C, C++, Pascal, Ada, COBOL, etc. Each programming language contains a unique set of keywords and syntax, which are used to create a set of instructions. Thousands of programming languages have been developed till now, but each language has its specific purpose. These languages vary in the level of abstraction they provide from the hardware. Some programming languages provide less or no abstraction while some provide higher abstraction. Based on the levels of abstraction, they can be classified into two categories: o Low-level language o High-level language The image which is given below describes the abstraction level from hardware. As we can observe from the below image that the machine language provides no abstraction, assembly language provides less abstraction whereas high-level language provides a higher level of abstraction.
  • 2. Low-level language The low-level language is a programming language that provides no abstraction from the hardware, and it is represented in 0 or 1 forms, which are the machine instructions. The languages that come under this category are the Machine level language and Assembly language. PlayNext Unmute Current Time 0:00 / Duration 18:10
  • 3. Loaded: 0.37% Â Fullscreen Backward Skip 10sPlay VideoForward Skip 10s Machine-level language The machine-level language is a language that consists of a set of instructions that are in the binary form 0 or 1. As we know that computers can understand only machine instructions, which are in binary digits, i.e., 0 and 1, so the instructions given to the computer can be only in binary codes. Creating a program in a machine-level language is a very difficult task as it is not easy for the programmers to write the program in machine instructions. It is error-prone as it is not easy to understand, and its maintenance is also very high. A machine-level language is not portable as each computer has its machine instructions, so if we write a program in one computer will no longer be valid in another computer. The different processor architectures use different machine codes, for example, a PowerPC processor contains RISC architecture, which requires different code than intel x86 processor, which has a CISC architecture. Assembly Language The assembly language contains some human-readable commands such as mov, add, sub, etc. The problems which we were facing in machine-level language are reduced to some extent by using an extended form of machine-level language known as assembly language. Since assembly language instructions are written in English words like mov, add, sub, so it is easier to write and understand. As we know that computers can only understand the machine-level instructions, so we require a translator that converts the assembly code into machine code. The translator used for translating the code is known as an assembler.
  • 4. The assembly language code is not portable because the data is stored in computer registers, and the computer has to know the different sets of registers. The assembly code is not faster than machine code because the assembly language comes above the machine language in the hierarchy, so it means that assembly language has some abstraction from the hardware while machine language has zero abstraction. Differences between Machine-Level language and Assembly language The following are the differences between machine-level language and assembly language: Machine-level language Assembly language The machine-level language comes at the lowest level in the hierarchy, so it has zero abstraction level from the hardware. The assembly language comes above the m language means that it has less abstractio from the hardware. It cannot be easily understood by humans. It is easy to read, write, and maintain. The machine-level language is written in binary digits, i.e., 0 and 1. The assembly language is written in simple language, so it is easily understandable users. It does not require any translator as the machine code is directly executed by the computer. In assembly language, the assembler is u convert the assembly code into machine c It is a first-generation programming language. It is a second-generation programming lan High-Level Language The high-level language is a programming language that allows a programmer to write the programs which are independent of a particular type of computer. The high-level languages are
  • 5. considered as high-level because they are closer to human languages than machine-level languages. When writing a program in a high-level language, then the whole attention needs to be paid to the logic of the problem. A compiler is required to translate a high-level language into a low- level language. Advantages of a high-level language o The high-level language is easy to read, write, and maintain as it is written in English like words. o The high-level languages are designed to overcome the limitation of low-level language, i.e., portability. The high- level language is portable; i.e., these languages are machine- independent. Differences between Low-Level language and High-Level language The following are the differences between low-level language and high-level language: Low-level language High-level language It is a machine-friendly language, i.e., the computer understands the machine language, which is represented in 0 or 1. It is a user-friendly language as this lang written in simple English words, which can b understood by humans. The low-level language takes more time to execute. It executes at a faster pace. It requires the assembler to convert the assembly code into machine code. It requires the compiler to convert the hig language instructions into machine code.
  • 6. The machine code cannot run on all machines, so it is not a portable language. The high-level code can run all the platform is a portable language. It is memory efficient. It is less memory efficient. Debugging and maintenance are not easier in a low-level language. Debugging and maintenance are easier in level language.