Quiz 1
Name (
)
St. Id (
)
Digital Engineering & Lab, 2017, Term 1
(답만 쓰면 안됨. 풀이과정이 있어야 인정)
1.
Convert to Octal. Convert to hexadecimal. Then convert both of your answers to decimal,
and verify that they are the same. (8진 16진으로 변환하고 다시 양쪽 답을 10진으로 변
환하여 양쪽 값이 동일한 지 확인하라.)
101111010100.1012
Solution)
2. Convert to hexadecimal and then to binary. (16진으로 변환한 후 그 다음에 2진으로 변환
하라.)
(a)
1305.37510
(b)
111.3310
3. Construct a table for 4-3-2-1 weighted code and write 9154 using this code. (4-3-2-1 가중
치 코드 표를 작성한 다음, 이 코드를 사용하여 9154를 나타내라.)
Solution)
4. Because A – B = A + (-B), the subtraction of signed numbers can be
accomplished by adding th e complement. Subtract each of the following pairs of
5-bit binary numbers by adding the complement of the subtrahend to the
minuend. Indicate when the overflow occurs. Assume that negative numbers are
represented in 1’s complement. Then repeat using 2’s complement. (A – B = A +
(-B)이므로, 부호수들에 대한 뺄셈은 보수를 더함으로써 수행될 수 있다. 다음
5비트로 된 2진수의 각 쌍에 대해, 피감수에 보수를 취한 감수를 더해 뺄셈을
하라. 오버플로우가 발생하면 표시하라. 음수는 1의 보수로 표현된다고 가정하라.
그 다음 2의 보수를 사용하여 반복하라)
(a) 11010
b) 01011
- 10100
- 11000
---------------
-------------
Solution)
(a)
(b)
<End of the Quiz 1>