1.In your own words, describe the virtual machine concept. - (correct Answer) - It's a set of layers that
allow assembly language to be decoded in machine language.
2. Why do you suppose translated programs often execute more quickly than interpreted ones? -
(correct Answer) - Translated Programs run faster, due to having code directly executed on the machine.
Interpretation Programs interprets and execute the instructions one by one.
3. (True/False): When an interpreted program written in language L1 runs, each of its instructions is
decoded and executed by a program written in language L0. - (correct Answer) - True
4. Explain the importance of translation when dealing with languages at different virtual machine levels.
- (correct Answer) - L1 program is completely translated into an L0 program, which then runs on the
computer hardware.
5. At which level does assembly language appear in the virtual machine example shown in this section? -
(correct Answer) - At level 3 of the specific machine level
6. What software utility permits compiled Java programs to run on almost any computer - (correct
Answer) - Java Virtual Machine (JVM)
7. Name the four virtual machine levels named in this section, from lowest to highest. - (correct Answer)
- Digital Logics, Instruction Set Architecture, Assembly Language, High Level Language
8. Why don't programmers write applications in machine language? - (correct Answer) - Machine
language is hard to understand and to provide code is difficult to read and write.
9. Machine language is used at which level of the virtual machine shown in Figure 1-1? - (correct Answer)
- Level 2 - Instruction Set Architecture
10. Statements at the assembly language level of a virtual machine are translated into statements at
which other level? - (correct Answer) - Level 2 - Instruction Set Architecture