系统级编程选择题.docx

上传人:公**** 文档编号:521967488 上传时间:2023-03-05 格式:DOCX 页数:65 大小:541.47KB
返回 下载 相关 举报
系统级编程选择题.docx_第1页
第1页 / 共65页
系统级编程选择题.docx_第2页
第2页 / 共65页
系统级编程选择题.docx_第3页
第3页 / 共65页
系统级编程选择题.docx_第4页
第4页 / 共65页
系统级编程选择题.docx_第5页
第5页 / 共65页
点击查看更多>>
资源描述

《系统级编程选择题.docx》由会员分享,可在线阅读,更多相关《系统级编程选择题.docx(65页珍藏版)》请在金锄头文库上搜索。

1、Multiple Choice Quiz 1分数: 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 outpu

2、t 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. II and III only b. none c. I and II only d. II only 正确: BQuestion 2 分数: 1 Which of the following does a debugger do? 1. Analyze the sourc

3、e code to find programming errors. 2. Decode machine code generated by a compiler. 3. Stop execution of a program.选择一个答案 a. III only b. I, II, and III. c. I and III only d. II and III only 正确: DQuestion 3 分数: 1 Which of the following Visual C+ objects are contained within a Project? I.Files II.Visua

4、l C+ Solutions III.Flow charts选择一个答案 a. I, II and III b. I only c. II only d. II and III only 正确:bQuestion 4 分数: 1 Compared to a sequence of machine code instructions, a fragment of C code选择一个答案 a. does not engage any transistors during its execution b. is the native way to program most computers c.

5、 describes the actions of the computer, not just of the CPU d. may describe the same algorithm 正确:DQuestion 5 分数: 1 Integrated programming environments make it difficult to mix and match tools from different sources. This is选择一个答案 a. bad, because all the tools will then have the same user interface

6、b. good, because tools from different sources cannot be made to interact with each other c. good, because it ensures compilation is not done incrementally by accident d. bad, because no single vendor is likely to be the source of all the best tools 正确:D这次提交的分数:1/1。Question 6 分数: 1 When using a debug

7、ger to find the cause of a programs incorrect behavior,选择一个答案 a. it is fastest to start by stopping the debugger long before the behavior appears b. the program is usually executed to the point at which the behavior occurs and then executed backwards to find the cause c. it is often necessary to sta

8、rt the program multiple times under the debugger d. the faulty code fragment must first be identified 正确:C这次提交的分数:1/1。Question 7 分数: 1 In Visual C+, a Win32 Console Application is选择一个答案 a. the status window of the Visual C+ environment b. a program that is able to control the operating system of a w

9、indows computer c. built by using sophisticated Application Wizards d. the simplest type of application Visual C+ can generate 正确:D这次提交的分数:1/1。Question 8 分数: 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.

10、logic Gates 正确:C这次提交的分数:1/1。Multiple Choice Quiz 2 分数: 1 Programs compiled for an Intel Pentium processor do not execute properly on a SPARC processor from Sun Microsystems because 选择一个答案 a. the memory of a SPARC CPU is numbered from top to bottom b. the operation codes understood by the two process

11、ors are different c. the assembly mnemonics for the same opcode are different in the two processors d. copyrights regarding code cannot be violated 正确:B这次提交的分数:1/1。Question 2 分数: 1 A CPU register is a word of CPU memory that 选择一个答案 a. houses a critical variable for the duration of the execution of a

12、 program b. is automatically loaded when a CPU instruction refers to a word of normal memory c. records the results of periodic CPU diagnostics d. is explicitly loaded and unloaded from normal memory by compiler-generated instructions 正确:D这次提交的分数:1/1。Question 3 分数: 1 A jump instruction 选择一个答案 a. unc

13、onditionally sets the program counter to its operand b. changes a pointer to point to the next element of an array c. increases the program counter d. changes the program counter only if its operand is equal to zero 正确:A这次提交的分数:1/1。Question 4 分数: 1 11.Which of the following must be true if a program

14、 is stopped at a specific line within the Visual C+ debugger? I.There is at least one breakpoint enabled. II.There is a breakpoint enabled on that line. III.There is a breakpoint enabled on the line preceding that line.选择一个答案 a. I and III only b. I only c. none d. I and II only 正确:C这次提交的分数:1/1。Question 5 分数: 1 The program counter contains选择一个答案 a. the number of times a program has been executed b. the address of the CPU instruction that is about to be fetched c. the number of CPU instructions a program has executed so far d. the amount of memory a pro

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 外语文库 > 英语专业四八级

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号