Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS 3884 Sample Exams, Exams of Computer Architecture and Organization

This is the sample exam for computer organization

Typology: Exams

2023/2024

Uploaded on 05/14/2025

shruthi-senthil
shruthi-senthil 🇺🇸

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2017 01 – CS 3843 Computer Organization – Exam #1 Page 1
(50 pts) CS3843 CompOrg Exam #1 Name/abc123:___________________
Conversions: (50 pts)
1. (8 pts) Convert the following decimal numbers to hexadecimal. Assume 8-bits.
a. -55 ______
b. 152 ______
2. (8 pts) Convert the following hexadecimal values to decimal. Assume 8-bits and show the signed and
unsigned values.
a. 0x86 Signed: _____ Unsigned: _____
b. 0xFE Signed: _____ Unsigned: _____
3. (4 pts) Convert the binary number to hex and the hex number to binary.
a. 1110010101001
2
_______
b. 0xB15 _________________
4. (8 pts) For the numbers below, perform the operations as dictated byte the table. (Hint: last 3, use binary)
Operations: ADD OR AND XOR
0xAC 0xAC 0xAC 0xAC
0x92 0x92 0x92 0x92
Results:
5. (4 pts) For the ADD instruction, what is the value of the following flags after the operation: (Assume 8 bits.)
a. CF: _____ SF: _____ OF: _____ ZF: _____
6. (2 pts) What hex number would you add to 0x3D to set the ZERO flag? _____
pf2

Partial preview of the text

Download CS 3884 Sample Exams and more Exams Computer Architecture and Organization in PDF only on Docsity!

2017 01 – CS 3843 Computer Organization – Exam #1 Page 1

(50 pts) CS3843 CompOrg Exam #1 Name/abc123:___________________

Conversions: (50 pts)

  1. (8 pts) Convert the following decimal numbers to hexadecimal. Assume 8-bits. a. -55 ______ b. 152 ______
  2. (8 pts) Convert the following hexadecimal values to decimal. Assume 8-bits and show the signed andunsigned values. a. 0x86 Signed: _____ Unsigned: _____ b. 0xFE Signed: _____ Unsigned: _____
  3. (4 pts) Convert the binary number to hex and the hex number to binary. a. 11100101010012 _______ b. 0xB15 _________________
  4. (8 pts) For the numbers below, perform the operations as dictated byte the table. (Hint: last 3, use binary) Operations: (^) 0xAC ADD (^) 0xAC OR (^) 0xAC AND (^) 0xAC XOR Results:^ 0x92^ 0x92^ 0x92^ 0x
  5. (4 pts) For the ADD instruction, what is the value of the following flags after the operation: (Assume 8 bits.) a. CF: _____ SF: _____ OF: _____ ZF: _____
  6. (2 pts) What hex number would you add to 0x3D to set the ZERO flag? _____

2017 01 – CS 3843 Computer Organization – Exam #1 Page 2

  1. (8 pts) For each number below, perform two arithmetic right shifts ( Xdecimal after the shift. ≫ 2) and show the results in hex and a. 0x8F SAR∷ hex:______ decimal: ______ b. 0xFB SAR∷ hex:______ decimal: ______
  2. (8 pts) Given 9 address lines: a. How many possible addresses can be represented? b. What is the range of address values? c. What would be the signed range of values if it represented a two’s complement number?
  3. (2 pts) What is 64K * 32K? Express in a power of 2. ______