Summary of Key Points in C Language for Computer Level 2 (Part Seven)

Today, I will share the summary of key points for multiple-choice questions in C language for Computer Level 2 (Part Six).

The content is as follows:

121In C, bitwise operations can only be applied to integers or character data, and cannot be applied to other types of data.

122A file pointer is actually a pointer to a structure type, and the general form of defining a file pointer is:FILE* pointer variable identifier,the fscanf function can only read formatted input from text files, and the input object is the data from the text file on disk.

123The entity integrity of a relationship requires that the relationship cannot be empty, which is the primary key attribute.

124The worst-case time complexity of heap sort is O(n log2n).

125The number of nodes in a tree equals the sum of the degrees of all nodes in the tree plus one.N=n0+n1+n2+1

126When a function is called, if it directly or indirectly calls itself, it is called recursive function calling. In the process of calling f1 function, if it calls f2 function, and in the process of calling f2 function, it calls f1 function, it is an indirect call.

127If a binary tree has no leaf nodes, it is an empty binary tree..

128When the front pointer and the rear pointer are the same, the circular queue is either full or empty.

129The condition for an empty linked stack is: top=bottom=NULL.

130All linear structures can adopt a sequential storage structure.

131White-box testing methods include: logical coverage testing, basic path testing, etc. Boundary value analysis belongs to black-box testing.

132The main features of object-oriented programming are: encapsulation, abstraction, inheritance, unique identification, polymorphism, and good module independence.

133Software test cases include: input data and expected output results.

134A binary file can be read from the end first, while a sequential file cannot.

135At the end of the program, the fclose function should be used to close the opened file.

136FILE can be used to define a file pointer pointing to a binary file.

137Some nonlinear structures can also use sequential storage structures, for example, a complete binary tree can adopt a sequential storage structure.

138The four main functions of an operating system are: process management, storage management, device management, and file management.

139Computer operating systems have four characteristics: concurrency, sharing, asynchrony, and virtualization.

140The original code, inverse code, and complement of a positive integer are the same.

In binary, negative numbers are represented in the form of complements..

The rule for converting original code to inverse code: the sign bit remains unchanged, and the value bits are inverted bit by bit.

The rule for converting original code to complement code: the sign bit remains unchanged, the value bits are inverted bit by bit, and add 1 at the end.

All the above content is a personal summary; if there are any errors, please correct me.

Thank you for your support, and I wish you success in your examsSummary of Key Points in C Language for Computer Level 2 (Part Seven)Summary of Key Points in C Language for Computer Level 2 (Part Seven)Summary of Key Points in C Language for Computer Level 2 (Part Seven)

Leave a Comment