=========================preview======================
(COMP180)comp180_00s_midterm.pdf
Back to COMP180 Login to download
======================================================
Hong Kong University of Science and Technology
COMP180: Computer Organization
Spring 2000
Midterm Examination
3 April 2000, 7:00-8:30pm
Student Name: __________________________ Student Number: __________________________ Lab Section: __________________________
Instructions
1.
This is a closed-book, closed-notes examination.
2.
Check that you have all 10 pages (including this cover page).
3.
Write your name, student number and lab section on this page.
4.
Answer all questions in the space provided using a ball pen.
5.
Rough work should be done only on the back pages.
Question 1 (4%): __________________________ Question 2 (4%): __________________________ Question 3 (4%): __________________________ Question 4 (14%): __________________________ Question 5 (10%): __________________________ Question 6 (10%): __________________________ Question 7 (15%): __________________________ Question 8 (15%): __________________________ Question 9 (12%): __________________________ Question 10 (12%): __________________________
TOTAL (100%): __________________________
1. (4 points)
Which of the following statements is incorrect?
a) In the computer industry, annual increase in DRAM capacity is higher than annual increase in clock rate.
b) Different computers can have the same instruction set architecture.
c) The bne instruction in MIPS uses the program counter as a base register.
d) Increase in throughput must imply decrease in execution time.
e) The program counter is a special register.
Answer: ________
2. (4 points)
Which of the following statements is correct?
a) The use of instructions based on immediate addressing helps to avoid the need for the slower memory-reference instructions.
b) The sub instruction in MIPS is a pseudoinstruction rather than a real instruction because integer subtraction a - b can be implemented as a + (-b) using an adder.
c) Each pseudoinstruction in MIPS is implemented by several real instructions.
d) The existence of single-precision and double-precision representations is a violation of the principle of fixed-length instructions.
e) The beq and jrinstructions use the same machine instruction format.
Answer: ________
3. (4 points)
Which of the following statements is correct?
a) Twos complement representation is used for representing both signed integers and floating-point numbers.
b) The ripple carry adder is simply a more efficient implementation of the carry lookahead adder.
c) Shifting all the bits of an unsigned integer by 3 bit positions to the left is equivalent to multiplying the integer by 4 (= 23-1), assuming that the operation does not lead to overflow.
d) Both the andand andiinstructions use the R-type instruction format.
e) When two signed integers in twos complement representation are added together, it suffices to check only the sign bits of the two operands and the summation result to detect whether ov