sram said:
1- Why create so many programming languages? Why not creat one and concentrate on it? How did programming lanuages first got invented? Somebody just wanted to tell the machine something at its level and created a way? Somebody else wanted to do the same thing, and he created his own way with its own different rules??
Ada Lovelace is said to have written/specified the first computer program, one could say she invented computer languages.
Computer languages have evolved over time. To some extent each language is geared (optimized) to the needs of its users. The needs are diverse enough to prevent the creation of a single language. There are several types of languages. The following is not exhaust but rather what comes to mind.
It starts with the assembly level languages, one for each processor core.
General purpose languages such as Ada, Basic, C, C++, C#, Forth, Java, Pascal, and PL1.
Specialized languages like COBAL, FORTRAN, LISP, PHP, and SONBOL.
There is another group of languages to do things like describe hardware, VHDL, and run CNC mills, Gcode.
Except for VHDL I have used or at least been exposed to (school) each of these languages. While a few of the GP languages seem redundant they all server a purpose.
2- I understand that there are low-level and high-level languages..........right?Now if you wrote a program by using one of the programming languages, and somebody else wrote the exact same program by some other language, will the compiled code be exactly the same at the machine level?
No they may do the same task but the actual machine code generated can be quite different.
If you take the exact same program (assume C) and compiled it with two different/brand compilers it will produce different machine code.
If you compile that same program with the same compiler but different compile time options it would produce different machine code.
3- Can any language make any program?
For a skilled programmer the answer is yes.
But it will be MUCH easier to write in some languages. It will produce more efficient code in some languages.
I am out of time for now.