Quiz 1 with Problem - Computer Organization and Programming | ECE 267, Quizzes of Computer Architecture and Organization

Material Type: Quiz; Class: Computer Organization I; Subject: Electrical and Computer Engr; University: University of Illinois - Chicago; Term: Spring 2005;

Typology: Quizzes

2011/2012

Uploaded on 05/18/2012

koofers-user-gi7
koofers-user-gi7 🇺🇸

10 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ã
2005 University of Illinois at Chicago ECE 267 - Quiz #1 V. Goncharoff (Page 1 of 6)
Web code: Score: ________
Last name:
First name:
Signature:
ECE
U
UI
IC
C
D
De
ep
pa
ar
rt
tm
me
en
nt
to
of
f
E
El
le
ec
ct
tr
ri
ic
ca
al
la
an
nd
dC
Co
om
mp
pu
ut
te
er
r
E
En
ng
gi
in
ne
ee
er
ri
in
ng
g
ECE 267 - Computer Organization and Programming
Quiz #1
Monday, February 7, 2005.
Closed books & notes; calculators are not permitted.
19 problems, not necessarily all equally weighted.
IMPORTANT: Please be aware that academic dishonesty will result in
grade F for the course, and possibly dismissal from the University.
Looking at another test paper, showing someone your test paper,
violating the closed book/notes rule, or otherwise communicating test
information with others during the testing period is considered to be
academically dishonest. Should you have any questions about this
policy or about any of the questions, please step up to the front to
ask me for clarification. -Vladimir Goncharoff
pf3
pf4
pf5

Partial preview of the text

Download Quiz 1 with Problem - Computer Organization and Programming | ECE 267 and more Quizzes Computer Architecture and Organization in PDF only on Docsity!

Web code: Score: ________

Last name:

First name:

Signature:

ECE

UIUICC

De Deppaarrttmmeenntt ooff ElEleeccttrriiccaall aanndd CCoommppuutteerr EnEnggiinneeeerriinngg

ECE 267 - Computer Organization and Programming

Quiz

Monday, February 7, 2005.

Closed books & notes; calculators are not permitted. 19 problems, not necessarily all equally weighted.

IMPORTANT: Please be aware that academic dishonesty will result in grade “F” for the course, and possibly dismissal from the University. Looking at another test paper, showing someone your test paper, violating the closed book/notes rule, or otherwise communicating test information with others during the testing period is considered to be academically dishonest. Should you have any questions about this policy or about any of the questions, please step up to the front to ask me for clarification. -Vladimir Goncharoff

Multiple choice problems - circle the letter of the best answer:

  1. Which instruction will never change the Carry flag?

a) ROL b) SHL c) RCL d) SAL e) none of the above

  1. Which instruction shifts each bit to the right and replicates the sign bit?

a) ROR b) SHR c) RCR d) SAR e) none of the above

  1. What happens to the Carry flag when the "RCR AL,8" instruction is executed?

a) Carry flag gets replaced by b 7 of AL b) Carry flag gets replaced by b 0 of AL c) Carry flag gets replaced by b 6 of AL d) Carry flag does not change e) none of the above

  1. Which of the following instructions will set b 0 of CL to 1 without changing any other bits in the register?

a) MOV CL, b) ADD CL, c) AND CL, d) OR CL, e) XOR CL,

  1. Which bit pattern represents the value (-1) 10 in k-bit signed integer code?

a) 1 k b) 0 || 1k- c) 1 || 0k- d) cannot say; it depends on the value of k e) cannot say; it depends on the register where it is stored

  1. Which bit pattern represents the most negative integer value (furthest to the left on the number line) in 8-bit signed integer code?

a) 10000000 b) 01111111 c) 11111111 d) 10000001 e) 01111110

  1. Which bit pattern represents the most positive integer value (furthest to the right on the number line) in 8-bit signed integer code?

a) 10000000 b) 01111111 c) 11111111 d) 10000001 e) 01111110

  1. Which bit pattern represents the lowest integer value (furthest to the left on the number line) in 8-bit unsigned integer code?

a) 10000000 b) 01111111 c) 11111111 d) 10000001 e) 00000000

  1. Which bit pattern represents the highest integer value (furthest to the right on the number line) in 8-bit unsigned integer code?

a) 10000000 b) 01111111 c) 11111111 d) 10000001 e) 00000000

  1. Which bit pattern remains unchanged when the 2's complement operation is performed on it?

a) 11111110 b) 00000001 c) 00000000 d) 01111110 e) 10000001

  1. Which bit pattern represents the value (127) 10 in 8-bit signed integer code?

a) 11111110 b) 10000000 c) 10000001 d) 01111111 e) 01111110

  1. What is the range of integers that may be represented using a 12-bit signed integer binary code?

a) - 12 to + b) - 127 to + c) - 128 to + d) - 121 to + e) - 2048 to +