C语言期末试卷(国外英文资料)
C语言期末试卷(国外英文资料)
[HNCE online examination system v9.6] the right to use the software belongs to: henan university of technology
Exam course: C program design test time: 100 minutes test: undefined test date: 2004.08.05
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
There are three big problems in this volume:
One, single choice question (40 questions, 45 points)
The following statements about functions are correct (). (1)
A, each function can be called by other functions (including the main function). B, each function can be compiled separately.
C, each function can run separately. D, you can define another function within a function.
The following statement is true (). (1)
A and C programs are based on functions, and the entire program consists of A statement of the B and C language programs that can be written on different lines
The comment lines of C and C programs do not work for the program, so the comments should be written as little as possible and each statement of the C program ends with a semicolon
We know that m is equal to 48. The value of m > = n & & ch < 'b' & &! N 'is () (1 point)
A, 0 and 1 B
C, D, non-zero
4, there is the following program # include < stdio. H > main () {char ch1 = 'A', ch2 = 'A'; Printf (" % c \ n ", (ch1, ch2)); The following statement is correct (). (1)
A, the output of the program is A B, and the output of the program is lowercase A
C, the runtime produces error information D, the number of format specifiers is less than the number of output items, the compilation error
Read the following statements, and the correct narrative is () (1)
A, machine language, assembly language, and high-level language programs are all computer languages, but only machine language programs are the languages that computers can execute directly. The source progra