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 : The part of a machine level instruction, which tells the central processor what has to be done, is

  1. An operation code
  2. An address
  3. An operand
  4. None of the above
Qus. 3 : A program which translate a high-level language code into a machine language code is called

  1. Compiler
  2. Interpreters
  3. Both Compiler and Interpreter
  4. None of the above
Qus. 4 : 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. 5 : Which of the following executes the programming code line by line?

  1. Compiler
  2. Interpreter
  3. Executer
  4. Translator
Qus. 6 : 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. 7 : 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
Qus. 8 : A Borland Turbo Assembler is ____

  1. NASM
  2. TASM
  3. GAS
  4. ASM

Programs

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