What is Compiler ?
- A computer can directly execute only machine language programs.
- So the high level language program must be converted into its equivalent machine language program before can be executed.
- This translation is done with the help of a translator program which is known as compiler.
- A compiler is a translator program which translates a high level language program into equivalent machine language program.
- The process of translating is shown in below figure:
- As shown in figure that the input to compiler is the high level language program(source program) and the output is the machine language program (object program).
- High level language instructions are macro instructions.
- The compiler translates each high level language instruction into set of machine language instructions rather than a single machine language instruction.
- There is one to many correspondence between high level language instructions of source program into equivalent object program.
- During the translation the source program is only translates not executed.
- A compiler can translates only those source programs which have written in thelanguage for which compiler is designed.
- A compiler can also detect & indicates the syntax errors during the compilation process but cannot able to detect logical errors.
Latest Computer Post :- Click Here
Basic Computer Questions
Q : The main system board of the computer is called ____.
(A) Motherboard
(B) Processor
(C) Microchip
(D) None of these
Click to show/hide
Q : Which of the following system components is the brain of a computer?
(A) Circuit board
(B) CPU
(C) Memory
(D) Network card
Click to show/hide
Q : What is the built-in permanent memory in a computer called?
(A) RAM
(B) ROM
(C) CPU
(D) CD-ROM
Click to show/hide
Q : Which of the following is the full form of NTFS?
(A) New Tree File system
(B) New Technology file system
(C) New Table file system
(D) Both B and C
Click to show/hide
Q : Which of the following is not a hardware processing chip ?
(A) Processing chip
(B) printer
(C) mouse
(D) Java
Click to show/hide
Q : The monitor of a computer is-
(A) storage device
(B) processing device
(C) input device
(D) output device
Click to show/hide
Q : Which protocol does Ping use?
(A) TCP
(B) ARP
(C) ICMP
(D) BootP
(E) None of these
Click to show/hide
Q : If you wish to extend the length of the network without having the signal degrade, you would use a ___.
(A) Gateway
(B) Router
(C) Modem
(D) Repeater
(E) Resonator
Click to show/hide
Q : A series of instructions that tells a computer what to do and how to do it is called a ______.
(A) program
(B) command
(C) user response
(D) processor
(E) None of these
Click to show/hide
Q : Verification of a login name and password is known as_____.
(A) Configuration
(B) Accessibility
(C) Authentication
(D) logging in
(E) None of these
Answer ⇒ ??