What is the program?
Ans: A program is a set of
instructions written in computer language (0,1) to solve a problem.
What is a programming language?
Ans: Programming languages are
created by combining different words, letters, numbers, symbols, and rules of
formatting to compose a program.
For Example C, C++, Java, etc.
What is a translator program?
Ans: The program that converts
source code into object code is called the translator program.
What are the types of translator programs?
1. Compiler
2. Interpreter
3. Assembler
1. Compiler: A translator
program that converts source code into object code is called a compiler.
Programming languages that are compiled-
C, C++, Objective-C, C#, Pascal, COBOL, ADA, Visual
Basic, etc.
2. Interpreter: A translator
program that converts source code into object code line by line is called an interpreter.
Programming languages that are interpreted-
Basic, PHP, Python, Perl, Ruby, etc.
Compiler VS Interpreter
3. Assembler: A translator
who translates a program written in assembly language into machine language is
called an assembler.
Advantages of assembler.
1. Nemnic converts code into machine code.
2. Displays an error message if there are any errors in
the program.
3. Easy to correct program errors.
4. Debugging and testing work completed quickly. etc
The disadvantage of assembler.
1. Executing a program takes much longer, about 5 to 20
times more than a compiler.
0 Comments