Computer Programming : The Basics
Computer Program :
- A sequence or set of instructions in a programming language for a computer to execute.
- A computer program in its human-readable form is called source code. Source code needs another computer program to execute because computers can only execute their native machine instructions. Therefore, source code may be translated to machine instructions using the language's compiler. (Assembly language programs are translated using an assembler.) The resulting file is called an executable. Alternatively, source code may execute within the language's interpreter
The composition has to be correct in many senses:
- alphabetically – a program needs to be written in a recognizable script, such as Roman, Cyrillic, etc.
- lexically – each programming language has its dictionary and needs to be mastered
- syntactically – each language has its rules and they must be followed
- semantically – the program has to make sense
Difference between High-level vs Low-level programming language
Machine code is a program written in machine language, which consists of sequences of digital binary numbers: 0s and 1s. A low-level programming language consisting of binary digits/bits that the computer reads and understands.
Difference between a compiler and Interpreter
Comments
Post a Comment