Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Department of Computer Engineering National Institute of Technology Karnataka, Surathkal Class Test -1 [CO250] Semester: IV Date: 11.02.2010 Marks: 15 1. Pipelining improves CPU performance due to Ans: c (a) Reduced memory access time (b) increased clock speed (c) the introduction of parallelism (d) additional functional units 2. CPU performance may be measured in (a) BPS (b) MIPS (c) MHz (d) VLSI Ans: c 3. A 5 stage pipeline with the stages taking 1, 1, 3, 1, 1, units of time has a throughput of (a) 1/3 (b) 1/7 (c) 7 (d) 3 Ans: a 4. Which of the following is an illegal instruction Ans: b (a) MoV Ax, 30000 (b) iNc Al, 1 (c) aNd bx, bx (d) add ax, 30 5. Given that the subprogram putc displays the character in al, the effect of the following instructions: Ans: b mov al, ‘a’ add al, 2 call putc is to (a) display 2 (b) display c (c) display a (d) display a blank 6. An assembly language instruction (a) always has a label (b) always takes at least 1 operand (c) always has an operation field (c) always modifies the status register Ans: c 7. The effect of the following instructions Ans: a push ax add ax, 4 pop bx mov cx, ax push bx pop ax on the ax register is (a) leave it with its original value (b) add 4 to it (c) clear it (d) double it 1 8. To copy the hexadecimal number A to the bh register you write (a) mov 0bh, ah (b) mov bh, 0ah (c) mov bh, ah (d) mov bh, [ah] Ans: b 9. What is the output of the following code, if AL=88 BCD, CL=49 BCD ADD AL, CL Ans: b DAA (a) D7, CF=1 (b) 37, CF=1 (c) 73, CF=1 (d) 7D, CF=1 10. What is the output of the following code, if AL= 49 BCD, BH= 72 BCD Ans: c SUB AL, BH DAS (a) AL=D7, CF=1. (b) AL=7D, CF=1. (c) AL=77, CF=1 (d) none of them. 11. What is the output of the following code: PUSH AL Ans: d (a) Decrement SP by 2 & push a word to stack (b) Increment SP by 2 & push a word to stack (c) Decrement SP by 2 & push an AL to stack (d) Illegal 12. Given a 5 stage pipeline with stages taking 1, 2, 3, 1, 1 units of time, the flow through time of the pipeline is: Ans: c (a) 8 (b) 1/8 (c) 1/3 (d) 3 13. After INC BX, where BX = 0FFH, CF =______, ZF = _______. 0, 0 14. What is the reset address with CS and IP, of 8086? Ans: CS = FFFFh, IP=0000h 15. With example what is EQU directive? Ans: It is used to give a name to some value or symbol. Eg. X EQU 03h **** END **** 2