Read the catalogue:
Section I: Programming basics
1. Procedure:
A set of instructions that the computer can identify and execute
2. Modern computer structure system-von Neumann architecture
The CPU is composed of an arithmetic device and a controller
Arithmetic, complete a variety of arithmetic operations, logic operations, data transmission and other processing processing
Controller, execution of control program
Memory for memory programs and data, such as memory
Input device, data or program into the computer, example
such as keyboard, mouse
An output device that presents the results of data or program processing to the user,
such as displays, printers, etc.
3. Computer language:
The language of interaction between man and computer
4. Machine language:
A sequence of 0 and 1 of a certain number of digits, called a machine instruction, is a combination of machine instruction and machine language.
5, assembly language:
Use mnemonic notation instead of machine instructions, called assembly language, such as: Add a B puts the number of registers a and the number of register B together into register a
Assembly language written procedures need to be converted into machine instructions
Section II: Language classification
1. Low-level language:
Machine-oriented languages, including machine languages, assembly language
Different machines are not universal, different machines require different machine instructions or assembler programs.
2. Advanced Language:
Computer language close to natural and mathematical languages
High-level language handwriting to write the source program, by compiling the program to convert the source program into a machine instruction program
3. Differences between compiled and interpreted languages:
Compile language: Convert source code to target machine CPU instructions
Interpreted language: Translated into bytecode after interpretation, run on virtual machine, interpreter executes intermediate code
such as: C, C + + language source code needs to be compiled locally
Java, Pyhton, C # source code needs to be interpreted by the interpreter into an intermediate code (bytecode), run on the virtual machine
Section III: Development of high-level languages
1. Unstructured language:
Number or label, GOTO, subroutine can have multiple entrances and exits such as: Add a B puts the number of registers a and the number of register B added to register a
There are branches, loops
2. Structured language:
Any basic structure is only allowed to be the only inlet or outlet
Python basic syntax