没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
1 / 7
311046040 A
2012-2013-1
1. Compared to a sequence of machine code instructions, a fragment of C code
a. describes the actions of the computer, not just of the CPU b. does not engage any transistors during its
execution
c. is the native way to program most computers d. may describe the same algorithm
2. Which of the following is able to describe a computation at the highest level of abstraction?
a. machine code b. logic Gates c. C++ code d. C code
3. Which of the following statements about floating-point numbers in C is true?
I. Floating-point numbers are often only approximations of real numbers.
II. A 32-bit float only approximates decimal fractions, but a 64-bit double represents them exactly.
III. Floating-point numbers can represent any rational real number but not irrationals.
a. II only b. I and III only c. I and II only d. I only
4. In C, what is the following binary number in hexadecimal? 11010101
a. 0xAB b. 0x5D c. 0xB5 d. 0xD5
5. Which of the following statements about alignment within C struct's is true?
I . Alignment may cause the allocation of unused space.
II . Alignment is required by all modern processors.
III Alignment can help processors access data more efficiently.
a. I and III only b. I only c. II and III only d. I, II, and III
6. 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. a[0] + 4 b. a[3] c. a[4] d. the integer stored in the bytes a[4], a[5], a[6] and a[7]
7. Suppose that, using a tool such as the memory window of Visual C++, we found that a certain set of contiguous
memory locations contained the integer 0xC605CD623A8365000000. What could these memory locations hold?
I.the integer 0xC605CD623A8365000000
II. a string
III . a CPU instruction
a. I only b. III only c. I, II, and III d. I and II only
8. Immediately after the CPU executes an instruction that is neither a branch nor a jump instruction, the program
counter
a. remains unchanged b. is incremented by one
c. is incremented to point to the following instruction d. has a value that cannot be determined without further
information
9. In one computer, the bytes with addresses A, A+1, A+2 and A+3 contain the integer 256, and the variable declared
with int * a; has the value A. In a different computer, the bytes with addresses B, B+1, B+2 and B+3 also contain the
资源评论
Vaskka
- 粉丝: 7
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- VID20240521070643.mp4
- Android系统原理与开发学习要点详解-培训课件.zip
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功