系统级编程选择题 下载本文

内容发布更新时间 : 2024/5/18 5:25:04星期一 下面是文章的全部内容请认真阅读。

Question 分数: 1

Which of the following is able to describe a computation at the highest level of abstraction? 选择一个答案

a. C++ code

b. logic Gates

c. machine code

d. C code

正确

这次提交的分数:1/1。 Question 2 分数: 1

Which of t he following Visual C++ objects are contained within a \ I.Files II.Visual C++ Solutions III.Flow charts 选择一个答案

a. II and III only

b. I, II and III

c. II only

d. I only

正确

这次提交的分数:1/1。 Question 3 分数: 1

When using a debugger to find the cause of a program's incorrect behavior, 选择一个答案

a. it is often necessary to start the program multiple times under the debugger b. the faulty code fragment must first be identified

c. it is fastest to start by stopping the debugger long before the behavior appears

d. the program is usually executed to the point at which the behavior occurs and then executed backwards to find the cause

正确

这次提交的分数:1/1。 Question 4 分数: 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. may describe the same algorithm

c. does not engage any transistors during its execution

d. is the native way to program most computers

错误

这次提交的分数:0/1。 Question 5 分数: 1

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 and III only

b. III only

c. II and III only

d. I, II, and III.

错误

这次提交的分数:0/1。 Question 6 分数: 1

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

正确

这次提交的分数:1/1。 Question 7 分数: 1

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. 选择一个答案

a. none

b. II only

c. I and II only

d. II and III only

正确

这次提交的分数:1/1。 Question 8 分数: 1

In Visual C++, a Win32 Console Application is 选择一个答案

a. the simplest type of application Visual C++ can generate

b. built by using sophisticated \

c. a program that is able to control the operating system of a windows computer d. the status window of the Visual C++ environment

正确

这次提交的分数:1/1。 Question 1 分数: 1/1

Which of the following numerical operations is most likely to lead to loss of precision? 选择一个答案

a. Integer addition

b. Integer multiplication

c. Floating-point multiplication

d. Floating-point addition

正确

这次提交的分数:1/1。 Question 2 分数: 0/1

What is the value of the following C expression? 0x1234 ^ 0x5432 选择一个答案

a. 0x1030

b. 0x5636

c. 0x4606

d. 0x5434

错误

这次提交的分数:0/1。 Question 3 分数: 1/1

How is -10 (decimal) represented in an 8-bit 2's complement binary format? 选择一个答案

a. 11110110

b. 11110101

c. 11111010

d. 10001010

正确

这次提交的分数:1/1。 Question 4 分数: 1/1

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. I and III only

b. I and II only

c. I only

d. II only

正确

这次提交的分数:1/1。 Question 5 分数: 1/1

What happens in a C program when an addition would cause integer overflow? 选择一个答案

a. An incorrect result is produced and execution continues.

b. An exception-handler is called with the two operands as parameters.

c. The correct value is coerced to a floating point number.

d. Execution is terminated.