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

PROGRAMMING LAN-WPS Office-1

The document defines computer programs as sets of instructions for computers and programming languages as the means to write these instructions. It distinguishes between low-level programming languages, such as machine and assembly languages, which are closer to hardware, and high-level programming languages that are more user-friendly and easier to understand. It also compares the advantages and disadvantages of each language type, highlighting the execution speed and ease of use.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

PROGRAMMING LAN-WPS Office-1

The document defines computer programs as sets of instructions for computers and programming languages as the means to write these instructions. It distinguishes between low-level programming languages, such as machine and assembly languages, which are closer to hardware, and high-level programming languages that are more user-friendly and easier to understand. It also compares the advantages and disadvantages of each language type, highlighting the execution speed and ease of use.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

PROGRAMMING LANGUAGE 1

- Definition of computer program

- Definition of programming language

- Levels of programming language

- Features of each level

DEFINITION OF COMPUTER PROGRAM

Computer program is defined as set of instructions that directs the computer to perform a specific task.

DEFINITION OF PROGRAMING LANGUAGE

Programming language is defined as language used by programmers to write computer program. It is


also defined as language used to write instructions that directs the computer to perform a given task.

LEVELS OF PROGRAMING LANGUAGE

1. Low level programming language

2. High level programming language

LOW LEVEL PROGRAMMING LANGUAGE

This is the programming language that is closer to computer language than the human language. It deals
with a computer's hardware components and constraints.

CLASSIFICATION OF LOW-LEVEL LANGUAGE

(a) Machine language (ML)

(b) Assembly language (AL)

(a) Machine language: This is the original language of the computer which is made up of binary numbers
( zeros and ones). It is the computer understandable language. It is generation language ( IGL).

(b) Assembly language (AL): This is a type of low level programming language that is used to write
instructions for the microprocessor of the computer. It is written in mnemonic form. Eg. MOV, AOD,
SUB, MUL, etc. It is second generation programming language (2GL). It requires a translator called
assembler to convert the program to machine language.

FEATURES OF LOW LEVEL LANGUAGE

1. It is difficult to understand by programmers user.

2. It is difficult to write program with it.


3. It is difficult to modify and maintain.

4. It is difficult to detect errors.

5. It is machine dependent.

HIGH LEVEL PROGRAMMING LANGUAGE (HLL)

This is a programming language in which the instructions are written in human understandable language
like English language. Programs written in High level language is called source code. It is the generation
language (3GL).

FEATURES OF HIGH LEVEL LANGUAGE

1. It is easier to write programs with it.

2. It is easy to understand.

3. It is easy to get modify and maintain.

4. It is easier to detect errors.

5. It requires an interpreter or a computer to convert it into machine readable code.

6. It is machine independent.

PROGRAMMING LANGUAGE 11

- Examples of programming language

- Comparison of ML, LLL and HLL

- Advantages and disadvantages of ML, LLL and HLL

- Advantages of ML over HLL

EXAMPLES OF PROGRAMING LANGUAGE

1. FORTRAN - Formula Translation

2. ALGOL- ALGOrithmic language

3. PL/1(Programming language, version

4. BASIC- Beginner's All Purpose Symbolic Instruction code.

5. PASCAL

6. C and C++
7. COBOL- Common Business Oriented Language.

8. PYTHON

9. JAVER

COMPARISON OF ML, LLL AND HLL

Machine language Assembly language High level language

1. It is written in binary form It is written in mnemonic code It is written in human


understandable language (eg)
English

2. It has very fast execution time It has fast execution time It has slow execution time

3. It does not require a translator It requires a translator called It requires translators called
Assembler computer and interpreter

4. It is machine dependent It is machine dependent It is machine independent

5. It is more difficult to understand It is difficult to understand

ADVANTAGES OF MACHINE LANGUAGE

1. It has very fast execution time I

2. It does not require a translator

DISADVANTAGES OF MACHINE LANGUAGE

1. It is difficult to understand

2. It is difficult to write program with it

3. It is machine dependent

4. It is difficult to detect and correct errors.

ADVANTAGES OF ASSEMBLY LANGUAGE

1. It is easier to write program with it than machine language

2. Error in coding is less than in machine language

3. It is easier to understand than machine language

4. It has faster execution time than high level language.


DISADVANTAGES OF ASSEMBLY LANGUAGE

1. It requires a translator

2. The execution time is slower than machine language program

3. It is machine dependent

ADVANTAGES OF HIGH LEVEL LANGUAGE

1. It is easy to write program with it

2. It is easy to detect and debug errors

3. It is easy to understand

4. It is user friendly

5. It is machine dependent

DISADVANTAGES OF HLL

1. It requires translator

2. It has slow execution time.

ADVANTAGES OF ML OVER HLL

1. It does not require translator

2. It has faster execution time than high level language.

You might also like