没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
1 / 6
311046040 B
2013-2014-1
1. Which of the following is able to describe a computation at the highest level of abstraction?,
a. C code b. machine code c. C++ code d. logic Gates
2. Compared to a sequence of machine code instructions, a fragment of C code
a. is the native way to program most computers
b. describes the actions of the computer, not just of the CPU
c. does not engage any transistors during its execution
d. may describe the same algorithm
3. What is the value of the following C expression? 0x1234 ^ 0x5436
a. 0x4602 b. 0x4638 c. 0x5437 d. 0x1030
4. In C, what is the following binary number in hexadecimal? 11010101
a. 0xAB b. 0XD5 c. 0XB5 d.0X5D
5. What happens in a C program when an addition would cause integer overflow?
a. Execution is terminated.
b. An incorrect result is produced and execution continues
c. The correct value is coerced to a floating point number
d. An exception-handler is called with the two operands as parameters
6. Programs compiled for an Intel Pentium processor do not execute properly on a SPARC processor from
Sun Microsystems because
a. the operation codes understood by the two processors are different
b. the assembly mnemonics for the same "opcode" are different in the two processors
c. copyrights regarding code cannot be violated
d. the memory of a SPARC CPU is numbered from top to bottom
7. The machine code generated from source code by a compiler
a. executes more quickly than the source code
b. does not preserve all the information given in the source code
c. can be easily inspected to check the correctness of the compiler
d. associates variable values with their names
8. The Visual C++ Memory window displays
a. the names and values of variables in memory, interpreted as 32-bit integers no matter what the
variables' types
b. the contents of memory, interpreted as 32-bit integers, without the associated variable names
c. the contents of memory, interpreted in one of several ways, without the associated variable names
d. the names and values of variables in memory, interpreted in one of several ways
9.. Consider the following code.
char a[100];
a[99] = *((char *) (((int) &a[0]) + 4))
a. a[3] b. a[4] c. a[16] d. a[0]+4
10. What does the following program print?
void callee(int * count) {
资源评论
Vaskka
- 粉丝: 7
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功