Professional Documents
Culture Documents
ADA
C
C++
JAVA
BASIC
COBOL
PASCAL
PHYTON
Basic
#include<stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
C++
#include<iostream.h>
Int main
{
cout<<“hello world”<<endl;
return 0;
}
Pascal
Program HelloWorld(output);
begin
writeLn('Hello, World!’)
end.
Java
Hello, world!
Comparison between machine language,
assembly language and high level language
Machine language Assembly language High level language
Time to Since it is the basic language of the A program called an ‘assembler’ is A program called a compiler or
execute computer, it does not require any translation, required to convert the program interpreter is required to convert
and hence ensures better machine efficiency. into machine language. Thus, it the program into machine
This means the programs run faster. takes longer to execute than a language. Thus, it takes more
machine language program. time for a computer to execute.
Time to Needs a lot of skill, as instructions are very Simpler to use than machine Easiest to use. Takes less time to
develop lengthy and complex. Thus, it takes more language, though instruction codes develop programs and, hence,
time to program. must be memorized. It takes less ensures better program
time to develop programs as efficiency.
compared to machine language.
Language translator
compiler