Chapter 01
Chapter 01
Programming
Chapter-1
Avicenna University
Mohammad Jan “Haidari”
Lecture contents
What is programming ?
Language & Programming Language
Types of programming language
Language Translator
Program & Types of program
Most commonly used Programming Language
What is programming?
• Programming refers to a technological process for
telling a computer which tasks to perform in order to
solve problems.
• You can think of programming as a collaboration between
humans and computers, in which humans create
instructions for a computer to follow (code) in a language
computers can understand.
What is programming?
• Programming enables so many things in our lives. Here
are some examples:
o When you browse a website to find information, contact a
service provider, or make a purchase, programming allows
you to interact with the site’s on-page elements, such as
sign-up or purchase buttons, contact forms, and drop-
down menus.
o The programming behind a mobile app can make it
possible for you to order food, book a rideshare service,
track your fitness, access media, and more with ease.
Language & Programming
Language
• What is Language?
o Language is a mode of communication that is used to share ideas, opinions with
each other. For example, if we want to teach someone, we need a language that is
understandable by both communicators.
• What is a Programming Language?
o As we know, to communicate with a person, we need a specific language, similarly
to communicate with computers, programmers also need a language is called
Programming language.
o A programming language is a computer language that is used by programmers
(developers) to communicate with computers. It is a set of instructions written
in any specific language ( C, C++, Java, Python) to perform a specific task.
Types of programming language
Types of programming language
1. Low-level programming language:
• Low-level language is machine-dependent (0s and 1s)
programming language. The processor runs low- level programs
directly without the need of a compiler or interpreter, so the
programs written in low-level language can be run very fast.
• Low-level language is further divided into two parts :
o Machine Language
o Assembly Language
Types of programming language
• Machine language is a type of low-level programming language.
It is also called as machine code or object code. Machine
language is easier to read because it is normally displayed in
binary or hexadecimal form (base 16) form.
• It does not require a translator to convert the programs because
computers directly understand the machine language programs.
• The advantage of machine language is that it helps the
programmer to execute the programs faster than the high-level
programming language.
Types of programming language
• Assembly language (ASM) is also a type of low-level
programming language that is designed for specific
processors. It represents the set of instructions in a
symbolic and human-understandable form.
• It uses an assembler to convert the assembly language
to machine language.
• The advantage of assembly language is that it requires
less memory and less execution time to execute a
program.
Types of programming language
2. High-level programming language:
• High-level programming language (HLL) is designed for
developing user-friendly software programs and
websites.
• This programming language requires a compiler or
interpreter to translate the program into machine
language (execute the program).
• The main advantage of a high-level language is that it is
easy to read, write, and maintain.
Types of programming language
• A high-level language is further divided into tow parts:
o Procedural Oriented Programming (POP) language is derived from
structured programming and based upon the procedure call concept. It
divides a program into small procedures called routines or functions.
o Procedural Oriented programming language is used by a software
programmer to create a program that can be accomplished by using a
programming editor like IDE, Adobe Dreamweaver, or Microsoft Visual
Studio. Such as: C, FORTRAN, Basic, Pascal, etc.
o The advantage of POP language is that it helps programmers to easily track
the program flow and code can be reused in different parts of the program.
Types of programming language
o Object-Oriented Programming (OOP) language is
based upon the objects. In this programming language,
programs are divided into small parts called objects. It is
used to implement real-world entities like inheritance,
polymorphism, abstraction, etc in the program to makes
the program resusable, efficient, and easy-to-use.
o The main advantage of object-oriented programming is
that OOP is faster and easier to execute, maintain, modify,
as well as debug. Such as: C++, Java, Python, C#, etc.
Language Translator
• Translators are system programs, which translate programs written
in any high or assembly language into machine language (1’s and 0’s).