CSCI-3170 Practice Midterm Exam 1. Which one of the following is not an important computing class? a. PC b. TV Streaming Box c. Servers d. Embedded Computers 2. A Petabyte corresponds to which quantity? a. 109 b. 1012 c. 1015 d. 1018 3. Moore’s Law states that integrated circuit resources double every: a. 18-24 months b. 24-30 months c. 30-36 months d. 36-42 months 4. What best describes the following: A particular pattern of parallelism which moves multiple operations through hardware units that each do a piece of an operation: a. Abstraction b. Common Case c. Prediction d. Pipelining 5. What best describes the following: A program that translates a symbolic version of instructions into the binary version: a. Compiler b. Interpreter c. Assembler d. Operating System 6. Which one of the following is a classic component of a computer? a. Datapath b. Power Supply c. Motherboard d. CPU Cooling Fan 7. Which one of the following is not volatile memory: a. DRAM b. SRAM c. Hard Disk d. Cache 8. Which one of the following terms affects the yield in microchip manufacturing process? a. Wafer Thickness b. Die Area 9. 10. 11. 12. 13. 14. 15. c. Wafer Price d. Circuit Design Which term best describes: Total work done per unit time: a. Response Time b. Access Time c. Throughput d. Execution Time Suppose that a computer has execution time 100s. What is its performance? a. 1 b. 0.1 c. 0.01 d. 0.001 Suppose a computer has a clock that runs at frequency 1KHz. What is the clock period? a. 1s b. 0.1s c. 0.01s d. 0.001s A computer executes 1000 instructions with an average CPI of 2. How many cycles did the program execution require? a. 1000 b. 2000 c. 3000 d. 4000 In microchips the power is not affected by which term: a. Interference b. Voltage c. Frequency d. Capacitive Load What is the solution taken today for the Power Wall problem? a. Do nothing b. Increase CPU frequency c. Decrease transistor size d. Increase number of Cores What does the following instruction do: ADD a, b, c a. a = b + c b. b = a + c c. c = a + b d. c = a + c + b 16. Suppose that b = 3, c= 7, e = 9. What is the result after the following execution? ADD a, b, c SUB d, a, e a. 9 b. -9 17. 18. 19. 20. 21. 22. c. 1 d. -1 Suppose that A is an array of double-words and memory is byte addressable. The base address of A is 8000. The address 8008 refers to which element of A? a. A[0] b. A[1] c. A[2] d. A[8] Suppose that A is an array of double-words and memory is byte addressable. The base address of A is in register X1. Which of the following instructions corresponds to the program: g = A[3] a. LDUR X0, [X1, #24] b. LDUR X0, [X1, #12] c. LDUR X0, [X1, #9] d. LDUR X0, [X1, #3] Consider the binary number 101100101110. Which one is the correct hexadecimal representation? a. 11214 b. AA1 c. ABCD d. B2E Which one of the following is not a valid negative number representation method? a. Sign Magnitube b. Sign Extension c. One’s Complement d. Two’s Complement For the positive binary number 010010001101 which is the corresponding two’s complement negative number: a. 101101110010 b. 110010001101 c. 111101110010 d. 101101110011 Which instruction kind corresponds to the following instruction format: a. O-type b. R-type c. D-type d. I-type 23. If we logically shift a number stored in X1 by 4 positions to left with instruction LSL X1, X1, #4 this is equivalent to: a. Multiply X1 by 4 b. Multiply X1 by 16 c. Divide X1 by 4 24. 25. 26. 27. 28. d. Divide X1 by 16 Which of the following instructions checks if X1 == 0, and if false then branches to instruction with label L1? a. CBNZ X1, L1 b. CBZ X1, L1 c. B L1 d. B.EQ X1, XZR, L1 Which of the following instructions is used for procedure call? a. BR procedure b. BL procedure c. B procedure d. BPR procedure Which of the following instructions is used to return from a procedure? a. BR procedure b. BL procedure c. B procedure d. BPR procedure Which memory space is used to store local variables of procedures? a. Heap b. Text c. Stack d. Bottom Which instruction has the following format? a. ADD b. LDUR c. BR d. B 29. Which of the following describe a correct PC relative addressing mode in LEGv8? a. PC = PC + offset x 1 b. PC = PC + offset x 4 c. PC = PC + offset x 8 d. PC = PC + offset x 16 30. Which register group is used to pass parameters to the procedure that is being called? a. X0-X7 b. X8-X15 c. X16-X23 d. X24-X31