INTRO NEW
INTRO NEW
PROGRAMMING LANGUAGES
3. No translation needed
Disadvantages of Machine Language
1. Difficult to learn
2. Highly prone to errors
3. Totally machine-dependent (Programs
written in ML will only execute on the specific
machine they were written).
Assembly Language
Assembly Languages are between machine languages
and high-level languages. Assembly Languages are
similar to machine languages, but they are much easier
to program in because they allow a programmer to
substitute names for numbers. It uses symbolic names or
mnemonic codes to refer to machine code instructions.
Advantages of Assembly Language
1. It is efficient in processing time and in the use of
memory space.
2. It encourages Modular Programming, where
programs are broken into modules.
3. It provides an error listing which is useful in
debugging.
Disadvantages of Assembly Language
1. It is cumbersome in usage.
2. It has one-to-one relationship with machine
language, hence has to be translated into ML
instruction.
3. Assembly Language is machine-dependent like
Machine Language.
DIFFERENCES BETWEEN MACHINE LANGUAGE AND
ASSEMBLY LANGUAGE
DIFFERENCES BETWEEN MACHINE LANGUAGE AND ASSEMBLY
LANGUAGE PROGRAMS
• Commercial languages
• Scientific languages
• Special purpose languages
• General purpose languages
COMMERCIAL LANGUAGES
•Procedure-oriented languages
•Logic-oriented languages
•Object-oriented languages
PROCEDURE-ORIENTED LANGUAGES
Data Types
A data type represents a type of the data which you can process using your
computer program. It can be numeric, alphanumeric, decimal, etc
Variables