Saturday, August 29, 2020

 

 

Q. What is the Program?

Ans-> Program is a set of Instructions.

We cannot hive Instruction to the computer using 'Hindi', 'English', etc.

We can only give instruction to the computer using Programming languages.

Exa: - C, C++, C#, Java, Python, etc.

 

Q. What is language Translator?

Ans-> Language Translator is a software which converts programming language (source code) to machine language (machine code) and then return object code.

There are two types of language translator-

1. compiler,                  2. Interpreter.

1.compiler -> A compiler converts an entire program return in source code and translate in object code.

A Compiler converts the whole program (source code) to the machine code and then returns object code.

The compiler is faster than the interpreter.

2.Interpreter -> It is the step by step conversion by a compiler, interpreter convert source code to machine code line by line.

Interpreter is slower than a compiler.

 Difference Between Source code and Machine code

Source code

Machine Code

       I.            It Created by the program.

It is created by the compiler.

     II.            Text which document

Binary digit makes of the object code.

  III.            Human Readable.

Machine Readable

 IV.            Not system-specific.

system-specific.

    V.            Service as input to the compiler.

it is the output of the compiler.


No comments:

Post a Comment