c语言考试资料汇总

上传人:第*** 文档编号:31074181 上传时间:2018-02-04 格式:DOC 页数:26 大小:134.05KB
返回 下载 相关 举报
c语言考试资料汇总_第1页
第1页 / 共26页
c语言考试资料汇总_第2页
第2页 / 共26页
c语言考试资料汇总_第3页
第3页 / 共26页
c语言考试资料汇总_第4页
第4页 / 共26页
c语言考试资料汇总_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《c语言考试资料汇总》由会员分享,可在线阅读,更多相关《c语言考试资料汇总(26页珍藏版)》请在金锄头文库上搜索。

1、C语言考试资料汇总Quick Quiz 11. The smallest and most basic data item in a computer is a _; it is really a switch that can be either open (0) or closed (1).Answer: bit2. A byte is a grouping of _. A byte can assume 256 distinct patterns.Answer: eight bits3. What is the ALU of a computer?Answer: The Arithmet

2、ic and Logic Unit (ALU) of a computer performs all of the computations, such as addition, subtraction, comparisons, and so on, that a computer provides.4. What is the control unit of a computer?Answer: The control unit of a computer directs and monitors the overall operation of the computer.5. A(n)

3、_ allows a computer to read or write any one file or program independent of its position on the storage medium.Answer:direct access storage device (DASD)direct access storage deviceDASD6. What are the two principal parts of the CPU? What is the function of each part?Answer: The two principal parts o

4、f the CPU are the Control Unit and the Arithmetic and Logic Unit (ALU). The Control Unit monitors the overall operation of the computer while the ALU performs all the arithmetic and logic functions provided by the system.Quick Quiz 21. What is an assembly language?Answer: Programming languages that

5、use the substitution of word-like symbols, such as ADD, SUB, MUL, for the binary opcodes, and both decimal numbers and labels for memory addresses are referred to as assembly languages.2. The program that translates a high-level source program as a complete unit before any individual statement is ex

6、ecuted is called a(n) _.Answer: compiler3. What is a linker?Answer: A linker combines additional machine language code with the object program to create a final executable program.4. When English phrases are used to describe an algorithm (the processing steps), the description is called _.Answer: ps

7、eudocodeQuick Quiz 31. What is the software development process?Answer: The technique used by professional software developers for understanding the problem that is being solved and for creating an effective and appropriate software solution is called the software development process.2. When writing

8、 a program, a(n) _ structure provides the capability to make a choice between different instructions, depending on the result of some condition.Answer: selection3. The process of developing and writing a program could be called _.Answer: programming4. The program written in a computer language is _.

9、Answer: source program5. When writing a program, a(n) _ structure involves summoning into action specific sections of code as they are needed.Answer: invocation6. What is a repetition structure?Answer: When writing a program, a repetition structure, which is also referred to as looping and iteration

10、, provides the ability for the same operation to be repeated based on the value of a condition.Chapter 2Getting Started in C ProgrammingQuick Quiz 17. What is an identifier?Answer: The names of functions, as well as all of the words permitted in a program that have special meaning to the compiler, a

11、re collectively referred to as identifiers.8. What is a function header line?Answer: A function header line, which is always the first line of a function, contains three pieces of information: (1) what type of data, if any, is returned by the function, (2) the name of the function, and (3) what type

12、 of data, if any, is sent into the function.9. The function do() is a(n) _ function name.Answer: invalid10. The function int() is a(n) _ function name.Answer: invalida. The two characters and n, when used together, are called a(n) _.Answer: newline escape sequence11. A(n) _ is a word that is predefi

13、ned by the programming language for a special purpose and can only be used in a specified manner for its intended purpose.Answer:reserved wordkeywordreserved or keywordQuick Quiz 21. What is a data type?Answer: A data type is defined as a set of values and a set of operations that can be applied to

14、these values.2. In numerical theory, the term _ typically refers to numerical accuracy.Answer: precision3. Two backslashes in a row results in _ being displayed.Answer: one backslash4. What is an expression?Answer: An expression is any combination of operators and operands that can be evaluated to y

15、ield a value.5. _ is the order in which operators of the same precedence are evaluated.Answer: AssociativityQuick Quiz 31. _ are simply names given by programmers to computer storage locations.Answer: Variables2. What is an assignment statement?Answer: An assignment statement tells the computer to assign a value to (that is, store a value in) a variable.3. What is a definition statement?Answer: Definition statements define or tell the compiler how much memory is

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号