- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
C语言期末试卷(国外英语资料)
C语言期末试卷(国外英语资料)
[HNCE online examination system v9.6] the right to use this set of software: Henan University of Technology
Exam course: C programming test time: 100 minutes examination room: undefined exam date: 2004.08.05
--------------------------------------------------------------------------------
There are 3 major items in this volume:
A single choice (40 items, a total of 45 points)
1. The following statement about the function is correct. (1 points)
A, each function can be called by other functions (including the main function). B, each function can be compiled separately.
C, each function can be run separately. D, you can define another function within a function.
2, the following statement is correct. (1 points)
A and C programs are based on functions, and the entire program consists of functions. A statement of the B and C language programs can be written on different lines
The comment lines of the C and C programs do not work for the program, so the annotation should be as few as possible, and each statement of the D and C programs ends with a semicolon
3, known m=48, ch=a, n=0; the value of the expression (m=nchb = n) is () (1)
A, 0, B, 1
C, true D, non 0
4, with the following procedures # includestdio.h main (char) {ch1=A, ch2=a; printf (%c\n (ch1, CH2));} is the correct description of (for). (1 points)
A, the output of the program is uppercase A B, the output of the program is lowercase letters a
The number of C, D, runtime error information format specifiers are less than the numbers of output items, compile error
5 read the following statements, of which the correct narrative is () (1)
A, machine language, assembly language, and high-level language programs are all computer languages, but only a machine language program is a language that computers can directly execute. B, using assembler to process C language source code, you can generate machine language program.
C, if the main function has no return value, defining main is the default identifier
文档评论(0)