CPlus Plus Programming Beginners

Friday, 25 October 2013

CPlus Plus Programming Beginners


What is programming language, source code, object

code, program portability, compiler and interpreter ?



Define Program or Software?
 Set of instructions given to the computer to solve any problem is calleda program. A program is written in a computer language.
Define programming languages ?
  • User can learn and understand high-level language easily.
  • The instruction of High Level Language are written in English Statements.
  • The programs of High Level Language are not directly executed on the computer.
  • A language translator is required to translate the High Level Language into low level language.
What is low-level language?
  • The language which is  close to machine language is called low level language.
  • The low level language requires a deep understanding of the machine architecture.
what is machine language ?
  • It is the native language of computer .
  • Every machine language instruction consist of 0′s and 1′s.
  • It is difficult for human beings to understand and learn it.
  • And it is also difficult to locate remove errors in the program.
  • It is directly executed by the computer. The machine language programs are machine dependent.
What is meant by program portability?
  The programs written in High Level Language are closed to human language and programs are machine independent i.e. a program can be run o different types of computers this is called program portability.
Define source code?
  • The program written in high level language is called source program.
  • The  computer does not understand the source code.
  • The source code is converted into machine code and then it is directly executed ton the computer.
 What is Object Program ?The program in a machine language is called object program the computer understands the object code directly.
What is Linker C programming?
  • The linker is a program that combines the object program with additional library files and produces one executable file with .exe extension.
  • Linking is a process is which the object file is produced by the compiler is linked to many other files by linker 
What is Loader in C programming?
  • For execution, the loader loads the executable files in the memory.
  • It is also system software in turbo c++ compiler Ctrl+F9 key is used to load and run the program.
  • The executable file (.exe) runs directly on the computer after loading process.
What is Language Processor or a language Translator?
  • It is software that is used to translate the high-level language programs into machine language.
  • Each language has its own translator.
  • Only one type of translator is used in any language. There are three types of language processor.
  1. Compiler
  2. Interpreter
  3. Assembler
What is a compiler?
  • The language translator translates the source code into object codeand the whole program is translated at the same time.
  • If a program contains other than logical errors then compiler cannot convert  the source code into machine code until all the errors are removed from the source program.
What is an Interpreter?
  • The Language translator translates the source code into object code statement by statement.
  • The working of interpreter is slower that the compiler. Any error in the program stops execution.  
Regards
Owntutorials | Cameron Thomas
MaximeTech | Best IT solutions Provider | Web Development |Mobile Applications 

No comments:

Post a Comment

 

Total Pageviews

Blogroll

Most Reading