Compilation

Compilation


The compiler program translates the instructions of a highlevel language to a machine level language.

A separate compiler is required for every highlevel language.

High level language is simply a programmer’s convenience and cannot be executed in their source.

The actual highlevel program is called a source program.

It is compiled (translated) to machine level language program called object program for that machine by the compiler.

Such compilers are called selfresident compilers.

Compiler compiles the full program and reports the errors at the end.


What is "compilation”?

The compiler is the tool to convert a program written in a high level language into the sequence of machine instructions required by a specific computer to accomplish the task.

Users typically control details of the operation of compilers by means of options supplied on the command line, or directives embedded in the program source, but they seldom need to examine the resulting machine language code.

This process of converting high level language to machine level is called compilation.

The translation of source code into object code by a compiler.

Qus. 1 : A program that convert a high-level language program to a set of instructions that can run on a computer is called a

  1. Compiler
  2. Debugger
  3. Editor
  4. None of the above
Qus. 2 : Which of the following is not true about an interpreter

  1. Interpreter generates an object program from the source program
  2. Interpreter is a kind of translator
  3. Interpreter analysis each source statement every time it is to be executed
  4. None of the above
Qus. 3 : Which of the following executes the programming code line by line?

  1. Compiler
  2. Interpreter
  3. Executer
  4. Translator
Qus. 4 : Function of a compiler is to

  1. put to gether the file and functions that are required by the program
  2. translate the instructions in to a form suitable for execution by the program
  3. load the executable code in to the memory and execute them
  4. allow the user to type the program
Qus. 5 : Identify the correct sequence of steps to run a program.

  1. Link, Load, Code, Compile, & Execute
  2. Code, Compile, Link, Execute & Load
  3. Code, Compile, Link, load & Execute
  4. Compile, Code, Link, load, & Execute

Programs

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad