Exercises
Computer Organization I, HW 6
- Java programs (byte code) can be executed in (at least) four different ways: interpretation, ordinary translation, Just-In-Time translation, or directly in a Java processor.
- Give examples of a situation where interpretation would be better than all other ways. Give reasons, why the other execution types would be worse.
- Give similar examples and reasonings for situations where the other execution types mentioned above would be best.
- What would be the best execution mode (way) for Java programming lab project? Why?
- What processes are needed in the system, if your Java program MyProg is executed with 1) interpretation, 2) ordinary translation, 3) Just-In-Time translation, or 4) directly in a Java processor.
- When would you use C# instead of Java? What similarities/differencies are there with C# and Java?
- What is programming language Scala? What does it have to do with Java?
- Java virtual machine (JVM). Do the following assumptions. X, Y and Z are local variables 3, 4, and 5. Tbl points to a 20 element array, and it (Tbl) is stored into local variable 6.
- Give JVM machine instructions to increase the value of X by 5.
- Give JVM machine instructions to set the value of X to Y+Z.
- Give JVM machine instructions to set the value of Y to Tbl[3].
- What does program mystery.k91 do? How does it do it? What about program mystery3.k91? How does it do it?
How could one use this type of programmig style? What problems does this type of programming have?
- [1 htp] Fill in the Student Feedback form.
In question 14 (" How would you like to develop the course?") answer also to the underlying extra questions. Mark down each question part (a, b, ...) in your answer. Take copies of the answers to discuss them in your study circle and in the group meeting.
- How many total hours did you use for this course?
- How many total hours did you use for web lectures?
- How many total hours did you use for homework problems?
- How many total hours did you use for projects?
- How many total hours did you use for Titokone and TitoTrainer?
- What part of the web lectures did you go through? (100%, 90%, ...)
- Was the schedule fast/good/slow?
- How much time did you use to read the text books (Stallings, Tanenbaum)?
- Did you use the start-up and summary web-lectures?
- Were there too many/too few homework problems?
- Did various web-components help you with course material and/or with your learning? Why or why not?
- What is your opinion on TitoTrainer problems? What proportion (%) of those problems did you do?
- How should the course be developed in future?
You can also give more comments in the extra project 2.
- Do level E TitoTrainer problems e-300, e-320 ja e-350.
Teemu Kerola