The C language exam is as follows:
I. The structure of the C program
1. The composition of the program, the main function and other functions.
2. Header files, data description, function start and end signs and comments in the program.
3. The source program writing format.
4. The style of the C language.
2. Data types and their operations
1. Data types of C (basic, constructive, pointer, value-free) and how they are defined.
2. Types of C operators, their precedence and combinability.
3. Conversions and operations between different types of data.
4. Types of C expressions (assignment expressions, arithmetic expressions, relational expressions, logical expressions, conditional expressions, comma expressions) and evaluation rules.
III. Basic Statements
1. Expression statements, null statements, compound statements.
2. Input and output function calls, correct data input and correctly designed output format.
IV. Selection Structure Programming
1. Implementation of selection structure with if statement.
2. Multi-branch selection structure using switch statement.
3. Nesting of selection structures.
V. Loop structure programming
1. for loop structure.
2. while and do-while loop structures.
3. continue and break statements.
4. Nesting of loops.
6. Definition and referencing of arrays
1. Definition, initialization, and referencing of one-dimensional and two-dimensional arrays.
2. Strings and character arrays.
VII. Functions
1. Correct invocation of library functions.
2. How functions are defined.
3. Types and return values of functions.
4. Formal and real parameters, passing parameter values.
5. Correct calls to functions, nested calls, recursive calls.
6. Local and global variables.
7. Storage classes of variables (automatic, static, register, external), scope and lifetime of variables.
VIII. Compilation Preprocessing
1. Macro Definition and Invocation (Macros without parameters, Macros with parameters).
2. "File inclusion" processing.
9. Pointers
1. Concept of address and pointer variable, address operator and inter-address operator.
2. Addresses of one-dimensional, two-dimensional arrays and strings, as well as pointing to variables, arrays, strings, functions, structures, the definition of pointer variables. Referencing each of the above types of data through pointers.
3. Using pointers as function parameters.
4. Functions that return an address value.
5. Array of pointers, pointers to pointers.
X. Structures (i.e., "structs") and ****-simultaneity (i.e., "unions")
1. Use typedef to describe a new type.
2. Structs and ***s are defined with body type data and references to members.
3. Formation of a chained table by means of structures, creation of one-way chained tables, output, deletion and insertion of node data.
XI. Bitwise operations
1. Meaning and use of bitwise operators.
2. Simple bitwise operations.
XII, file operations
1. file type pointer
2. file open and close
3. file read and write
C language is a computer programming language, which has the characteristics of high-level language, but also has the characteristics of assembly language. The National Computer Grade Examination has a Level 2 C language as a test item.
Examination requirements:
1. Familiar with Visual C++6.0 integrated development environment. 2. Master the methods of structured programming and have a good programming style. 3. Master the simple data structures and algorithms in programming and be able to read simple programs. 4. Under the Visual C++6.0 integrated environment, be able to write simple C programs. 5. Be able to write a simple C program. 6. The ability to write simple C programs in the Visual C++6.0 integrated environment and basic error correction and debugging of programs.
Reference: Baidu Encyclopedia-Level 2 C