- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
系统级编程_B_闭_2011-2012-1
311046040 系统级编程 (B 闭) 2011-2012-1
一、单项选择题(本大题共30 小题,每小题1 分,共30 分)提示:在每小题列出的四个备选项
中只有一个是符合题目要求的,请将其代码填写在下表中。错选、多选或未选均无分
1. Which of the following is able to describe a computation at the highest level of abstraction?
(a) machine code (b) C++ code (c) C code (d) logic Gates
2. Which of the following does a debugger do?
I.Analyze the source code to find programming errors.
II. Decode machine code generated by a compiler.
III. Stop execution of a program.
(a) I, II, and III. (b) III only (c) II and III only (d) I and III only
3. Which of the following could be represented by one bit of information?
(a) the position of a light switch (b) the color of a single pixel on a true-color computer display
(c) an ASCII character (d) the current channel of a television receiver
4. Which of the following numerical operations is most likely to lead to loss of precision?
(a) Integer multiplication (b) Integer addition
(c) Floating-point addition (d) Floating-point multiplication
5. Which of the following computations may be performed by exactly one CPU instruction?
I. a = 5;
II. a = b + c * 5;
III. for (i = 0; i 10; i += a[i++]);
(a) I, II, and III (b) II only (c) I only (d) I and II only
6. The program counter contains
(a) the number of CPU instructions a program has executed so far
(b) the amount of memory a program is currently using
(c) the address of the CPU instruction that is about to be fetched
(d) the number of times a program has been executed
7. Consider the following code.
char a[100];
a[99] = *((char *) (((int) a[0]) + 4))
If integers are 32 bits wide, which of the following values is equal to a[99]?
(a) the integer stored in the bytes a[4], a[5], a[6] and a[7]
文档评论(0)