Capital University of Science and Technology
Department of Computer Science
CS 2523 – Computer Organization and Assembly Language
QUIZ NO. 2: Basics of Computer Organization and Assembly Language
Section# 3
CLO: 1. Define concepts in the design of microprocessor as state machine and designing its
data path and its controller.
Semester: Fall 24 Max Marks: 10
Instructor: Ms. Tayyaba Zaheer Date: November 06, 2024 Max Time: 10 Minutes
Name: Reg. No.
Question No.1 [05 Marks]
Please choose the best possible option:
1. (01 mark) An 8-bit binary word b7b6b5b4b3b2b1b0 as an integer x ranges from
a) -256 to 256
b) -128 to 127
c) -128 to 128
d) None of the mentioned
Solution: b
2. (01 mark) To convert Hexadecimal 31216 to binary would result in:
a) 111102
b) 001100010102
c) 0011000100102
d) None of the mentioned
Solution: c
3. (01 mark) Considering 0001 a decimal, can be represented as:
a) 000110
b) 0001d
c) Both a & b
d) None of the mentioned
Solution: c
Page 1 of 2
4. (01 mark) 62A42A00 is not a positive double-word.
a) False
b) True
c) Depends on the underlying machine
d) None of the mentioned
Solution: a
5. (01 mark) The number of Sign bits in a 32-bit IEEE 754 Format:
a) 23
b) 9
c) 11
d) 1
Solution: d
Clarification: There is only one sign bit in all the standards. In 32-bit format, there is 1 sign bit, 8
bits for the exponent and 23 bits for the mantissa.
Question No. 2 [05 Marks]
The address of var1 is 13016. The address of the next variable after var1 is 52810. How many
bytes are used by var1?
Solution:
52810 = 21016
13016 = 30410
Hexadecimal subtraction
21016 – 13016 = E016
Decimal subtraction
52810 – 30410 = 22410
Page 2 of 2