FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
High level languages ____
A
Can be run directly from the code
B
Need to be translated before execution
C
Are targeted at a specific CPU
D
None of the above
Explanation: 

Detailed explanation-1: -Every single program written in a high level language must be interpreted into machine language before being executed by the computer. Ada, Algol, BASIC, COBOL, FORTRAN, C/C++, JAVA, Pascal, Prolog etc are examples of high level languages.

Detailed explanation-2: -Any high-level language program though, must be translated into binary before a computer can use it. This process is done by a utility program called a translator.

Detailed explanation-3: -Because machine code instructions are the only ones the CPU can execute, the source code for ALL other programming languages must be converted into machine code before it can be executed. This translation is carried out by special programs called compilers, translators or assemblers.

Detailed explanation-4: -The high-level language is easier to understand for the users but the computer can not understand it. High-level language needs to be converted into the low-level language to make it understandable by the computer. We use Compiler or interpreter to convert high-level language to low-level language.

There is 1 question to complete.