没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
第一章:
Question1
Compared to a sequence of machine code instructions, a fragment of C code
a. may describe the same algorithm
b. describes the actions of the computer, not just of the CPU
c. does not engage any transistors during its execution
d. is the native way to program most computers
可以描述相同的算法
描述计算机的操作,而不仅仅是 CPU
在执行过程中,不参与任何晶体管
是大多数计算机的本机编程方式
Question2
分数: 13
Which of the following is able to describe a computation at the highest level of
abstraction?
下列哪一项能够描述在最高抽象层次上的计算?
a. C++ code
b. machine code
c. logic Gates
d. C code
Question3
Which of the following does a debugger do?
1. Analyze the source code to find programming errors.
2. Decode machine code generated by a compiler.
3. Stop execution of a program.
a. I, II, and III
b. III only
c. II and III only
d. I and III only
Question4
Integrated programming environments make it difficult to mix and match tools from
different sources. This is
集成的编程环境使得混合和匹配不同来源的工具变得困难。
a. good, because it ensures compilation is not done incrementally by accident
b. good, because tools from different sources cannot be made to interact with each other
c. bad, because all the tools will then have the same user interface
d. bad, because no single vendor is likely to be the source of all the best tools
很好,因为它确保编译不会因为意外而增量地完成
很好,因为不同来源的工具不能相互作用
不好,因为所有的工具都有相同的用户界面
不好,因为没有一个供应商可能是所有最好工具的来源
Question5
Consider the following fragment of C++ source code.
String msg; unsigned int x; int y;
cin >> msg >> x >> y;
cout << x + y;
Which of the following is (are) true regarding execution of the segment?
1. The input statement will always take the same amount of time to
execute.
2. The output statement will always be executed immediately after the
input statement.
3. If x and y are both positive, an integer greater than both will
be printed.
下面哪个选项是正确的,关于这段的执行?
1。输入语句的执行时间总是相同的。
2。输出语句总是在输入语句之后立即执行。
3 所示。如果 x 和 y 都是正的,那么一个大于两个的整数将被打印出来。
a. II and III only
b. none
c. I and II only
d. II only
Question6
Which of t he following Visual C++ objects are contained within a "Project"?
I.Files II.Visual C++ Solutions III.Flow charts
a. I only
b. II and III only
c. II only
d. I, II and III
Question7
When using a debugger to find the cause of a program's incorrect behavior,
a. the program is usually executed to the point at which the behavior occurs and then
executed backwards to find the cause
b. the faulty code fragment must first be identified
c. it is often necessary to start the program multiple times under the debugger
d. it is fastest to start by stopping the debugger long before the behavior appears
d. built by using sophisticated "Application Wizards"
a .程序通常执行到行为发生的点,然后向后执行以查找原因
B.错误的代码片段必须首先被识别
C.经常需要在调试器下多次启动这个程序
D.在行为出现之前,先停止调试器是最快的
Question8
In Visual C++, a Win32 Console Application is
a. the simplest type of application Visual C++ can generate
b. the status window of the Visual C++ environment
c. a program that is able to control the operating system of a windows computer
A.最简单的应用程序可视化 c++可以生成
b . Visual c++环境的状态窗口
C.一种能够控制 windows 计算机操作系统的程序
d .使用复杂的“应用程序向导”构建
第二章:
Question1
Which of the following could be represented by one bit of informatio
n?
以下哪一个可以用一点信息来表示?
a. an ASCII character
b. the color of a single pixel on a true-color computer display
c. the current channel of a television receiver
d. the position of a light switch
电灯开关的位置
b 一个 ASCII 字符
c .真彩色电脑显示器上单个像素的颜色
d .电视接收器的当前频道
Question2
Which of the following statements about floating-point numbers in C i
s true?
Floating-point numbers are often only approximations of real numbers.
A 32-bit float only approximates decimal fractions, but a 64-bit doub
le represents them exactly.
Floating-point numbers can represent any rational real number but not
irrationals.
浮点数通常只是实数的近似。
一个 32 位的浮点数只接近小数部分,而 64 位的浮点数恰好代表它们。
浮点数可以表示任何合理实数,而不是不合理的实数。
a. I only
b. I and II only
c. I and III only
d. II only
Question3
Which of the following numerical operations is most likely to lead t
o loss of precision?
a. Floating-point multiplication
b. Integer addition
c. Integer multiplication
d. Floating-point addition
Question4
In C, using default floating point settings, what happens when a flo
ating-point computation results in an overflow?
a. An exception is raised unless disabled by calling _controlfp().
b. A special value "infinity" is computed, testable with _finite().
c. Program execution is halted.
d. An erroneous value is computed and execution continues.
除非通过调用_controlfp()禁用一个异常。
b .一个特殊的值“无穷大”是用_限定的()来计算的。
c .程序执行停止。
d .错误的值被计算并继续执行。
Question5
In C, what is the following binary number in hexadecimal?
11010101
a. 0xD5
b. 0x5D
c. 0xAB
d. 0xB5
Question6
What is the value of the following C expression?
0x1234 ^ 0x5432
a. 0x5434
b. 0x1030
c. 0x5636
剩余49页未读,继续阅读
资源评论
Vaskka
- 粉丝: 7
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功