in English suomeksi Exercises

Computer Organization I, HW 6

  1. 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.
    1. Give examples of a situation where interpretation would be better than all other ways. Give reasons, why the other execution types would be worse.
    2. Give similar examples and reasonings for situations where the other execution types mentioned above would be best.
    3. What would be the best execution mode (way) for Java programming lab project? Why?
    4. 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.
    5. When would you use C# instead of Java? What similarities/differencies are there with C# and Java?
    6. What is programming language Scala? What does it have to do with Java?

  2.  
  3. 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.
    1. Give JVM machine instructions to increase the value of X by 5.
    2. Give JVM machine instructions to set the value of X to Y+Z.
    3. Give JVM machine instructions to set the value of Y to Tbl[3].

  4.  
  5. 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?

  6.  
  7. [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.
    1. How many total hours did you use for this course?
    2. How many total hours did you use for web lectures?
    3. How many total hours did you use for homework problems?
    4. How many total hours did you use for projects?
    5. How many total hours did you use for Titokone and TitoTrainer?
    6. What part of the web lectures did you go through? (100%, 90%, ...)
    7. Was the schedule fast/good/slow?
    8. How much time did you use to read the text books (Stallings, Tanenbaum)?
    9. Did you use the start-up and summary web-lectures?
    10. Were there too many/too few homework problems?
    11. Did various web-components help you with course material and/or with your learning? Why or why not?
    12. What is your opinion on TitoTrainer problems? What proportion (%) of those problems did you do?
    13. How should the course be developed in future?
    You can also give more comments in the extra project 2.

  8.  
  9. Do level E TitoTrainer problems e-300, e-320 ja e-350.

Teemu Kerola