







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Computer Organization I; Subject: Electrical and Computer Engr; University: University of Illinois - Chicago; Term: Spring 2002;
Typology: Exams
1 / 13
This page cannot be seen from the preview
Don't miss anything!








๏ฃฉ2002 University of Illinois at Chicago ECE 267 V. Goncharoff.
De Deppaarrttmmeenntt ooff ElEleeccttrriiccaall aanndd CCoommppuutteerr EnEnggiinneeeerriinngg
Note: Intel 16-bit addressing mode was assumed throughout; "Intel 8086" refers to the older architecture when 32-bit registers were not yet present.
Each question was designed to have only one correct answer, so choose only one answer per question! If you choose more than one answer the problem will receive zero credit.
a) (101.1101) (^2) b) (101.1010) (^2) c) (101.0101) (^2) d) (101.1011) (^2) e) none of the above
a) (162.3125) (^10) b) (102. 5) (^10) c) (102.3125) (^10) d) (162.5) (^10) e) none of the above
a) 0Dh b) F3h c) F2h d) 8Dh e) none of the above
a) 80FFh b) FFFFh c) FF01h d) 00FFh e) none of the above
a) 34h b) 22h c) DEh d) 24h e) none of the above
cmp bl,โaโ jb exit cmp bl,โzโ ja exit sub bl,โaโ add bl,โAโ exit:
a) BL โ BL โ 32 b) if the character is uppercase, then it is made lowercase c) if the character is lowercase, then it is capitalized d) BL โ BL โ 64 e) none of the above
cmp bl, jb skip cmp bl, ja skip and bl,0Fh skip:
a) BL โ BL โ 64 b) if the character is not alphabetic (not 'a'-'z' or 'A'-'Z'), then BL โ BL โ '0' c) BL โ BL โ 240 d) if the character is in the range '0'-'9', then BL โ BL โ 48
a) AX, BX, CX b) BX, DS, ES c) BX, SI, DI d) SI, DI, DS
a) AX, BX b) AX, DX c) AX, BX, DX d) AX, BX, CX
a) AX b) BX c) CX d) DX
finit fld float fld float fld float fmul fdiv fstp float
a) float3 โ float b) float3 โ (float1) 2 รท float c) float3 โ float d) float3 โ float2 รท (float1) 2
mov ax, 2123h or ax, 0C344h
a) E367h b) C556h c) 2D37h d) E467h e) none of the above
mov bx, 1234h ror bx, 4
a) 2341h b) 4123h c) 1234h d) 3412h e) none of the above
mov bx, 00FFh sar bx, 8
a) 8800h b) FF00h c) 00FFh d) 0000h e) none of the above
xor eax, 80000000h and eax, 80000000h
What result is now in EAX (in IEEE format)?
a) X b) X c) โ X d) โ X e) none of the above (result = 0)
; assume ax stores some integer
add ax,ax mov cx,ax add ax,cx shl ax, add ax,cx
; now what does ax store in terms ; of its original value?
a) AX โ AX ร 7 b) AX โ AX ร 13 c) AX โ AX ร 18 d) AX โ AX ร 10 e) none of the above
.data A1 db 10d A2 db? A3 db 64000 dup(?) A4 db 'vg.dat', .code
mov ah,0Ah mov dx,offset A int 21h
a) reads 64000 bytes from file 'vg.dat' into memory b) reads a string of 10 characters (including Enter key code) into memory c) displays the string 'vg.dat' d) displays the character whose ASCII code is 10d
a) 2 8 bytes b) 2^20 bytes c) 2 32 bytes d) 2^16 bytes e) none of the above
a) 2 8 b) 2^16 c) 2 32 d) 2^20 e) none of the above
a) F000: b) 1234:E c) E111: d) F234: e) none of the above
a) and eax,7F800000h b) rcl eax, c) shr eax, d) ror eax, e) none of the above
mov ax,seg image_buffer mov ds,ax mov es,ax
mov di,offset image_buffer mov si,offset image_buffer+
cld mov cx,63680 ;63680 = 199 * 320 rep movsb
a) copies the contents of row0 to every other row in the image b) adds the value 320 to each pixel in rows 0- c) shifts the image down by one row (row0 โ row1, etc.); row199 doesn't change d) the value 320 is copied into the first 63680 bytes of the image
a) cmp dl,'0' b) mov ds,ax c) mov al,[bx+1] d) cmp [bx],
a) (^) mov bx,[ds:bx] b) (^) mov bx,offset string c) (^) inc word ptr [ds:bx] d) lds bx,string2_address
a) label instructions in the procedure using labels not declared as "local" b) have more than one ret statement in the body of a procedure c) use the jmp instruction to exit a procedure d) push or pop registers within a procedure
a) label instructions in the macro using labels not declared as "local" b) have more than one ret statement in the body of a macro c) use the jmp instruction to exit a macro d) push or pop registers within a macro