资源预览内容
第1页 / 共65页
第2页 / 共65页
第3页 / 共65页
第4页 / 共65页
第5页 / 共65页
第6页 / 共65页
第7页 / 共65页
第8页 / 共65页
第9页 / 共65页
第10页 / 共65页
亲,该文档总共65页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
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 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. 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 source 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.Visual 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. 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 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 debugger 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 start 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 windows 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. 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 processors 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 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. unconditionally 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 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
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号