Home > Common Problem > body text

What is the test for National Second Language C?

不言
Release: 2019-03-13 11:45:40
Original
7771 people have browsed it

What is the test for National Second Language C?

The contents of the National Level 2 C Language Examination mainly include: structure, data types and operations of C language programs, selection structure programming, loop structures, definition and reference of arrays, functions, and compilation Preprocessing, pointers, structures, bit operations, file operations.

1. The structure test points of C language program also include:

1. The structure of the program, main function and other functions.

2. Header file, data description, function start and end marks and comments in the program.

3. The writing format of the source program.

4. C language style.

2. Data types and their operations

1. C data types (basic types, constructed types, pointer types, valueless types) and their definition methods.

2. Types of operators, operation priority and associativity.

3. Conversion and operation between different types of data.

4. Expression types (assignment expressions, arithmetic expressions, relational expressions, logical expressions, conditional expressions, comma expressions) and evaluation rules.

5. Expression statement, empty statement, compound statement.

6. Call input and output functions, input data correctly and design the output format correctly.

3. Selection structure programming

1. Use if statements to implement selection structures.

2. Use switch statements to implement multi-branch selection structures.

3. Select the nesting of structures.

4. Loop structure

1. for loop structure.

2. While and do-while loop structures.

3, continue statement and break statement.

4. Nesting of loops.

5. Definition and reference of arrays

1. Definition, initialization and reference of array elements of one-dimensional array and two-dimensional array.

2. Strings and character arrays.

6. Function

1. Correct call of library function.

2. How to define functions.

3. Function type and return value.

4. Formal parameters and actual parameters, and the transfer of parameter values.

5. Correct calling of functions, nested calls, and recursive calls.

6. Local variables and global variables.

7. Variable storage category (automatic, static, register, external), variable scope and lifetime.

7. Compilation preprocessing

1. Macro definition and calling (macro without parameters, macro with parameters).

2. "File inclusion" processing.

8. Pointers

1. The concepts of address and pointer variables, address operators and indirect address operators.

2. The addresses of one-dimensional and two-dimensional arrays and strings and the definition of pointer variables pointing to variables, arrays, strings, functions, and structures. The above types of data are referenced through pointers.

3. Use pointers as function parameters.

4. Function that returns address value.

5. Pointer array, pointer to pointer.

9. Structure (i.e. "structure") and community (i.e. "union")

1. Use typedef to describe a new type.

2. Definition of structure and union type data and reference of members.

3. Construct a linked list through a structure, establish a one-way linked list, and output, delete and insert node data.

10. Bit operations

1. The meaning and use of bit operators.

2. Simple bit operations.

11. File operations

Only requires buffered file systems (i.e. high-level disk I/O systems), and non-standard buffered file systems (i.e. low-level disk I/O systems) O system) Not required.

1. File type pointer (file type pointer).

2. Opening and closing files (fopen, fclose).

3. File reading and writing (application of fputc, fgetc, fputs, fgets, fread, fwrite, fprint, fscanf functions), file positioning (application of rewind, fseek function).

The above is the detailed content of What is the test for National Second Language C?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template