Beruflich Dokumente
Kultur Dokumente
Multiple-Choice
6. A program that combines object files into an executable program is called a _________.
a. compiler
b. loader
c. linker
d. assembler
7. If virtual machine V2 is radically different that virtual machine V1, what major problem results
when we try to run V2 programs on machine V1?
a. translation is too difficult
b. machine V2 cannot run V1 programs
c. V1 would have to be written in microcode
d. V2 would have to be implemented by software
8. What is the value of the booloean expression X (Y Z), when X=true, Y=false, and Z=false?
a. true
1
b. false
10. The following C++ expression cannot be written in assembly language code.
X = (Y + 4) * 3;
a. true
b. false
13. A signed integer stores the sign in the least significant bit (LSB).
a. true
b. false
15. The ASCII codes for alphabetic letters are smaller than for decimal digits.
a. true
b. false
16. The expression X Y is true only when X and Y are both true.
a. true
b. false
17. The expression X Y is only true when X and Y are both true.
a. true
b. false
19. The three most basic operators in Boolean algebra are AND, OR, and NOT.
2
a. true
b. false
23. Which of the following best describes the relationship between assembly language and machine
language?
a. one to many
b. one to one
c. many to one
d. many to many
26. What is the largest unsigned integer that may be stored in 24 bits?
a. 32,767
3
b. 65,536
c. 1,048,575
d. 1,048,576
27. What is the largest signed integer that may be stored in 32 bits?
a. 232 1
b. 232
c. 231 1
d. 231
31. Express -28 in twos complement with 8 bit quantities. Show your work in
8 bit binary and in twos complement format.
4
Show your work in 8 bit binary and in twos complement format.
5
35. Arithmetic with Tws Complement
Subtract 12 from 69. Now, 69 - 12 = 69 + (-12). Show your work in 8 bit binary and in
twos complement format.
Subtract 69 from 12. 12 - 69 = 12 + (- 69). Show your work in 8 bit binary and in twos
complement format.
6
39. Draw a truth table for (A+B)(A+C). Boolean Truth Table