Assignment C.P.W Python
Assignment C.P.W Python
Post Graduate
College khanewal
Assignment
Topic:
Computer Languages
Submitted by:
Muhammad Nasir
Roll Number:
17
Submitted to:
Mr.Saleem Anjum
Department:
BS Mathematics
Dated:
09-12-2024
Programming Language:
A set of words and symbols used to write program is called
programming language.The programming language are used to write computer programs.A
programming language is a means of communication between a user and computer.
2. High-level languages
(a)Machine Language:
A type of language in which instructions are written in binary
form is called machine language.It is the native language of the computer.
Advantages:
(i)Program can be executed very fast by computer.
(ii)The computer does not need any translator to understand this language.
Disadvantages:
(i)It is difficult to understand and learn this language.
ii)The process of writing and modifying program in machine language takes a lot of time.
(b) Assembly Language:
It is one step higher than machine language.In assembly
language,machine instructions are replaced with English-like words known as mnemonics.It
is pronounced as Ne-Monics.
Advantages:
(i) Programs written in assembly language are easier to write and modify than machine
language.
Disadvantages:
(i)The programs written in assembly language cannot be executed by the computer directly.
(ii)A translator called assembler is used to convert assembly language program into
machine language.
Examples:
(i)C/C++
(ii) Java
(iii)FORTRAN
(iv)BASIC
(v)COBOL
(iii)Machine Independence.
(iv)More Programmers.
(v)Shorter Programs.