计算机组成作业(题)
(6页)
本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!
19.90 积分
1. 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 to point to the following instruction(c) is incremented by one(d) has a value that cannot be determined without further information 2. 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 executed(c) the amount of memory a program is currently using(d) the number of CPU instructions a program has executed so far 3. 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 integer 256, and the variable declared with int * b has the value B. Which of the following are necessarily true? I. The contents of A+1 are equal to the contents of B+1. II.The contents of A+1 are equal to the contents of B+2.III.*a == *b(a) I only(b) III only(c) II and III only(d) I and III only 4. A jump instruction (a) changes the program counter only if its operand is equal to zero(b) changes a pointer to point to the next element of an array(c) increases the program counter(d) unconditionally sets the program counter to its operand 5. A branch instruction (a) sets the program counter to one of many possible values(b) unconditionally sets the program counter to its operand(c) sets the program counter to one of two possible values(d) increases the program counter by a fixed amount 6. A CPU register is a word of CPU memory that (a) records the results of periodic CPU diagnostics(b) is automatically loaded when a CPU instruction refers to a word of normal memory(c) houses a critical variable for the duration of the execution of a program(d) is explicitly loaded and unloaded from normal memory by compiler-generated instructions 7. Which of the following is a good reason (are good reasons) to equip the CPU with small amounts of fast memory? I. To make the design of the compiler simpler II.To make some CPU instructions smallerIII. To make some CPU instructions faster (a) III only(b) I, II, and III(c) II and III only(d) II only 8. Which of the following numerical operations is most likely to lead to loss of precision? (a) Integer addition(b) Floating-point multiplication(c) Floating-point addition(d) Integer multiplication 9. A memory hierarchy (a) limits programs’ size but allows them to execute more quickly.(b) takes advantage of the speed of SRAM and the capacity of disk.(c) makes programs execute more slowly but allows them to be bigger.(d) is a way of structuring memory allocation decisions. 10. Compared to dynamic RAM (SRAM), disks are I.more expensive per megabyte.II.slower per word access.III.more persistent.(a) I only.(b) II only.(c) II and III on 关 键 词: 计算机 组成 作业
天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。